diff --git a/.trivyignore.yaml b/.trivyignore.yaml index 40e659eb3f..0b848d3e44 100644 --- a/.trivyignore.yaml +++ b/.trivyignore.yaml @@ -39,16 +39,6 @@ vulnerabilities: statement: Dashboards vulns (java libs) - id: CVE-2022-1471 statement: Dashboards vulns (java libs) - - id: CVE-2024-25710 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49 - - id: CVE-2024-26308 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49 - - id: CVE-2024-22201 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49 - - id: CVE-2023-36478 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49 - - id: CVE-2024-21634 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49 - id: CVE-2024-4068 statement: Transitive dependency of jest and msw. Not running in production. Likely fixed by upgrading. - id: CVE-2024-37890 @@ -57,9 +47,3 @@ vulnerabilities: statement: Transitive dependency of react-router 5.3.4. Only affects client-side code ocrvs-7682 - id: CVE-2024-47068 statement: Transitive dependency of Vite. Not run in production and there is currently no fix. - - id: CVE-2024-7254 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607 - - id: CVE-2024-41909 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607 - - id: CVE-2024-22871 - statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607 diff --git a/CHANGELOG.md b/CHANGELOG.md index da853ccc22..7d601a1e53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ ## 1.7.0 Release candidate +### Migration guide + +- To make sure that `dashboard` still works after migrating to `v1.7.0`, you would need to: + + - ssh into your server + - stop `opencrvs_dashboard` + - delete `metabase.mv.db` from `/data/metabase/` + - start `opencrvs_dashboard` + + ``` + ssh user@yourcoutryconfig-dev.opencrvs.org + docker service scale opencrvs_dashboards=0 + sudo rm /data/metabase/metabase.mv.db + docker service scale opencrvs_dashboards=1 + ``` + ### Breaking changes - **Title** Description diff --git a/packages/dashboards/Dockerfile b/packages/dashboards/Dockerfile index fb56d590dd..75985d6bf8 100644 --- a/packages/dashboards/Dockerfile +++ b/packages/dashboards/Dockerfile @@ -1,4 +1,4 @@ -FROM metabase/metabase:v0.46.6.4 +FROM metabase/metabase:v0.50.30.1 ADD packages/dashboards/run.sh / ADD packages/dashboards/initialize-database.sh / @@ -6,9 +6,10 @@ ADD packages/dashboards/update-database.sh / ADD packages/dashboards/environment-configuration.sql / ADD packages/dashboards/metabase.init.db.sql / +ARG VERSION ENV METABASE_JAR=/app/metabase.jar ENV MB_DB_INIT_SQL_FILE=/metabase.init.db.sql -ENV MB_DB_FILE=/data/metabase/metabase.mv.db +ENV MB_DB_FILE=/data/metabase/metabase_${VERSION}.mv.db ENV OPENCRVS_ENVIRONMENT_CONFIGURATION_SQL_FILE=/environment-configuration.sql # Install envsubst, uuidgen diff --git a/packages/dashboards/metabase.init.db.sql b/packages/dashboards/metabase.init.db.sql index 92a5d5cf81..f90deaeeab 100644 --- a/packages/dashboards/metabase.init.db.sql +++ b/packages/dashboards/metabase.init.db.sql @@ -786,8 +786,8 @@ INSERT INTO "PUBLIC"."SETTING" VALUES ('site-name', 'OpenCRVS Local'), ('site-url', 'http://localhost:4444'), ('custom-geojson', '{"cdc1d5eb-c7f8-8b01-b296-eda34d06b6da":{"name":"Full country","url":"http://localhost:3040/content/map.geojson","region_key":"State","region_name":"State"}}'), -('startup-time-millis', '6453'), -('settings-last-updated', '2024-02-29 13:43:53.376747+02'); +('startup-time-millis', '2719'), +('settings-last-updated', '2024-10-21 18:02:31.239457+06'); CREATE CACHED TABLE "PUBLIC"."METRIC_IMPORTANT_FIELD"( "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) DEFAULT ON NULL NOT NULL, "METRIC_ID" INTEGER NOT NULL, @@ -38027,7 +38027,7 @@ CREATE CACHED TABLE "PUBLIC"."QUERY" COMMENT 'Information (such as average execu "QUERY" CHARACTER LARGE OBJECT COMMENT 'The actual "query dictionary" for this query.' ); ALTER TABLE "PUBLIC"."QUERY" ADD CONSTRAINT "PUBLIC"."PK_QUERY" PRIMARY KEY("QUERY_HASH"); --- 3464 +/- SELECT COUNT(*) FROM PUBLIC.QUERY; +-- 3465 +/- SELECT COUNT(*) FROM PUBLIC.QUERY; INSERT INTO "PUBLIC"."QUERY" VALUES (X'4e593a1c0b2629377c681948968bd52751df0f1c012f9e646e4ec8bf70c66767', 392, '{"database":2,"query":{"source-table":22,"limit":10},"type":"query","middleware":{"js-int-to-string?":true,"add-default-userland-constraints?":true}}'), (X'02a64b3814e9e4302e8cf06c9a989abf3bc2bfe81d1cd7cd9bee2ea6dbd57907', 60, '{"database":2,"type":"native","native":{"query":"[\n {$match: {\n $and: [\n [[, {{ filterGender }} ]]\n\n ]\n }}\n , {$group: { \n _id: {salePeriod: \"$totalCount\"}\n , totalCount: {$sum: NumberInt(1)}\n }} \n , {$project: { \n _id : NumberInt(0)\n , \"Total Count\": \"$_id.$totalCount\"\n , totalCount: \"$totalCount\"\n }}\n]","template-tags":{"filterGender":{"id":"56b52da5-caab-ac76-71b2-a487a0402d18","name":"filterGender","display-name":"gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null}},"collection":"analyticsRegistrations"},"middleware":{"js-int-to-string?":true,"add-default-userland-constraints?":true}}'), @@ -43673,9 +43673,12 @@ INSERT INTO "PUBLIC"."QUERY" VALUES (X'2a4df20c370296da0de8b63834426138a264b3cc10519f34eec279ed15413ee4', 263, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"native","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"database":3,"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["template-tag","filterEvent"]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["template-tag","filterDate"]]}],"async?":true,"cache-ttl":null}'), (X'5410ee4c469ba66304b9401be2c69fb8d6f51b4554415f34da06fdbda9158d65', 241, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"query","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"database":3,"query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["field",666,null]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["field",677,null]]}],"async?":true,"cache-ttl":null}'), (X'fc7a4db923357a2aea8727afcddc5a021edaf9ebb456c7550541cc93d485eb27', 516, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"native","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"native":{"template-tags":{"filterDate":{"id":"1e69ed7b-8ae8-6cfe-0c1c-ae93f5048bee","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/all-options","default":null},"filterState":{"id":"f9f00080-004f-1c25-e71b-af69fb2fc1b1","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: ''$date''}}]}},\n\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n{\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n}, \n{\n $group: {\n _id: {name: \"$stateName\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n}, \n{$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n} \n}}, \n{$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n}} \n]","collection":"registrations"},"database":3,"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["template-tag","filterEvent"]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["template-tag","filterDate"]]}],"async?":true,"cache-ttl":null}'); +INSERT INTO SYSTEM_LOB_STREAM VALUES(553, 0, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"native","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false,"process-viz-settings?":false},"native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arr', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(553, 1, 'ayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3,"async?":true,"cache-ttl":null}', NULL); INSERT INTO "PUBLIC"."QUERY" VALUES (X'3ddb346a3903aae638a68a133fa1d898d75d917bd0cede5b21aef2507d07d180', 169, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"query","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","Reason"]],"expressions":{"Reason":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"],[["=",["field",688,null],"MATERIAL_ERROR"],"Material Error"],[["=",["field",688,null],"MATERIAL_OMISSION"],"Material Omission"],[["=",["field",688,null],"OTHER"],"Other"]]]},"filter":["=",["field",693,null],"Birth"],"source-table":71},"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["field",693,null]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["field",695,null]]}],"async?":true,"cache-ttl":null}'), -(X'507e010e113f97d9bffca203327fbcb72849efd06ed6410a73bf98d8e0cce96c', 417, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"native","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"native":{"collection":"registrations","query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: ''$date''}}]}},\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n }, \n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n }, \n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'', totalRegistrations: ''$totalRegistrations'', estimate: ''$estimate'' } } \n]","template-tags":{"filterDate":{"id":"56e116a3-0612-74c2-b84a-28f672d719ef","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/all-options","default":null},"filterState":{"id":"8735e3f7-fcc5-2a78-8fad-0b88ae7b9a12","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}}},"database":3,"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["template-tag","filterEvent"]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["template-tag","filterDate"]]}],"async?":true,"cache-ttl":null}'); +(X'507e010e113f97d9bffca203327fbcb72849efd06ed6410a73bf98d8e0cce96c', 417, '{"constraints":{"max-results":10000,"max-results-bare-rows":2000},"type":"native","middleware":{"js-int-to-string?":true,"ignore-cached-results?":false},"native":{"collection":"registrations","query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: ''$date''}}]}},\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n }, \n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n }, \n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'', totalRegistrations: ''$totalRegistrations'', estimate: ''$estimate'' } } \n]","template-tags":{"filterDate":{"id":"56e116a3-0612-74c2-b84a-28f672d719ef","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/all-options","default":null},"filterState":{"id":"8735e3f7-fcc5-2a78-8fad-0b88ae7b9a12","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}}},"database":3,"parameters":[{"type":"string/=","value":["Birth"],"id":"6299a85e","target":["dimension",["template-tag","filterEvent"]]},{"type":"date/all-options","value":"past12months~","id":"45724d13","target":["dimension",["template-tag","filterDate"]]}],"async?":true,"cache-ttl":null}'), +(X'85fcf68eb6a7ac8cc842f0b171e8606d01477276f0a89c5de54944db9a306b5a', 335, SYSTEM_COMBINE_CLOB(553)); CREATE CACHED TABLE "PUBLIC"."PERMISSIONS_GROUP"( "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 3) DEFAULT ON NULL NOT NULL, "NAME" CHARACTER VARYING(255) NOT NULL @@ -44191,15 +44194,15 @@ CREATE CACHED TABLE "PUBLIC"."QRTZ_TRIGGERS" COMMENT 'Used for Quartz scheduler. ALTER TABLE "PUBLIC"."QRTZ_TRIGGERS" ADD CONSTRAINT "PUBLIC"."PK_QRTZ_TRIGGERS" PRIMARY KEY("SCHED_NAME", "TRIGGER_NAME", "TRIGGER_GROUP"); -- 9 +/- SELECT COUNT(*) FROM PUBLIC.QRTZ_TRIGGERS; INSERT INTO "PUBLIC"."QRTZ_TRIGGERS" VALUES -('MetabaseScheduler', 'metabase.task.update-field-values.trigger.3', 'DEFAULT', 'metabase.task.update-field-values.job', 'DEFAULT', 'update-field-values Database 3', 1709258400000, 1676599200000, 5, 'WAITING', 'CRON', 1672258773000, 0, NULL, 2, X'aced0005737200156f72672e71756172747a2e4a6f62446174614d61709fb083e8bfa9b0cb020000787200266f72672e71756172747a2e7574696c732e537472696e674b65794469727479466c61674d61708208e8c3fbc55d280200015a0013616c6c6f77735472616e7369656e74446174617872001d6f72672e71756172747a2e7574696c732e4469727479466c61674d617013e62ead28760ace0200025a000564697274794c00036d617074000f4c6a6176612f7574696c2f4d61703b787000737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c7708000000100000000174000564622d6964737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000037800'), -('MetabaseScheduler', 'metabase.task.sync-and-analyze.trigger.3', 'DEFAULT', 'metabase.task.sync-and-analyze.job', 'DEFAULT', 'sync-and-analyze Database 3', 1709207340000, 1707828540000, 5, 'WAITING', 'CRON', 1672258773000, 0, NULL, 2, X'aced0005737200156f72672e71756172747a2e4a6f62446174614d61709fb083e8bfa9b0cb020000787200266f72672e71756172747a2e7574696c732e537472696e674b65794469727479466c61674d61708208e8c3fbc55d280200015a0013616c6c6f77735472616e7369656e74446174617872001d6f72672e71756172747a2e7574696c732e4469727479466c61674d617013e62ead28760ace0200025a000564697274794c00036d617074000f4c6a6176612f7574696c2f4d61703b787000737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c7708000000100000000174000564622d6964737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000037800'), -('MetabaseScheduler', 'metabase.task.upgrade-checks.trigger', 'DEFAULT', 'metabase.task.upgrade-checks.job', 'DEFAULT', NULL, 1709223300000, -1, 5, 'WAITING', 'CRON', 1709207032000, 0, NULL, 0, X''), -('MetabaseScheduler', 'metabase.task.anonymous-stats.trigger', 'DEFAULT', 'metabase.task.anonymous-stats.job', 'DEFAULT', NULL, 1709263800000, -1, 5, 'WAITING', 'CRON', 1709207032000, 0, NULL, 0, X''), -('MetabaseScheduler', 'metabase.task.refresh-channel-cache.trigger', 'DEFAULT', 'metabase.task.refresh-channel-cache.job', 'DEFAULT', NULL, 1709217060000, -1, 5, 'WAITING', 'CRON', 1709207032000, 0, NULL, 2, X''), -('MetabaseScheduler', 'metabase.task.send-pulses.trigger', 'DEFAULT', 'metabase.task.send-pulses.job', 'DEFAULT', NULL, 1709208000000, -1, 5, 'WAITING', 'CRON', 1709207032000, 0, NULL, 1, X''), -('MetabaseScheduler', 'metabase.task.follow-up-emails.trigger', 'DEFAULT', 'metabase.task.follow-up-emails.job', 'DEFAULT', NULL, 1709287200000, -1, 5, 'WAITING', 'CRON', 1709207033000, 0, NULL, 0, X''), -('MetabaseScheduler', 'metabase.task.task-history-cleanup.trigger', 'DEFAULT', 'metabase.task.task-history-cleanup.job', 'DEFAULT', NULL, 1709208000000, -1, 5, 'WAITING', 'CRON', 1709207033000, 0, NULL, 0, X''), -('MetabaseScheduler', 'metabase.task.truncate-audit-log.trigger', 'DEFAULT', 'metabase.task.truncate-audit-log.job', 'DEFAULT', NULL, 1709244000000, -1, 5, 'WAITING', 'CRON', 1709207033000, 0, NULL, 2, X''); +('MetabaseScheduler', 'metabase.task.update-field-values.trigger.3', 'DEFAULT', 'metabase.task.update-field-values.job', 'DEFAULT', 'update-field-values Database 3', 1729562400000, 1676599200000, 5, 'WAITING', 'CRON', 1672258773000, 0, NULL, 2, X'aced0005737200156f72672e71756172747a2e4a6f62446174614d61709fb083e8bfa9b0cb020000787200266f72672e71756172747a2e7574696c732e537472696e674b65794469727479466c61674d61708208e8c3fbc55d280200015a0013616c6c6f77735472616e7369656e74446174617872001d6f72672e71756172747a2e7574696c732e4469727479466c61674d617013e62ead28760ace0200025a000564697274794c00036d617074000f4c6a6176612f7574696c2f4d61703b787000737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c7708000000100000000174000564622d6964737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000037800'), +('MetabaseScheduler', 'metabase.task.sync-and-analyze.trigger.3', 'DEFAULT', 'metabase.task.sync-and-analyze.job', 'DEFAULT', 'sync-and-analyze Database 3', 1729514940000, 1707828540000, 5, 'WAITING', 'CRON', 1672258773000, 0, NULL, 2, X'aced0005737200156f72672e71756172747a2e4a6f62446174614d61709fb083e8bfa9b0cb020000787200266f72672e71756172747a2e7574696c732e537472696e674b65794469727479466c61674d61708208e8c3fbc55d280200015a0013616c6c6f77735472616e7369656e74446174617872001d6f72672e71756172747a2e7574696c732e4469727479466c61674d617013e62ead28760ace0200025a000564697274794c00036d617074000f4c6a6176612f7574696c2f4d61703b787000737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c7708000000100000000174000564622d6964737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000037800'), +('MetabaseScheduler', 'metabase.task.upgrade-checks.trigger', 'DEFAULT', 'metabase.task.upgrade-checks.job', 'DEFAULT', NULL, 1729512900000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 0, X''), +('MetabaseScheduler', 'metabase.task.anonymous-stats.trigger', 'DEFAULT', 'metabase.task.anonymous-stats.job', 'DEFAULT', NULL, 1729560000000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 0, X''), +('MetabaseScheduler', 'metabase.task.refresh-channel-cache.trigger', 'DEFAULT', 'metabase.task.refresh-channel-cache.job', 'DEFAULT', NULL, 1729521660000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 2, X''), +('MetabaseScheduler', 'metabase.task.send-pulses.trigger', 'DEFAULT', 'metabase.task.send-pulses.job', 'DEFAULT', NULL, 1729515600000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 1, X''), +('MetabaseScheduler', 'metabase.task.follow-up-emails.trigger', 'DEFAULT', 'metabase.task.follow-up-emails.job', 'DEFAULT', NULL, 1729576800000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 0, X''), +('MetabaseScheduler', 'metabase.task.task-history-cleanup.trigger', 'DEFAULT', 'metabase.task.task-history-cleanup.job', 'DEFAULT', NULL, 1729515600000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 0, X''), +('MetabaseScheduler', 'metabase.task.truncate-audit-log.trigger', 'DEFAULT', 'metabase.task.truncate-audit-log.job', 'DEFAULT', NULL, 1729533600000, -1, 5, 'WAITING', 'CRON', 1729512151000, 0, NULL, 2, X''); CREATE INDEX "PUBLIC"."IDX_QRTZ_T_J" ON "PUBLIC"."QRTZ_TRIGGERS"("SCHED_NAME" NULLS FIRST, "JOB_NAME" NULLS FIRST, "JOB_GROUP" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_QRTZ_T_JG" ON "PUBLIC"."QRTZ_TRIGGERS"("SCHED_NAME" NULLS FIRST, "JOB_GROUP" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_QRTZ_T_C" ON "PUBLIC"."QRTZ_TRIGGERS"("SCHED_NAME" NULLS FIRST, "CALENDAR_NAME" NULLS FIRST); @@ -44330,7 +44333,7 @@ CREATE CACHED TABLE "PUBLIC"."CORE_SESSION"( "ANTI_CSRF_TOKEN" CHARACTER LARGE OBJECT COMMENT 'Anti-CSRF token for full-app embed sessions.' ); ALTER TABLE "PUBLIC"."CORE_SESSION" ADD CONSTRAINT "PUBLIC"."PK_CORE_SESSION" PRIMARY KEY("ID"); --- 10 +/- SELECT COUNT(*) FROM PUBLIC.CORE_SESSION; +-- 11 +/- SELECT COUNT(*) FROM PUBLIC.CORE_SESSION; INSERT INTO "PUBLIC"."CORE_SESSION" VALUES ('6116652b-052f-4bf1-bcff-826433e97aee', 1, TIMESTAMP '2023-02-24 15:12:36.88', NULL), ('0de105b0-917e-451b-8b32-28203fd0f848', 1, TIMESTAMP '2023-04-28 17:18:58.876', NULL), @@ -44341,7 +44344,8 @@ INSERT INTO "PUBLIC"."CORE_SESSION" VALUES ('423321ba-4c24-444e-8899-b7e98f6bdd81', 1, TIMESTAMP '2023-05-31 18:14:26.738', NULL), ('d7fc40ca-160a-417b-a27d-e869162fad35', 1, TIMESTAMP '2023-07-12 12:19:45.288', NULL), ('c2220621-50e0-4f5a-bba3-44cc40473f83', 1, TIMESTAMP '2023-08-25 18:23:58.526', NULL), -('25980fc8-e44d-44e7-83da-0acebfaa6260', 1, TIMESTAMP '2024-02-13 17:55:44.665374', NULL); +('25980fc8-e44d-44e7-83da-0acebfaa6260', 1, TIMESTAMP '2024-02-13 17:55:44.665374', NULL), +('6e7cc9e5-bf1c-4b36-a725-cae1a9b8de59', 1, TIMESTAMP '2024-10-21 18:05:52.332106', NULL); CREATE CACHED TABLE "PUBLIC"."CARD_LABEL"( "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) DEFAULT ON NULL NOT NULL, "CARD_ID" INTEGER NOT NULL, @@ -44399,7 +44403,7 @@ ALTER TABLE "PUBLIC"."TIMELINE" ADD CONSTRAINT "PUBLIC"."PK_TIMELINE" PRIMARY KE -- 0 +/- SELECT COUNT(*) FROM PUBLIC.TIMELINE; CREATE INDEX "PUBLIC"."IDX_TIMELINE_COLLECTION_ID" ON "PUBLIC"."TIMELINE"("COLLECTION_ID" NULLS FIRST); CREATE CACHED TABLE "PUBLIC"."LOGIN_HISTORY" COMMENT 'Keeps track of various logins for different users and additional info such as location and device'( - "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 70 RESTART WITH 71) DEFAULT ON NULL NOT NULL, + "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 70 RESTART WITH 72) DEFAULT ON NULL NOT NULL, "TIMESTAMP" TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP COMMENT 'When this login occurred.' NOT NULL, "USER_ID" INTEGER COMMENT 'ID of the User that logged in.' NOT NULL, "SESSION_ID" CHARACTER VARYING(254) COMMENT 'ID of the Session created by this login if one is currently active. NULL if Session is no longer active.', @@ -44408,7 +44412,7 @@ CREATE CACHED TABLE "PUBLIC"."LOGIN_HISTORY" COMMENT 'Keeps track of various log "IP_ADDRESS" CHARACTER LARGE OBJECT COMMENT 'IP address of the device that login happened from, so we can geocode it and determine approximate location.' NOT NULL ); ALTER TABLE "PUBLIC"."LOGIN_HISTORY" ADD CONSTRAINT "PUBLIC"."PK_LOGIN_HISTORY" PRIMARY KEY("ID"); --- 39 +/- SELECT COUNT(*) FROM PUBLIC.LOGIN_HISTORY; +-- 40 +/- SELECT COUNT(*) FROM PUBLIC.LOGIN_HISTORY; INSERT INTO "PUBLIC"."LOGIN_HISTORY" VALUES (1, TIMESTAMP WITH TIME ZONE '2022-12-13 13:21:22.101+06', 1, NULL, '7d0562e3-c179-4a78-a5eb-213e25d46e3f', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), (2, TIMESTAMP WITH TIME ZONE '2022-12-13 16:31:23.178+06', 1, NULL, '7d0562e3-c179-4a78-a5eb-213e25d46e3f', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), @@ -44450,7 +44454,8 @@ INSERT INTO "PUBLIC"."LOGIN_HISTORY" VALUES (67, TIMESTAMP WITH TIME ZONE '2023-05-31 18:14:26.743+06', 1, '423321ba-4c24-444e-8899-b7e98f6bdd81', '789ec8a3-6225-4c9b-a76b-344b5be10249', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), (68, TIMESTAMP WITH TIME ZONE '2023-07-12 12:19:45.294+06', 1, 'd7fc40ca-160a-417b-a27d-e869162fad35', 'd53c110e-1004-4cc6-9a66-33ae0d36c29d', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), (69, TIMESTAMP WITH TIME ZONE '2023-08-25 18:23:58.533+06', 1, 'c2220621-50e0-4f5a-bba3-44cc40473f83', '92378e4c-de06-4768-b993-4faac7588c15', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), -(70, TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:44.678231+06', 1, '25980fc8-e44d-44e7-83da-0acebfaa6260', 'bce26e1c-5ed9-4cf7-b4d3-f76bec15080c', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'); +(70, TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:44.678231+06', 1, '25980fc8-e44d-44e7-83da-0acebfaa6260', 'bce26e1c-5ed9-4cf7-b4d3-f76bec15080c', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'), +(71, TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:52.380595+06', 1, '6e7cc9e5-bf1c-4b36-a725-cae1a9b8de59', '5152ffab-9985-4989-99cb-feae116fb252', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36', '0:0:0:0:0:0:0:1'); CREATE INDEX "PUBLIC"."IDX_USER_ID" ON "PUBLIC"."LOGIN_HISTORY"("USER_ID" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_SESSION_ID" ON "PUBLIC"."LOGIN_HISTORY"("SESSION_ID" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_TIMESTAMP" ON "PUBLIC"."LOGIN_HISTORY"("TIMESTAMP" NULLS FIRST); @@ -44514,7 +44519,7 @@ CREATE CACHED TABLE "PUBLIC"."PERSISTED_INFO" COMMENT 'Table holding information ALTER TABLE "PUBLIC"."PERSISTED_INFO" ADD CONSTRAINT "PUBLIC"."PK_PERSISTED_INFO" PRIMARY KEY("ID"); -- 0 +/- SELECT COUNT(*) FROM PUBLIC.PERSISTED_INFO; CREATE CACHED TABLE "PUBLIC"."QUERY_EXECUTION" COMMENT 'A log of executed queries, used for calculating historic execution times, auditing, and other purposes.'( - "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 65690 RESTART WITH 65780) DEFAULT ON NULL SELECTIVITY 100 NOT NULL, + "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 65690 RESTART WITH 65781) DEFAULT ON NULL SELECTIVITY 100 NOT NULL, "HASH" BINARY VARYING(32) SELECTIVITY 41 COMMENT 'The hash of the query dictionary. This is a 256-bit SHA3 hash of the query.' NOT NULL, "STARTED_AT" TIMESTAMP WITH TIME ZONE SELECTIVITY 98 NOT NULL, "RUNNING_TIME" INTEGER SELECTIVITY 8 COMMENT 'The time, in milliseconds, this query took to complete.' NOT NULL, @@ -44530,7 +44535,7 @@ CREATE CACHED TABLE "PUBLIC"."QUERY_EXECUTION" COMMENT 'A log of executed querie "CACHE_HIT" BOOLEAN SELECTIVITY 1 COMMENT 'Cache hit on query execution' ); ALTER TABLE "PUBLIC"."QUERY_EXECUTION" ADD CONSTRAINT "PUBLIC"."PK_QUERY_EXECUTION" PRIMARY KEY("ID"); --- 65732 +/- SELECT COUNT(*) FROM PUBLIC.QUERY_EXECUTION; +-- 65733 +/- SELECT COUNT(*) FROM PUBLIC.QUERY_EXECUTION; INSERT INTO "PUBLIC"."QUERY_EXECUTION" VALUES (1, X'4e593a1c0b2629377c681948968bd52751df0f1c012f9e646e4ec8bf70c66767', TIMESTAMP WITH TIME ZONE '2022-12-13 13:23:03.924082+06', 392, 4, FALSE, 'ad-hoc', NULL, 1, NULL, NULL, NULL, 2, FALSE), (2, X'02a64b3814e9e4302e8cf06c9a989abf3bc2bfe81d1cd7cd9bee2ea6dbd57907', TIMESTAMP WITH TIME ZONE '2022-12-13 13:33:10.417962+06', 60, 0, TRUE, 'ad-hoc', 'Command failed with error 2 (BadValue): ''$and/$or/$nor must be a nonempty array'' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "$and/$or/$nor must be a nonempty array", "code" : 2, "codeName" : "BadValue" }', 1, NULL, NULL, NULL, 2, NULL), @@ -113539,7 +113544,8 @@ INSERT INTO "PUBLIC"."QUERY_EXECUTION" VALUES (65776, X'5cf5fc5c3c3c843645c5e910f012cb742148b87c8ef87132147c495a6e119f2a', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.134936+06', 76, 1, TRUE, 'public-dashboard', NULL, 1, 12, 4, NULL, 3, FALSE), (65777, X'5cf5fc5c3c3c843645c5e910f012cb742148b87c8ef87132147c495a6e119f2a', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.134936+06', 78, 0, TRUE, 'public-dashboard', 'Broken pipe', 1, 12, 4, NULL, 3, NULL), (65778, X'5cf5fc5c3c3c843645c5e910f012cb742148b87c8ef87132147c495a6e119f2a', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.185185+06', 100, 1, TRUE, 'public-dashboard', NULL, 1, 12, 4, NULL, 3, FALSE), -(65779, X'84a26cba45697433b4d58e0272661e2fb56effec333d2c42018f8c67125f3b6e', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.18072+06', 105, 1, TRUE, 'public-dashboard', NULL, 1, 33, 4, NULL, 3, FALSE); +(65779, X'84a26cba45697433b4d58e0272661e2fb56effec333d2c42018f8c67125f3b6e', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.18072+06', 105, 1, TRUE, 'public-dashboard', NULL, 1, 33, 4, NULL, 3, FALSE), +(65780, X'85fcf68eb6a7ac8cc842f0b171e8606d01477276f0a89c5de54944db9a306b5a', TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:58.037224+06', 335, 10, TRUE, 'question', NULL, 1, 20, NULL, NULL, 3, FALSE); CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_EXECUTOR_ID" ON "PUBLIC"."QUERY_EXECUTION"("EXECUTOR_ID" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_CARD_ID" ON "PUBLIC"."QUERY_EXECUTION"("CARD_ID" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_CARD_ID_STARTED_AT" ON "PUBLIC"."QUERY_EXECUTION"("CARD_ID" NULLS FIRST, "STARTED_AT" NULLS FIRST); @@ -113547,7 +113553,7 @@ CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_STARTED_AT" ON "PUBLIC"."QUERY_EXECUT CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_QUERY_HASH_STARTED_AT" ON "PUBLIC"."QUERY_EXECUTION"("HASH" NULLS FIRST, "STARTED_AT" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_QUERY_EXECUTION_CONTEXT" ON "PUBLIC"."QUERY_EXECUTION"("CONTEXT" NULLS FIRST); CREATE CACHED TABLE "PUBLIC"."VIEW_LOG"( - "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 59317 RESTART WITH 59384) DEFAULT ON NULL SELECTIVITY 100 NOT NULL, + "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 59317 RESTART WITH 59387) DEFAULT ON NULL SELECTIVITY 100 NOT NULL, "USER_ID" INTEGER SELECTIVITY 1, "MODEL" CHARACTER VARYING(16) SELECTIVITY 1 NOT NULL, "MODEL_ID" INTEGER SELECTIVITY 1 NOT NULL, @@ -113555,7 +113561,7 @@ CREATE CACHED TABLE "PUBLIC"."VIEW_LOG"( "METADATA" CHARACTER LARGE OBJECT COMMENT 'Serialized JSON corresponding to metadata for view.' ); ALTER TABLE "PUBLIC"."VIEW_LOG" ADD CONSTRAINT "PUBLIC"."PK_VIEW_LOG" PRIMARY KEY("ID"); --- 59297 +/- SELECT COUNT(*) FROM PUBLIC.VIEW_LOG; +-- 59300 +/- SELECT COUNT(*) FROM PUBLIC.VIEW_LOG; INSERT INTO "PUBLIC"."VIEW_LOG" VALUES (1, 1, 'table', 22, TIMESTAMP WITH TIME ZONE '2022-12-13 13:23:03.912+06', '{"cached":null,"ignore_cache":null}'), (2, 1, 'table', 22, TIMESTAMP WITH TIME ZONE '2022-12-13 13:40:18.942+06', '{"cached":null,"ignore_cache":null}'), @@ -174583,7 +174589,11 @@ INSERT INTO "PUBLIC"."VIEW_LOG" VALUES (59380, 1, 'card', 33, TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.221817+06', '{"cached":null,"ignore_cache":false,"context":"public-dashboard"}'), (59381, 1, 'card', 12, TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.246511+06', '{"cached":null,"ignore_cache":false,"context":"public-dashboard"}'), (59382, 1, 'card', 12, TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.301279+06', '{"cached":null,"ignore_cache":false,"context":"public-dashboard"}'), -(59383, 1, 'card', 33, TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.317383+06', '{"cached":null,"ignore_cache":false,"context":"public-dashboard"}'); +(59383, 1, 'card', 33, TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.317383+06', '{"cached":null,"ignore_cache":false,"context":"public-dashboard"}'), +(59384, 1, 'card', 20, TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:56.771572+06', '{"cached":null,"ignore_cache":null,"context":null}'); +INSERT INTO "PUBLIC"."VIEW_LOG" VALUES +(59385, 1, 'card', 20, TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:56.850191+06', '{"cached":null,"ignore_cache":null,"context":null}'), +(59386, 1, 'card', 20, TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:58.42072+06', '{"cached":null,"ignore_cache":false,"context":"question"}'); CREATE INDEX "PUBLIC"."IDX_VIEW_LOG_USER_ID" ON "PUBLIC"."VIEW_LOG"("USER_ID" NULLS FIRST); CREATE INDEX "PUBLIC"."IDX_VIEW_LOG_TIMESTAMP" ON "PUBLIC"."VIEW_LOG"("MODEL_ID" NULLS FIRST); CREATE CACHED TABLE "PUBLIC"."NATIVE_QUERY_SNIPPET" COMMENT 'Query snippets (raw text) to be substituted in native queries'( @@ -174730,13 +174740,13 @@ ALTER TABLE "PUBLIC"."QRTZ_CRON_TRIGGERS" ADD CONSTRAINT "PUBLIC"."PK_QRTZ_CRON_ INSERT INTO "PUBLIC"."QRTZ_CRON_TRIGGERS" VALUES ('MetabaseScheduler', 'metabase.task.update-field-values.trigger.3', 'DEFAULT', '0 0 2 * * ? *', 'GMT'), ('MetabaseScheduler', 'metabase.task.sync-and-analyze.trigger.3', 'DEFAULT', '0 49 * * * ? *', 'GMT'), -('MetabaseScheduler', 'metabase.task.upgrade-checks.trigger', 'DEFAULT', '0 15 6,18 * * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.anonymous-stats.trigger', 'DEFAULT', '0 30 5 * * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.refresh-channel-cache.trigger', 'DEFAULT', '0 31 0/4 1/1 * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.send-pulses.trigger', 'DEFAULT', '0 0 * * * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.follow-up-emails.trigger', 'DEFAULT', '0 0 12 * * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.task-history-cleanup.trigger', 'DEFAULT', '0 0 * * * ? *', 'Europe/Helsinki'), -('MetabaseScheduler', 'metabase.task.truncate-audit-log.trigger', 'DEFAULT', '0 0 */12 * * ? *', 'Europe/Helsinki'); +('MetabaseScheduler', 'metabase.task.upgrade-checks.trigger', 'DEFAULT', '0 15 6,18 * * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.anonymous-stats.trigger', 'DEFAULT', '0 20 7 * * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.refresh-channel-cache.trigger', 'DEFAULT', '0 41 0/4 1/1 * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.send-pulses.trigger', 'DEFAULT', '0 0 * * * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.follow-up-emails.trigger', 'DEFAULT', '0 0 12 * * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.task-history-cleanup.trigger', 'DEFAULT', '0 0 * * * ? *', 'Asia/Dhaka'), +('MetabaseScheduler', 'metabase.task.truncate-audit-log.trigger', 'DEFAULT', '0 0 */12 * * ? *', 'Asia/Dhaka'); CREATE CACHED TABLE "PUBLIC"."QRTZ_SIMPROP_TRIGGERS" COMMENT 'Used for Quartz scheduler.'( "SCHED_NAME" CHARACTER VARYING(120) NOT NULL, "TRIGGER_NAME" CHARACTER VARYING(200) NOT NULL, @@ -174836,7 +174846,7 @@ CREATE CACHED TABLE "PUBLIC"."QRTZ_SCHEDULER_STATE" COMMENT 'Used for Quartz sch ALTER TABLE "PUBLIC"."QRTZ_SCHEDULER_STATE" ADD CONSTRAINT "PUBLIC"."PK_QRTZ_SCHEDULER_STATE" PRIMARY KEY("SCHED_NAME", "INSTANCE_NAME"); -- 1 +/- SELECT COUNT(*) FROM PUBLIC.QRTZ_SCHEDULER_STATE; INSERT INTO "PUBLIC"."QRTZ_SCHEDULER_STATE" VALUES -('MetabaseScheduler', 'MacBook-Pro-16-inch-2231.local1709207031456', 1709207055623, 7500); +('MetabaseScheduler', 'dsi-Inspiron-15-55101729512150623', 1729512548765, 7500); CREATE CACHED TABLE "PUBLIC"."QRTZ_LOCKS" COMMENT 'Used for Quartz scheduler.'( "SCHED_NAME" CHARACTER VARYING(120) SELECTIVITY 50 NOT NULL, "LOCK_NAME" CHARACTER VARYING(40) SELECTIVITY 100 NOT NULL @@ -174900,7 +174910,7 @@ CREATE CACHED TABLE "PUBLIC"."CORE_USER"( ALTER TABLE "PUBLIC"."CORE_USER" ADD CONSTRAINT "PUBLIC"."PK_CORE_USER" PRIMARY KEY("ID"); -- 1 +/- SELECT COUNT(*) FROM PUBLIC.CORE_USER; INSERT INTO "PUBLIC"."CORE_USER" VALUES -(1, 'user@opencrvs.org', 'OpenCRVS', 'User', '$2a$10$wPjljujfMA74bY2gq8YWV.ZyBssybkKWm7xfaKDstwXlCYYvFMB6y', '635efd7e-ff74-4cc5-b460-95ee8523c5c5', TIMESTAMP '2022-12-13 12:23:43.64', TIMESTAMP '2024-02-13 17:55:44.720934', TRUE, TRUE, NULL, NULL, FALSE, FALSE, FALSE, NULL, TIMESTAMP '2024-02-13 18:52:57.314826', NULL, NULL, TRUE, '{"user-recent-views":"[{\"model\":\"card\",\"model_id\":33},{\"model\":\"card\",\"model_id\":12},{\"model\":\"card\",\"model_id\":20},{\"model\":\"card\",\"model_id\":27},{\"model\":\"table\",\"model_id\":70},{\"model\":\"table\",\"model_id\":71},{\"model\":\"table\",\"model_id\":69}]"}'); +(1, 'user@opencrvs.org', 'OpenCRVS', 'User', '$2a$10$7NsBEHbDYiBRar8OL0i2buFS2R511q01hxANLcItTj4t5FSBH0Rfq', 'cf395a7c-031c-4dc7-8204-20cb7e6cb838', TIMESTAMP '2022-12-13 12:23:43.64', TIMESTAMP '2024-10-21 18:05:52.619674', TRUE, TRUE, NULL, NULL, FALSE, FALSE, FALSE, NULL, TIMESTAMP '2024-10-21 18:05:58.415136', NULL, NULL, TRUE, '{"user-recent-views":"[{\"model\":\"card\",\"model_id\":20},{\"model\":\"card\",\"model_id\":33},{\"model\":\"card\",\"model_id\":12},{\"model\":\"card\",\"model_id\":27},{\"model\":\"table\",\"model_id\":70},{\"model\":\"table\",\"model_id\":71},{\"model\":\"table\",\"model_id\":69}]"}'); CREATE CACHED TABLE "PUBLIC"."REVISION"( "ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 715) DEFAULT ON NULL NOT NULL, "MODEL" CHARACTER VARYING(16) NOT NULL, @@ -174966,10 +174976,10 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (93, 'Dashboard', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 12:55:47.744+06', '{"description":null,"name":"Births registered by age of child","cache_ttl":null,"cards":[{"size_x":9,"size_y":5,"row":0,"col":0,"id":1,"card_id":1,"series":[]},{"size_x":9,"size_y":5,"row":0,"col":9,"id":2,"card_id":2,"series":[]},{"size_x":9,"size_y":5,"row":5,"col":9,"id":3,"card_id":3,"series":[]},{"size_x":9,"size_y":5,"row":5,"col":0,"id":4,"card_id":4,"series":[]}]}', FALSE, FALSE, NULL), (94, 'Dashboard', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 12:55:47.781+06', '{"description":null,"name":"Births registered by age of child","cache_ttl":null,"cards":[{"size_x":9,"size_y":5,"row":0,"col":0,"id":1,"card_id":1,"series":[]},{"size_x":9,"size_y":5,"row":0,"col":9,"id":2,"card_id":2,"series":[]},{"size_x":9,"size_y":5,"row":5,"col":9,"id":3,"card_id":3,"series":[]},{"size_x":9,"size_y":5,"row":5,"col":0,"id":4,"card_id":4,"series":[]}]}', FALSE, FALSE, NULL), (105, 'Card', 4, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 15:27:06.514+06', '{"description":"Those who were under 1 year age at the time of registration (in bar chart)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 5 Years","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"20e2c029-3679-018c-24d6-484d76a11d32","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":4,"parameter_mappings":[],"display":"bar","entity_id":"fln_xwOYWPvA6slmtJM8d","collection_preview":true,"visualization_settings":{"table.pivot_column":"Gender","table.cell_column":"Count","graph.dimensions":["Gender"],"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"20e2c029-3679-018c-24d6-484d76a11d32","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(553, 0, '{"description":"Those who were under 1 year age at the time of registration","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 1 year","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":2,"parameter_mappings":[],"display":"bar","entity_id":"nbbCJ21ti500TiOUVV2tq","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","type":"string/=","target":["dimension",["', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(553, 1, 'template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(554, 0, '{"description":"Those who were under 1 year age at the time of registration","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 1 year","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":2,"parameter_mappings":[],"display":"bar","entity_id":"nbbCJ21ti500TiOUVV2tq","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","type":"string/=","target":["dimension",["', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(554, 1, 'template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(106, 'Card', 2, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 15:28:48.448+06', SYSTEM_COMBINE_CLOB(553), FALSE, FALSE, NULL), +(106, 'Card', 2, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 15:28:48.448+06', SYSTEM_COMBINE_CLOB(554), FALSE, FALSE, NULL), (107, 'Card', 4, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 15:29:11.779+06', '{"description":"Those who were under 1 year age at the time of registration (in bar chart)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 5 years","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"20e2c029-3679-018c-24d6-484d76a11d32","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":4,"parameter_mappings":[],"display":"bar","entity_id":"fln_xwOYWPvA6slmtJM8d","collection_preview":true,"visualization_settings":{"table.pivot_column":"Gender","table.cell_column":"Count","graph.dimensions":["Gender"],"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"20e2c029-3679-018c-24d6-484d76a11d32","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (110, 'Card', 10, 1, TIMESTAMP WITH TIME ZONE '2022-12-14 18:42:08.065+06', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Total Registrations","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$match: {\n $and: [\n {_id: {$ne: null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$group: { \n _id: {}\n , totalCount: {$sum: NumberInt(1)}\n }} \n , {$project: { \n _id : NumberInt(0)\n , totalRegistrations: \"$totalCount\"\n }}\n]","template-tags":{"filterGender":{"id":"053e22d6-e6e4-b616-8a72-cd33a1476315","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cda8c18e-0863-d59e-4846-e6622917d67e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"65249c37-7695-8cb3-8e07-7083a1b456a4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"eefc749d-e0cc-e166-a295-d9c52e783c05","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}}},"database":2},"id":10,"parameter_mappings":[],"display":"scalar","entity_id":"BKDzBlQYMhO5wQWhVbytt","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[{"id":"053e22d6-e6e4-b616-8a72-cd33a1476315","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cda8c18e-0863-d59e-4846-e6622917d67e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"65249c37-7695-8cb3-8e07-7083a1b456a4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"eefc749d-e0cc-e166-a295-d9c52e783c05","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), @@ -174985,110 +174995,110 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (201, 'Card', 15, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:08:12.815+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"native","name":"Filter date test","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","name":"filterDate","display-name":"Filterdate","type":"date","default":null}},"query":"[{$project: {foo: ''[[{{filterDate}}]]''}}]","collection":"analyticsRegistrations"},"type":"native"},"id":15,"parameter_mappings":[],"display":"table","entity_id":"1z0T_0BESRBrkEWYBglCm","collection_preview":true,"visualization_settings":{"table.pivot_column":"foo","table.cell_column":"_id"},"is_write":false,"parameters":[{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","type":"date/single","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), (205, 'Card', 15, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:11:58.979+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"native","name":"Filter date test","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","name":"filterDate","display-name":"Filterdate","type":"dimension","default":null,"dimension":["field",354,null],"widget-type":"string/="}},"query":"[{$project: {foo: ''[[{{filterDate}}]]''}}]","collection":"analyticsRegistrations"},"type":"native"},"id":15,"parameter_mappings":[],"display":"table","entity_id":"1z0T_0BESRBrkEWYBglCm","collection_preview":true,"visualization_settings":{"table.pivot_column":"foo","table.cell_column":"_id"},"is_write":false,"parameters":[{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","type":"string/=","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (207, 'Card', 15, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:13:28.888+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"native","name":"Filter date test","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterFrom":{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","name":"filterFrom","display-name":"Filterfrom","type":"date","default":null},"filterTo":{"id":"0d4ae775-ae4b-95a3-6342-771cd1b8f66e","name":"filterTo","display-name":"Filterto","type":"date","default":null}},"query":"[{$project: {foo: ''[[{{filterFrom}}]] - [[{{filterTo}}]]''}}]","collection":"analyticsRegistrations"},"type":"native"},"id":15,"parameter_mappings":[],"display":"table","entity_id":"1z0T_0BESRBrkEWYBglCm","collection_preview":true,"visualization_settings":{"table.pivot_column":"foo","table.cell_column":"_id"},"is_write":false,"parameters":[{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","type":"date/single","target":["variable",["template-tag","filterFrom"]],"name":"Filterfrom","slug":"filterFrom"},{"id":"0d4ae775-ae4b-95a3-6342-771cd1b8f66e","type":"date/single","target":["variable",["template-tag","filterTo"]],"name":"Filterto","slug":"filterTo"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(554, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $sort: {\n category: 1\n }\n }\n ]\n ","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"text"}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"category","target":["variable",["template-tag","filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(554, 1, 'erEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(555, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"text"}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"s', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(555, 1, 'how_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(556, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["t', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(556, 1, 'otal"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"date/month-year","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(557, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axi', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(557, 1, 's.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(558, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(558, 1, 'axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(559, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-t', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(559, 1, 'ag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(560, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"table","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(560, 1, '-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(561, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-t', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(561, 1, 'ag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(562, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_setti', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(562, 1, 'ngs":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(555, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $sort: {\n category: 1\n }\n }\n ]\n ","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"text"}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"category","target":["variable",["template-tag","filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(555, 1, 'erEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(556, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"text"}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"s', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(556, 1, 'how_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(557, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Filteroffice","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["t', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(557, 1, 'otal"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"date/month-year","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(558, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"table","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axi', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(558, 1, 's.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(559, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(559, 1, 'axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(560, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-t', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(560, 1, 'ag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(561, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"table","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(561, 1, '-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(562, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-t', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(562, 1, 'ag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(563, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_setti', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(563, 1, 'ngs":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (209, 'Card', 15, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:15:26.281+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"native","name":"Filter date test","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterFrom":{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","name":"filterFrom","display-name":"Filterfrom","type":"dimension","default":null,"dimension":["field",354,null],"widget-type":"string/="},"filterTo":{"id":"0d4ae775-ae4b-95a3-6342-771cd1b8f66e","name":"filterTo","display-name":"Filterto","type":"dimension","default":null,"dimension":["field",354,null],"widget-type":"string/="}},"query":"[{$project: {foo: ''[[{{filterFrom}}]] - [[{{filterTo}}]]''}}]","collection":"analyticsRegistrations"},"type":"native"},"id":15,"parameter_mappings":[],"display":"table","entity_id":"1z0T_0BESRBrkEWYBglCm","collection_preview":true,"visualization_settings":{"table.pivot_column":"foo","table.cell_column":"_id"},"is_write":false,"parameters":[{"id":"feb3ffd2-fa2c-0881-9f28-a1b401cb4715","type":"string/=","target":["dimension",["template-tag","filterFrom"]],"name":"Filterfrom","slug":"filterFrom"},{"id":"0d4ae775-ae4b-95a3-6342-771cd1b8f66e","type":"string/=","target":["dimension",["template-tag","filterTo"]],"name":"Filterto","slug":"filterTo"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(217, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:32:02.562+00', SYSTEM_COMBINE_CLOB(554), FALSE, FALSE, NULL), -(218, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:39:30.498+00', SYSTEM_COMBINE_CLOB(555), FALSE, FALSE, NULL), -(220, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:41:51.789+00', SYSTEM_COMBINE_CLOB(556), FALSE, FALSE, NULL), -(222, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:00:42.748+00', SYSTEM_COMBINE_CLOB(557), FALSE, FALSE, NULL), -(223, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:00:51.299+00', SYSTEM_COMBINE_CLOB(558), FALSE, FALSE, NULL), +(217, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:32:02.562+00', SYSTEM_COMBINE_CLOB(555), FALSE, FALSE, NULL), +(218, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:39:30.498+00', SYSTEM_COMBINE_CLOB(556), FALSE, FALSE, NULL), +(220, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 12:41:51.789+00', SYSTEM_COMBINE_CLOB(557), FALSE, FALSE, NULL), +(222, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:00:42.748+00', SYSTEM_COMBINE_CLOB(558), FALSE, FALSE, NULL), +(223, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:00:51.299+00', SYSTEM_COMBINE_CLOB(559), FALSE, FALSE, NULL), (225, 'Card', 16, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:06:40.366+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Total Registrations (without native query)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":22,"aggregation":[["count"]]},"database":2},"id":16,"parameter_mappings":[],"display":"scalar","entity_id":"BOot6oon80vLb791-gzQb","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), -(230, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:02.855+00', SYSTEM_COMBINE_CLOB(559), FALSE, FALSE, NULL), -(231, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:10.749+00', SYSTEM_COMBINE_CLOB(560), FALSE, FALSE, NULL), -(232, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:26.98+00', SYSTEM_COMBINE_CLOB(561), FALSE, FALSE, NULL), -(236, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:09:55.075+00', SYSTEM_COMBINE_CLOB(562), FALSE, FALSE, NULL), +(230, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:02.855+00', SYSTEM_COMBINE_CLOB(560), FALSE, FALSE, NULL), +(231, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:10.749+00', SYSTEM_COMBINE_CLOB(561), FALSE, FALSE, NULL), +(232, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:08:26.98+00', SYSTEM_COMBINE_CLOB(562), FALSE, FALSE, NULL), +(236, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:09:55.075+00', SYSTEM_COMBINE_CLOB(563), FALSE, FALSE, NULL), (237, 'Card', 16, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:10:28.396+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Total Registrations (without native query)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"query":{"aggregation":[["count"]],"filter":["time-interval",["field",354,null],-1,"year"],"source-table":22},"type":"query"},"id":16,"parameter_mappings":[],"display":"scalar","entity_id":"BOot6oon80vLb791-gzQb","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(563, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_s', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(563, 1, 'ettings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(564, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_s', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(564, 1, 'ettings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(565, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":[],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uu', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(565, 1, 'id":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(566, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(566, 1, '":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(565, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]","collection":"analyticsRegistrations","template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_s', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(565, 1, 'ettings":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"date/month-year","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(566, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"table.columns":[],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":[],"graph.show_goal":false,"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uu', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(566, 1, 'id":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(567, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(567, 1, '":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(568, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","tar', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(568, 1, 'get":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(568, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"collection":"analyticsRegistrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"database":2},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(568, 1, '":{"graph.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(569, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","tar', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(569, 1, 'get":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (244, 'Card', 16, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:13:36.431+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Total Registrations (without native query)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"source-table":22},"database":2},"id":16,"parameter_mappings":[],"display":"scalar","entity_id":"BOot6oon80vLb791-gzQb","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(247, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:14:54.833+00', SYSTEM_COMBINE_CLOB(563), FALSE, FALSE, NULL), -(248, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:15:05.811+00', SYSTEM_COMBINE_CLOB(564), FALSE, FALSE, NULL), -(249, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:15:44.565+00', SYSTEM_COMBINE_CLOB(565), FALSE, FALSE, NULL), -(266, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:40:00.101+00', SYSTEM_COMBINE_CLOB(566), FALSE, FALSE, NULL), -(267, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:40:09.121+00', SYSTEM_COMBINE_CLOB(567), FALSE, FALSE, NULL), -(282, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 08:37:34.14+00', SYSTEM_COMBINE_CLOB(568), FALSE, TRUE, NULL), +(247, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:14:54.833+00', SYSTEM_COMBINE_CLOB(564), FALSE, FALSE, NULL), +(248, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:15:05.811+00', SYSTEM_COMBINE_CLOB(565), FALSE, FALSE, NULL), +(249, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:15:44.565+00', SYSTEM_COMBINE_CLOB(566), FALSE, FALSE, NULL), +(266, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:40:00.101+00', SYSTEM_COMBINE_CLOB(567), FALSE, FALSE, NULL), +(267, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-16 13:40:09.121+00', SYSTEM_COMBINE_CLOB(568), FALSE, FALSE, NULL), +(282, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 08:37:34.14+00', SYSTEM_COMBINE_CLOB(569), FALSE, TRUE, NULL), (283, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 08:50:07.847+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"a666e98b-e623-90ba-d4d8-a871c18b99aa","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"9cf30dcd-6044-2331-bcf2-4542534ad91c","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"1ca050d1-c518-b429-bbd0-d6d252bdfd61","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"beccc634-814a-9420-d087-07b4285b8659","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"9e3a2f1d-031c-0bd1-0818-6efa8b490cfe","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }},\n {\n \"$group\": {\n \"_id\": {\n \"birthOrder\": \"$birthOrder\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"birthOrder\": \"$_id.birthOrder\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"birthOrder\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"pie.dimension":"birthOrder","pie.metric":"count","graph.dimensions":["birthOrder"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.metrics":["count"]},"is_write":false,"parameters":[{"id":"a666e98b-e623-90ba-d4d8-a871c18b99aa","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"9cf30dcd-6044-2331-bcf2-4542534ad91c","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"1ca050d1-c518-b429-bbd0-d6d252bdfd61","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"beccc634-814a-9420-d087-07b4285b8659","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"9e3a2f1d-031c-0bd1-0818-6efa8b490cfe","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(569, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''birthOrder'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"birthOrder\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"pie.dimension":"birthOrder","pie.metric":"count","graph.dimensions":["birthOrder"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":[', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(569, 1, '"variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(570, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''birthOrder'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"birthOrder\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["birthOrder"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"na', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(570, 1, 'me":"Filterevent","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(571, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filtereven', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(571, 1, 't","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(572, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [ {gte: [''$mothersAge'', 9.0]}, {lte: [''$mothersAge'', 14.0]}] }, then: ''9-14''},\n {case: {$and: [ {gt: [''$mothersAge'', 14]}, {lte: [''$mothersAge'', 19]}] }, then: ''15-19''},\n {case: {$and: [ {gt: [''$mothersAge'', 19]}, {lte: [''$mothersAge'', 24]}] }, then: ''20-24''},\n {case: {$and: [ {gt: [''$mothersAge'', 24]}, {lte: [''$mothersAge'', 29]}] }, then: ''25-29''},\n {case: {$and: [ {gt: [''$mothersAge'', 29]}, {lte: [''$mothersAge'', 34]}] }, then: ''30-34''},\n {case: {$and: [ {gt: [''$mothersAge'', 34]}, {lte: [''$mothersAge'', 39]}] }, then: ''35-39''},\n {case: {$and: [ {gt: [''$mothersAge'', 39]}, {lte: [''$mothersAge'', 44]}] }, then: ''40-44''},\n {case: {$and: [ {gt: [''$mothersAge'', 44]}, {lte: [''$mothersAge'', 49]}] }, then: ''45-49''},\n {case: {$and: [ {gt: [''$mothersAge'', 49]}, {lte: [''$mothersAge'', 54]}] }, then: ''50-54''},\n {case: {$and: [ {gt: [''$mothersAge'', 54]}, {lte: [''$mothersAge'', 59]}] }, then: ''55-59''},\n {case: {$and: [ {gt: [''$mothersAge'', 59]} ]}, then: ''60+''}\n\n \n\n\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(572, 1, 'native"},"id":20,"parameter_mappings":[],"display":"table","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count"},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(573, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(573, 1, ':20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(574, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(574, 1, '"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(575, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filte', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(575, 1, 'rEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(576, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","gra', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(576, 1, 'ph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(577, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(577, 1, '83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(578, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11",', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(578, 1, '"name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(579, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(579, 1, ':["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(580, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":"compact","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(580, 1, 'e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(581, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filter', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(581, 1, 'Gender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(582, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"row","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filter', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(570, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''birthOrder'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"birthOrder\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"pie.dimension":"birthOrder","pie.metric":"count","graph.dimensions":["birthOrder"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":[', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(570, 1, '"variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(571, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''birthOrder'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"birthOrder\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["birthOrder"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"na', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(571, 1, 'me":"Filterevent","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(572, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filtereven', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(572, 1, 't","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(573, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [ {gte: [''$mothersAge'', 9.0]}, {lte: [''$mothersAge'', 14.0]}] }, then: ''9-14''},\n {case: {$and: [ {gt: [''$mothersAge'', 14]}, {lte: [''$mothersAge'', 19]}] }, then: ''15-19''},\n {case: {$and: [ {gt: [''$mothersAge'', 19]}, {lte: [''$mothersAge'', 24]}] }, then: ''20-24''},\n {case: {$and: [ {gt: [''$mothersAge'', 24]}, {lte: [''$mothersAge'', 29]}] }, then: ''25-29''},\n {case: {$and: [ {gt: [''$mothersAge'', 29]}, {lte: [''$mothersAge'', 34]}] }, then: ''30-34''},\n {case: {$and: [ {gt: [''$mothersAge'', 34]}, {lte: [''$mothersAge'', 39]}] }, then: ''35-39''},\n {case: {$and: [ {gt: [''$mothersAge'', 39]}, {lte: [''$mothersAge'', 44]}] }, then: ''40-44''},\n {case: {$and: [ {gt: [''$mothersAge'', 44]}, {lte: [''$mothersAge'', 49]}] }, then: ''45-49''},\n {case: {$and: [ {gt: [''$mothersAge'', 49]}, {lte: [''$mothersAge'', 54]}] }, then: ''50-54''},\n {case: {$and: [ {gt: [''$mothersAge'', 54]}, {lte: [''$mothersAge'', 59]}] }, then: ''55-59''},\n {case: {$and: [ {gt: [''$mothersAge'', 59]} ]}, then: ''60+''}\n\n \n\n\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(573, 1, 'native"},"id":20,"parameter_mappings":[],"display":"table","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count"},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(574, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(574, 1, ':20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(575, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(575, 1, '"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(576, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filte', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(576, 1, 'rEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(577, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","gra', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(577, 1, 'ph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(578, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(578, 1, '83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(579, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11",', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(579, 1, '"name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(580, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(580, 1, ':["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(581, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":"compact","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(581, 1, 'e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(582, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filter', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(582, 1, 'Gender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(583, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Educational Attainment","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["templat', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(583, 1, 'e-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(584, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameter', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(584, 1, 's":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(585, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"s', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(585, 1, 'tring/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(583, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"row","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Category","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filter', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(583, 1, 'Gender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(584, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"pie.dimension":"Educational Attainment","pie.metric":"Count","graph.dimensions":["Educational Attainment","Attainment"],"graph.show_values":true,"graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.y_axis.auto_range":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["templat', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(584, 1, 'e-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(585, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameter', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(585, 1, 's":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(586, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": \"$_id\"\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": -1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"s', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(586, 1, 'tring/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(284, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:28:20.21+00', SYSTEM_COMBINE_CLOB(569), FALSE, FALSE, NULL), -(285, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:31:08.227+00', SYSTEM_COMBINE_CLOB(570), FALSE, FALSE, NULL), -(286, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:31:47.848+00', SYSTEM_COMBINE_CLOB(571), FALSE, FALSE, NULL), -(287, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:56:45.344+00', SYSTEM_COMBINE_CLOB(572), FALSE, TRUE, NULL), -(288, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:14:19.745+00', SYSTEM_COMBINE_CLOB(573), FALSE, FALSE, NULL), -(289, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:18:25.788+00', SYSTEM_COMBINE_CLOB(574), FALSE, FALSE, NULL), -(290, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:32:35.267+00', SYSTEM_COMBINE_CLOB(575), FALSE, TRUE, NULL), -(302, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:52:36.051+00', SYSTEM_COMBINE_CLOB(576), FALSE, FALSE, NULL), -(303, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:53:22.356+00', SYSTEM_COMBINE_CLOB(577), FALSE, FALSE, NULL), -(304, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:58:12.624+00', SYSTEM_COMBINE_CLOB(578), FALSE, FALSE, NULL), -(305, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:59:05.275+00', SYSTEM_COMBINE_CLOB(579), FALSE, FALSE, NULL), -(323, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 06:57:45.674+00', SYSTEM_COMBINE_CLOB(580), FALSE, FALSE, NULL), -(324, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 06:58:51.449+00', SYSTEM_COMBINE_CLOB(581), FALSE, FALSE, NULL), -(327, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:02:29.825+00', SYSTEM_COMBINE_CLOB(582), FALSE, FALSE, NULL), -(330, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:03:35.831+00', SYSTEM_COMBINE_CLOB(583), FALSE, FALSE, NULL), -(333, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:10:28.973+00', SYSTEM_COMBINE_CLOB(584), FALSE, FALSE, NULL), -(336, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:24:45.777+00', SYSTEM_COMBINE_CLOB(585), FALSE, FALSE, NULL), +(284, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:28:20.21+00', SYSTEM_COMBINE_CLOB(570), FALSE, FALSE, NULL), +(285, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:31:08.227+00', SYSTEM_COMBINE_CLOB(571), FALSE, FALSE, NULL), +(286, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:31:47.848+00', SYSTEM_COMBINE_CLOB(572), FALSE, FALSE, NULL), +(287, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 09:56:45.344+00', SYSTEM_COMBINE_CLOB(573), FALSE, TRUE, NULL), +(288, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:14:19.745+00', SYSTEM_COMBINE_CLOB(574), FALSE, FALSE, NULL), +(289, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:18:25.788+00', SYSTEM_COMBINE_CLOB(575), FALSE, FALSE, NULL), +(290, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-19 10:32:35.267+00', SYSTEM_COMBINE_CLOB(576), FALSE, TRUE, NULL), +(302, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:52:36.051+00', SYSTEM_COMBINE_CLOB(577), FALSE, FALSE, NULL), +(303, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:53:22.356+00', SYSTEM_COMBINE_CLOB(578), FALSE, FALSE, NULL), +(304, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:58:12.624+00', SYSTEM_COMBINE_CLOB(579), FALSE, FALSE, NULL), +(305, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 05:59:05.275+00', SYSTEM_COMBINE_CLOB(580), FALSE, FALSE, NULL), +(323, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 06:57:45.674+00', SYSTEM_COMBINE_CLOB(581), FALSE, FALSE, NULL), +(324, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 06:58:51.449+00', SYSTEM_COMBINE_CLOB(582), FALSE, FALSE, NULL), +(327, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:02:29.825+00', SYSTEM_COMBINE_CLOB(583), FALSE, FALSE, NULL), +(330, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:03:35.831+00', SYSTEM_COMBINE_CLOB(584), FALSE, FALSE, NULL), +(333, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:10:28.973+00', SYSTEM_COMBINE_CLOB(585), FALSE, FALSE, NULL), +(336, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 07:24:45.777+00', SYSTEM_COMBINE_CLOB(586), FALSE, FALSE, NULL), (351, 'Card', 26, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 08:34:27.517+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Birth order by mother''s age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":22,"expressions":{"MothersAgeGroup":["case",[[["<",["field",350,null],14],"9-14"],[["<",["field",350,null],19],"15-19"],[["<",["field",350,null],24],"20-24"],[["<",["field",350,null],29],"25-29"],[["<",["field",350,null],34],"30-34"],[["<",["field",350,null],39],"35-39"],[["<",["field",350,null],44],"40-44"],[["<",["field",350,null],49],"45-49"],[["<",["field",350,null],54],"50-54"],[["<",["field",350,null],59],"55-59"],[[">",["field",350,null],59],"60+"]]],"BirthOrder":["field",346,null]},"aggregation":[["count"]],"breakout":[["expression","MothersAgeGroup"],["expression","BirthOrder"]]},"database":2},"id":26,"parameter_mappings":[],"display":"table","entity_id":"rqIKCYaUJtkwCiLzYcfii","collection_preview":true,"visualization_settings":{"table.pivot":true,"table.pivot_column":"MothersAgeGroup","table.cell_column":"count"},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), (352, 'Card', 26, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 08:46:50.763+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Birth order by mother''s age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"query":{"source-table":22,"expressions":{"MothersAgeGroup":["case",[[["<",["field",350,null],14],"9-14"],[["<",["field",350,null],19],"15-19"],[["<",["field",350,null],24],"20-24"],[["<",["field",350,null],29],"25-29"],[["<",["field",350,null],34],"30-34"],[["<",["field",350,null],39],"35-39"],[["<",["field",350,null],44],"40-44"],[["<",["field",350,null],49],"45-49"],[["<",["field",350,null],54],"50-54"],[["<",["field",350,null],59],"55-59"],[[">",["field",350,null],59],"60+"]]],"BirthOrderGroup":["case",[[["=",["field",346,null],1],"1"],[["=",["field",346,null],2],"2"],[["=",["field",346,null],3],"3"],[["=",["field",346,null],4],"4"],[["=",["field",346,null],5],"5"],[[">",["field",346,null],6],"6+"]]]},"aggregation":[["count"]],"breakout":[["expression","BirthOrderGroup"],["expression","MothersAgeGroup"]]},"type":"query"},"id":26,"parameter_mappings":[],"display":"table","entity_id":"rqIKCYaUJtkwCiLzYcfii","collection_preview":true,"visualization_settings":{"table.pivot":true,"table.pivot_column":"BirthOrderGroup","table.cell_column":"count"},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES @@ -175096,164 +175106,164 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (359, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 09:21:07.333+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Place of birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":22,"expressions":{"PlaceOfBirth":["case",[[["=",["field",338,null],"BUS"],"Bus"],[["=",["field",338,null],"CAR_TAXI"],"Taxi"],[["=",["field",338,null],"HEALTH_FACILITY"],"Health facility"],[["=",["field",338,null],"MATERNITY_HOME"],"Maternity home"],[["=",["field",338,null],"PRIVATE_HOME"],"Private home"],[["=",["field",338,null],"TRADITIONAL_DOCTORS"],"Traditional doctors"]]]},"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]]},"database":2},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), (364, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 09:26:38.503+00', '{"description":null,"archived":false,"collection_position":null,"table_id":68,"database_id":2,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Corrections by type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":68,"expressions":{"ReasonForCorrection":["case",[[["=",["field",617,null],"CLERICAL_ERROR"],"Clerical error"],[["=",["field",617,null],"JUDICIAL_ORDER"],"Judicial order"]]]},"aggregation":[["count"]],"breakout":[["expression","ReasonForCorrection"]]},"database":2},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), (369, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 09:32:38.019+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"query":{"source-table":22,"expressions":{"TypeOfBirth":["case",[[["=",["field",342,null],"SINGLE"],"Single"],[["=",["field",342,null],"TWIN"],"Twin"],[["=",["field",342,null],"TRIPLET"],"Triplet"],[["=",["field",342,null],"QUADRUPLET"],"Quadruplet"]]]},"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"order-by":[["desc",["aggregation",0,null]]]},"type":"query"},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(586, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars for last 30 days","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(586, 1, '":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(587, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["f', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(587, 1, 'ield",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(588, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(588, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(589, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(589, 1, '"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(590, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Percentage"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"fi', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(590, 1, 'lterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(591, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(591, 1, '"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(592, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 20\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(587, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars for last 30 days","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(587, 1, '":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(588, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["f', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(588, 1, 'ield",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(589, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(589, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(590, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(590, 1, '"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(591, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Percentage"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"fi', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(591, 1, 'lterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(592, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(592, 1, '"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(593, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 20\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(593, 1, '"dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(594, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(593, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }},\n {\n $limit: 20\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(593, 1, '"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(594, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 20\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(594, 1, '"dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(595, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"thisday"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["di', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(595, 1, 'mension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"thisday"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(596, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(596, 1, '"dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(597, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Live births registered by age of child v2","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"analyticsRegistrations"},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","co', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(597, 1, 'llection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"color":"#F9D45C","title":"Over age 5"},"12":{"color":"#A989C5","title":"Under age 1"},"23":{"title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(598, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"analyticsRegistrations"},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":tru', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(598, 1, 'e,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"color":"#F9D45C","title":"Over age 5"},"12":{"color":"#A989C5","title":"Under age 1"},"23":{"title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(595, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(595, 1, '"dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(596, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"thisday"}}},"database":2},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["di', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(596, 1, 'mension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"thisday"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(597, 0, '{"description":"This leaderboard is showing the result of past 30 days","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":[', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(597, 1, '"dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(598, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Live births registered by age of child v2","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"analyticsRegistrations"},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","co', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(598, 1, 'llection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"color":"#F9D45C","title":"Over age 5"},"12":{"color":"#A989C5","title":"Under age 1"},"23":{"title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(599, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"analyticsRegistrations"},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":tru', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(599, 1, 'e,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(599, 1, 'e,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"color":"#F9D45C","title":"Over age 5"},"12":{"color":"#A989C5","title":"Under age 1"},"23":{"title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(600, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"analyticsRegistrations"},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":tru', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(600, 1, 'e,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(394, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 10:04:17.126+00', SYSTEM_COMBINE_CLOB(586), FALSE, FALSE, NULL), +(394, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 10:04:17.126+00', SYSTEM_COMBINE_CLOB(587), FALSE, FALSE, NULL), (395, 'Card', 30, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 10:12:01.212+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":8,"query_type":"query","name":"Certificates issued","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":22,"aggregation":[["count"]],"expressions":{"Status":["case",[[["=",["field",651,null],"REGISTERED"],"Not Certified"],[["=",["field",651,null],"CERTIFIED"],"Certified"]]]},"breakout":[["expression","Status"]]},"database":2},"id":30,"parameter_mappings":[],"display":"pie","entity_id":"i9_4VwkR62cl03HLkb9e7","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), -(402, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 10:52:54.697+00', SYSTEM_COMBINE_CLOB(587), FALSE, FALSE, NULL), -(403, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:07:50.598+00', SYSTEM_COMBINE_CLOB(588), FALSE, FALSE, NULL), -(404, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:08:29.56+00', SYSTEM_COMBINE_CLOB(589), FALSE, FALSE, NULL), -(405, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:09:37.642+00', SYSTEM_COMBINE_CLOB(590), FALSE, FALSE, NULL), -(406, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:10:03.401+00', SYSTEM_COMBINE_CLOB(591), FALSE, FALSE, NULL), -(407, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:10:24.529+00', SYSTEM_COMBINE_CLOB(592), FALSE, FALSE, NULL), -(408, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:11:13.446+00', SYSTEM_COMBINE_CLOB(593), FALSE, FALSE, NULL), -(409, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:11:32.817+00', SYSTEM_COMBINE_CLOB(594), FALSE, FALSE, NULL), -(414, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 12:22:44.277+00', SYSTEM_COMBINE_CLOB(595), FALSE, FALSE, NULL), -(415, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 12:23:27.126+00', SYSTEM_COMBINE_CLOB(596), FALSE, FALSE, NULL), -(419, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:21:48.04+00', SYSTEM_COMBINE_CLOB(597), FALSE, TRUE, NULL), -(420, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:22:41.144+00', SYSTEM_COMBINE_CLOB(598), FALSE, FALSE, NULL), -(421, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:24:43.811+00', SYSTEM_COMBINE_CLOB(599), FALSE, FALSE, NULL), +(402, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 10:52:54.697+00', SYSTEM_COMBINE_CLOB(588), FALSE, FALSE, NULL), +(403, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:07:50.598+00', SYSTEM_COMBINE_CLOB(589), FALSE, FALSE, NULL), +(404, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:08:29.56+00', SYSTEM_COMBINE_CLOB(590), FALSE, FALSE, NULL), +(405, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:09:37.642+00', SYSTEM_COMBINE_CLOB(591), FALSE, FALSE, NULL), +(406, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:10:03.401+00', SYSTEM_COMBINE_CLOB(592), FALSE, FALSE, NULL), +(407, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:10:24.529+00', SYSTEM_COMBINE_CLOB(593), FALSE, FALSE, NULL), +(408, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:11:13.446+00', SYSTEM_COMBINE_CLOB(594), FALSE, FALSE, NULL), +(409, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 11:11:32.817+00', SYSTEM_COMBINE_CLOB(595), FALSE, FALSE, NULL), +(414, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 12:22:44.277+00', SYSTEM_COMBINE_CLOB(596), FALSE, FALSE, NULL), +(415, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-20 12:23:27.126+00', SYSTEM_COMBINE_CLOB(597), FALSE, FALSE, NULL), +(419, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:21:48.04+00', SYSTEM_COMBINE_CLOB(598), FALSE, TRUE, NULL), +(420, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:22:41.144+00', SYSTEM_COMBINE_CLOB(599), FALSE, FALSE, NULL), +(421, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:24:43.811+00', SYSTEM_COMBINE_CLOB(600), FALSE, FALSE, NULL), (430, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:32:07.284+00', '{"description":null,"archived":false,"collection_position":null,"table_id":22,"database_id":2,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Place of birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",338,null],"BUS"],"Bus"],[["=",["field",338,null],"CAR_TAXI"],"Taxi"],[["=",["field",338,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",338,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",338,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",338,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["and",["=",["field",538,null],"Birth"],["time-interval",["field",354,null],"current","year"]],"source-table":22},"database":2},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (431, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 07:32:38.954+00', '{"description":null,"archived":false,"collection_position":null,"table_id":68,"database_id":2,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Corrections by type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","ReasonForCorrection"]],"expressions":{"ReasonForCorrection":["case",[[["=",["field",617,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",617,null],"JUDICIAL_ORDER"],"Judicial Order"]]]},"filter":["and",["=",["field",650,null],"Birth"],["time-interval",["field",640,null],"current","year"]],"source-table":68},"database":2},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(600, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"dat', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(600, 1, 'e/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(601, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","targe', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(601, 1, 't":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(602, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Registrations"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(602, 1, 'b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(603, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"dat', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(603, 1, 'e/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(601, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"dat', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(601, 1, 'e/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(602, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard by Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","targe', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(602, 1, 't":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(603, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Registrations"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(603, 1, 'b90","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(604, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"714d5902-296d-8cee-ed3c-103c588a855a","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"714d5902-296d-8cee-ed3c-103c588a855a","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"90028ce9-3f5d-246a-8b0e-9221adb5128a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"8f889b01-8027-df24-1000-aa0e7cd2123e","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1b5d8679-3ac1-295e-94c5-709031bb6279","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"bb02d443-ba05-0c59-5887-eb51b5e72b90","type":"dat', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(604, 1, 'e/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(438, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:50:07.484+00', SYSTEM_COMBINE_CLOB(600), FALSE, FALSE, NULL), -(439, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:51:09.204+00', SYSTEM_COMBINE_CLOB(601), FALSE, FALSE, NULL), -(440, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:54:08.766+00', SYSTEM_COMBINE_CLOB(602), FALSE, FALSE, NULL), -(441, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:54:51.594+00', SYSTEM_COMBINE_CLOB(603), FALSE, FALSE, NULL), +(438, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:50:07.484+00', SYSTEM_COMBINE_CLOB(601), FALSE, FALSE, NULL), +(439, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:51:09.204+00', SYSTEM_COMBINE_CLOB(602), FALSE, FALSE, NULL), +(440, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:54:08.766+00', SYSTEM_COMBINE_CLOB(603), FALSE, FALSE, NULL), +(441, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:54:51.594+00', SYSTEM_COMBINE_CLOB(604), FALSE, FALSE, NULL), (442, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:57:18.951+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"56bcad79-0f63-fedb-353f-06d76542e554","name":"filterDate","display-name":"Filterdate","type":"text"},"filterGender":{"id":"1db3e4d1-30e4-b363-17a0-da2e6a738d96","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"44beaa9e-5267-84ba-f544-6122407db01b","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"cc89381c-80b2-8721-6c42-64b9ac1f3932","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"2b1d42f4-11a7-0113-3a30-70ed4b8ac7ae","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"registrations\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"registrations\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.registrations'', 100]}, ''$totalCount'']}\n , ''Registrations'': \"$allInfo.registrations\"\n \n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Registrations"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"56bcad79-0f63-fedb-353f-06d76542e554","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"1db3e4d1-30e4-b363-17a0-da2e6a738d96","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"44beaa9e-5267-84ba-f544-6122407db01b","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"cc89381c-80b2-8721-6c42-64b9ac1f3932","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"2b1d42f4-11a7-0113-3a30-70ed4b8ac7ae","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (443, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 10:58:34.876+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"56bcad79-0f63-fedb-353f-06d76542e554","name":"filterDate","display-name":"Filterdate","type":"text"},"filterGender":{"id":"1db3e4d1-30e4-b363-17a0-da2e6a738d96","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"44beaa9e-5267-84ba-f544-6122407db01b","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"cc89381c-80b2-8721-6c42-64b9ac1f3932","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"2b1d42f4-11a7-0113-3a30-70ed4b8ac7ae","name":"filterOffice","display-name":"Filteroffice","type":"text"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Registrations'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n }}\n]","collection":"analyticsRegistrations"},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Registrations"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"56bcad79-0f63-fedb-353f-06d76542e554","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"1db3e4d1-30e4-b363-17a0-da2e6a738d96","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"44beaa9e-5267-84ba-f544-6122407db01b","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"cc89381c-80b2-8721-6c42-64b9ac1f3932","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"2b1d42f4-11a7-0113-3a30-70ed4b8ac7ae","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(604, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}}},"database":2},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(604, 1, '":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(605, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","targe', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(605, 1, 't":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(606, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"778705c5-e02b-4b7e-1379-c87c41870dd5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromString: { dateString: ''$date''}} \n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsRegistrations"},"type":"native"},"id":13,"parameter_mappings":[', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(606, 1, '],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"778705c5-e02b-4b7e-1379-c87c41870dd5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(607, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"9e84f2a4-2b4c-dc2a-6529-b508bbeedb40","name":"filterGender","display-name":"Filtergender","type":"text"},"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"text"},"filterEvent":{"id":"2e51c7f1-4ab9-fe06-d4d4-0b1ecdc4daf1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"c7c17369-6fda-f065-f3c6-3270b4494260","name":"filterState","display-name":"Filterstate","type":"text"}},"query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n state: ''$_id.name'',\n percentage: {$round: [{$multiply: [''$percentage'', 100] }, 0]},\n test: ''[[ {{ filterDate }} ]]''\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dime', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(607, 1, 'nsion":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"9e84f2a4-2b4c-dc2a-6529-b508bbeedb40","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"2e51c7f1-4ab9-fe06-d4d4-0b1ecdc4daf1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"c7c17369-6fda-f065-f3c6-3270b4494260","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(608, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n state: ''$_id.name'',\n percentage: {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(608, 1, '],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(605, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null}}},"database":2},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(605, 1, '":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(606, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",352,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/relative","default":"past30days"}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","targe', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(606, 1, 't":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate","default":"past30days"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(607, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"778705c5-e02b-4b7e-1379-c87c41870dd5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromString: { dateString: ''$date''}} \n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsRegistrations"},"type":"native"},"id":13,"parameter_mappings":[', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(607, 1, '],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"778705c5-e02b-4b7e-1379-c87c41870dd5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(608, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"9e84f2a4-2b4c-dc2a-6529-b508bbeedb40","name":"filterGender","display-name":"Filtergender","type":"text"},"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"text"},"filterEvent":{"id":"2e51c7f1-4ab9-fe06-d4d4-0b1ecdc4daf1","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"c7c17369-6fda-f065-f3c6-3270b4494260","name":"filterState","display-name":"Filterstate","type":"text"}},"query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n state: ''$_id.name'',\n percentage: {$round: [{$multiply: [''$percentage'', 100] }, 0]},\n test: ''[[ {{ filterDate }} ]]''\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dime', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(608, 1, 'nsion":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"9e84f2a4-2b4c-dc2a-6529-b508bbeedb40","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"2e51c7f1-4ab9-fe06-d4d4-0b1ecdc4daf1","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"c7c17369-6fda-f065-f3c6-3270b4494260","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(609, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n state: ''$_id.name'',\n percentage: {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(609, 1, '],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(610, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n state: ''$_id.name'',\n percentage: {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(610, 1, '],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(444, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 11:04:42.033+00', SYSTEM_COMBINE_CLOB(604), FALSE, FALSE, NULL), -(445, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 08:17:00.357+00', SYSTEM_COMBINE_CLOB(605), FALSE, FALSE, NULL), -(453, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 12:03:42.573+00', SYSTEM_COMBINE_CLOB(606), FALSE, FALSE, NULL), -(457, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:45:51.027+00', SYSTEM_COMBINE_CLOB(607), FALSE, FALSE, NULL), -(458, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:50:18.849+00', SYSTEM_COMBINE_CLOB(608), FALSE, FALSE, NULL), -(459, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:50:35.114+00', SYSTEM_COMBINE_CLOB(609), FALSE, FALSE, NULL), +(444, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-21 11:04:42.033+00', SYSTEM_COMBINE_CLOB(605), FALSE, FALSE, NULL), +(445, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 08:17:00.357+00', SYSTEM_COMBINE_CLOB(606), FALSE, FALSE, NULL), +(453, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 12:03:42.573+00', SYSTEM_COMBINE_CLOB(607), FALSE, FALSE, NULL), +(457, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:45:51.027+00', SYSTEM_COMBINE_CLOB(608), FALSE, FALSE, NULL), +(458, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:50:18.849+00', SYSTEM_COMBINE_CLOB(609), FALSE, FALSE, NULL), +(459, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:50:35.114+00', SYSTEM_COMBINE_CLOB(610), FALSE, FALSE, NULL), (462, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 13:58:31.47+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(610, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"table","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualizatio', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(610, 1, 'n_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(611, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualizatio', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(611, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"table","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualizatio', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(611, 1, 'n_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(612, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(612, 1, 'table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(613, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(612, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateToString: {\n date: {$dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }}}\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualizatio', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(612, 1, 'n_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(613, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsPopulationEstimatesPerDay","query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}}},"database":2},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(613, 1, 'table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(614, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"scalar","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(614, 1, '"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(615, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(615, 1, 'table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(616, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n \n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$_id.date\", { $dateToString: { format: \"%Y-%m-%d\", date: \"$$date\" }} ] },\n { $eq: [ \"$_id.stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(616, 1, '-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(617, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(617, 1, 'series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(618, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11",', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(618, 1, '"name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(619, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(619, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(620, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["fiel', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(620, 1, 'd",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(621, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(621, 1, 'series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(622, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_colu', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(622, 1, 'mn":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(623, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null]', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(623, 1, ',"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(624, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(624, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(625, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(625, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(626, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(626, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(627, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"registrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n \n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$_id.date\", { $dateToString: { format: \"%Y-%m-%d\", date: \"$$date\" }} ] },\n { $eq: [ \"$_id.stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"populationEstimatesPerDay"},"database":3},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a6', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(627, 1, '6a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(614, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(614, 1, 'table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(615, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"scalar","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(615, 1, '"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(616, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(616, 1, 'table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(617, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",571,null],"widget-type":"date/range","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",572,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n \n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$_id.date\", { $dateToString: { format: \"%Y-%m-%d\", date: \"$$date\" }} ] },\n { $eq: [ \"$_id.stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"analyticsPopulationEstimatesPerDay"},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/range","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(617, 1, '-253b-a66a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(618, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(618, 1, 'series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(619, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11",', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(619, 1, '"name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(620, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(620, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(621, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"analyticsRegistrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["fiel', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(621, 1, 'd",354,null],"widget-type":"date/month-year","default":null}}},"database":2},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(622, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":2,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":2,"native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",336,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",538,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",340,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",339,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",354,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"analyticsRegistrations"},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(622, 1, 'series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(623, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_colu', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(623, 1, 'mn":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(624, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n , mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id.mothersLiteracy\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , \"count\": \"$qty\"\n }},\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null]', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(624, 1, ',"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(625, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''9-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Count\": -1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(625, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(626, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(626, 1, ' then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Attainment'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Attainment\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Attainment"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(627, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(627, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#7172AD"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(628, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"f884c63f-cae1-253b-a66a-e9d1284f25b2","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n }, \n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"registrations\",\n let: { name: \"$name\", date: \"$date\" },\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n \n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$_id.date\", { $dateToString: { format: \"%Y-%m-%d\", date: \"$$date\" }} ] },\n { $eq: [ \"$_id.stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: {name: \"$name\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n }}\n \n]","collection":"populationEstimatesPerDay"},"database":3},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"_id","table.cell_column":"percentage"},"is_write":false,"parameters":[{"id":"00f44aca-d69e-e96d-fe06-3a75520a7a56","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f884c63f-cae1-253b-a6', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(628, 1, '6a-e9d1284f25b2","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(463, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 14:02:22.347+00', SYSTEM_COMBINE_CLOB(610), FALSE, FALSE, NULL), -(464, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 14:02:31.999+00', SYSTEM_COMBINE_CLOB(611), FALSE, FALSE, NULL), -(465, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 17:41:43.058+00', SYSTEM_COMBINE_CLOB(612), FALSE, FALSE, NULL), -(470, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:33.917+00', SYSTEM_COMBINE_CLOB(613), FALSE, FALSE, NULL), -(471, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:45.567+00', SYSTEM_COMBINE_CLOB(614), FALSE, FALSE, NULL), -(472, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:53.406+00', SYSTEM_COMBINE_CLOB(615), FALSE, FALSE, NULL), -(473, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:39:38.712+00', SYSTEM_COMBINE_CLOB(616), FALSE, FALSE, NULL), -(476, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:30:38.65+00', SYSTEM_COMBINE_CLOB(617), FALSE, FALSE, NULL), -(477, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:17.355+00', SYSTEM_COMBINE_CLOB(618), FALSE, FALSE, NULL), -(478, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:37.019+00', SYSTEM_COMBINE_CLOB(619), FALSE, FALSE, NULL), -(479, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:53.796+00', SYSTEM_COMBINE_CLOB(620), FALSE, FALSE, NULL), -(485, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:37:13.288+00', SYSTEM_COMBINE_CLOB(621), FALSE, FALSE, NULL), +(463, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 14:02:22.347+00', SYSTEM_COMBINE_CLOB(611), FALSE, FALSE, NULL), +(464, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 14:02:31.999+00', SYSTEM_COMBINE_CLOB(612), FALSE, FALSE, NULL), +(465, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-22 17:41:43.058+00', SYSTEM_COMBINE_CLOB(613), FALSE, FALSE, NULL), +(470, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:33.917+00', SYSTEM_COMBINE_CLOB(614), FALSE, FALSE, NULL), +(471, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:45.567+00', SYSTEM_COMBINE_CLOB(615), FALSE, FALSE, NULL), +(472, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:05:53.406+00', SYSTEM_COMBINE_CLOB(616), FALSE, FALSE, NULL), +(473, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 09:39:38.712+00', SYSTEM_COMBINE_CLOB(617), FALSE, FALSE, NULL), +(476, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:30:38.65+00', SYSTEM_COMBINE_CLOB(618), FALSE, FALSE, NULL), +(477, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:17.355+00', SYSTEM_COMBINE_CLOB(619), FALSE, FALSE, NULL), +(478, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:37.019+00', SYSTEM_COMBINE_CLOB(620), FALSE, FALSE, NULL), +(479, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:32:53.796+00', SYSTEM_COMBINE_CLOB(621), FALSE, FALSE, NULL), +(485, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-23 11:37:13.288+00', SYSTEM_COMBINE_CLOB(622), FALSE, FALSE, NULL), (488, 'Card', 30, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:12:04.156+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":8,"query_type":"query","name":"Certificates issued","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"expressions":{"Status":["case",[[["=",["field",682,null],"REGISTERED"],"Not Certified"],[["=",["field",682,null],"CERTIFIED"],"Certified"]]]},"aggregation":[["count"]],"breakout":[["expression","Status"]]},"type":"query"},"id":30,"parameter_mappings":[],"display":"pie","entity_id":"i9_4VwkR62cl03HLkb9e7","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(489, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:14:18.341+00', SYSTEM_COMBINE_CLOB(622), FALSE, FALSE, NULL), +(489, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:14:18.341+00', SYSTEM_COMBINE_CLOB(623), FALSE, FALSE, NULL), (490, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:16:49.4+00', '{"description":null,"archived":false,"collection_position":null,"table_id":71,"database_id":3,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Corrections by type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":71,"expressions":{"ReasonForCorrection":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"]]]},"filter":["and",["=",["field",693,null],"Birth"],["time-interval",["field",695,null],"current","year"]],"aggregation":[["count"]],"breakout":[["expression","ReasonForCorrection"]]},"database":3},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(491, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:18:49.961+00', SYSTEM_COMBINE_CLOB(623), FALSE, FALSE, NULL), -(492, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:20:09.525+00', SYSTEM_COMBINE_CLOB(624), FALSE, FALSE, NULL), -(493, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:21:28.929+00', SYSTEM_COMBINE_CLOB(625), FALSE, FALSE, NULL), -(494, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:22:57.541+00', SYSTEM_COMBINE_CLOB(626), FALSE, FALSE, NULL), -(495, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:24:24.266+00', SYSTEM_COMBINE_CLOB(627), FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(628, 0, '{"description":"Those who were under 1 year age at the time of registration","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 1 year","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterGender":{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":2,"parameter_mappings":[],"display":"bar","entity_id":"nbbCJ21ti500TiOUVV2tq","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","type":"string/=","target":["dimension",["template-', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(628, 1, 'tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +(491, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:18:49.961+00', SYSTEM_COMBINE_CLOB(624), FALSE, FALSE, NULL), +(492, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:20:09.525+00', SYSTEM_COMBINE_CLOB(625), FALSE, FALSE, NULL), +(493, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:21:28.929+00', SYSTEM_COMBINE_CLOB(626), FALSE, FALSE, NULL), +(494, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:22:57.541+00', SYSTEM_COMBINE_CLOB(627), FALSE, FALSE, NULL), +(495, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:24:24.266+00', SYSTEM_COMBINE_CLOB(628), FALSE, FALSE, NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(629, 0, '{"description":"Those who were under 1 year age at the time of registration","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 1 year","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterGender":{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":2,"parameter_mappings":[],"display":"bar","entity_id":"nbbCJ21ti500TiOUVV2tq","collection_preview":true,"visualization_settings":{"table.columns":[{"name":"Gender","fieldRef":["field","Gender",{"base-type":"type/Text"}],"enabled":true},{"name":"Count","fieldRef":["field","Count",{"base-type":"type/Integer"}],"enabled":true},{"name":"Percentage","fieldRef":["field","Percentage",{"base-type":"type/Float"}],"enabled":true}],"table.pivot_column":"count","table.cell_column":"Gender","graph.dimensions":["Gender"],"graph.series_order_dimension":null,"graph.series_order":null,"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"cb98e793-8e53-1c97-650e-a02494c83f92","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"5761782f-224e-a408-7ca4-53e2c8675c1a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"b37cbcc8-2f00-7cbc-7fe7-f1bb06d7360b","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"afb955cd-8d16-cefa-b646-e9c72bfa71cf","type":"string/=","target":["dimension",["template-', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(629, 1, 'tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (496, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:25:22.889+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":70,"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"order-by":[["desc",["aggregation",0,null]]]},"database":3},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(497, 'Card', 2, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:26:26.823+00', SYSTEM_COMBINE_CLOB(628), FALSE, FALSE, NULL), +(497, 'Card', 2, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:26:26.823+00', SYSTEM_COMBINE_CLOB(629), FALSE, FALSE, NULL), (498, 'Card', 4, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:27:42.103+00', '{"description":"Those who were under 1 year age at the time of registration (in bar chart)","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Age under 5 years","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 1825\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterGender":{"id":"20e2c029-3679-018c-24d6-484d76a11d32","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":4,"parameter_mappings":[],"display":"bar","entity_id":"fln_xwOYWPvA6slmtJM8d","collection_preview":true,"visualization_settings":{"table.pivot_column":"Gender","table.cell_column":"Count","graph.dimensions":["Gender"],"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"20e2c029-3679-018c-24d6-484d76a11d32","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"91aa0f89-bfc5-64ee-f07e-2f7b7e7ef6d9","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"00b3ab49-d6ce-c6cf-ae25-9b472e0ba093","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"accbacb5-9d7d-c299-3a26-20dd34d7f29e","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(629, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"database":3},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(629, 1, ',["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(630, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(630, 1, '.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(631, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"registrations"},"database":3},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visual', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(631, 1, 'ization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(632, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filter', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(632, 1, 'State"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(630, 0, '{"description":"This widget will show the result of past 30 days (default)","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"database":3},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(630, 1, ',["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(631, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterGender":{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"d700b567-972d-4291-274e-1fb46830afc1","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''Under 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''Under 5''\n }\n ],\n default: ''Over 5''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''Under 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } }\n]"},"type":"native"},"id":11,"parameter_mappings":[],"display":"bar","entity_id":"g6QTDGvlih9yRnNCJqvy9","collection_preview":true,"visualization_settings":{"graph', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(631, 1, '.show_values":true,"graph.x_axis.labels_enabled":false,"table.cell_column":"total","graph.series_order_dimension":null,"graph.y_axis.labels_enabled":false,"graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.y_axis.axis_enabled":true,"table.column_formatting":[{"columns":[],"type":"single","operator":"=","value":"","color":"#509EE3","highlight_row":false}],"graph.label_value_formatting":"auto","graph.series_order":null,"table.pivot_column":"category","column_settings":{"[\"name\",\"Total\"]":{"show_mini_bar":false}},"graph.dimensions":["category"]},"is_write":false,"parameters":[{"id":"46d35bb0-9f4f-a718-3a30-c67b33ebfbbd","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"1e389631-be8c-fe8d-ce92-18066d89fb39","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"ba70e3f4-7b8e-02e5-2762-8e2174e0b651","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"d700b567-972d-4291-274e-1fb46830afc1","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"ea45ef14-a48c-031a-9105-1d97f9a69f69","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(632, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n },\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 365] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ]\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","collection":"registrations"},"database":3},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visual', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(632, 1, 'ization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.series_order_dimension":null,"graph.x_axis.title_text":"Category","graph.metrics":["total"],"graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(633, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filter', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(633, 1, 'State"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(499, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:29:03.007+00', SYSTEM_COMBINE_CLOB(629), FALSE, FALSE, NULL), -(500, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:30:04.231+00', SYSTEM_COMBINE_CLOB(630), FALSE, FALSE, NULL), -(501, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:31:02.445+00', SYSTEM_COMBINE_CLOB(631), FALSE, FALSE, NULL), -(502, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:31:53.665+00', SYSTEM_COMBINE_CLOB(632), FALSE, FALSE, NULL), +(499, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:29:03.007+00', SYSTEM_COMBINE_CLOB(630), FALSE, FALSE, NULL), +(500, 'Card', 11, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:30:04.231+00', SYSTEM_COMBINE_CLOB(631), FALSE, FALSE, NULL), +(501, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:31:02.445+00', SYSTEM_COMBINE_CLOB(632), FALSE, FALSE, NULL), +(502, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:31:53.665+00', SYSTEM_COMBINE_CLOB(633), FALSE, FALSE, NULL), (503, 'Card', 10, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:32:36.044+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Total Registrations","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"053e22d6-e6e4-b616-8a72-cd33a1476315","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cda8c18e-0863-d59e-4846-e6622917d67e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"65249c37-7695-8cb3-8e07-7083a1b456a4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"eefc749d-e0cc-e166-a295-d9c52e783c05","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$match: {\n $and: [\n {_id: {$ne: null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {$group: { \n _id: {}\n , totalCount: {$sum: NumberInt(1)}\n }} \n , {$project: { \n _id : NumberInt(0)\n , totalRegistrations: \"$totalCount\"\n }}\n]","collection":"registrations"},"database":3},"id":10,"parameter_mappings":[],"display":"scalar","entity_id":"BKDzBlQYMhO5wQWhVbytt","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[{"id":"053e22d6-e6e4-b616-8a72-cd33a1476315","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cda8c18e-0863-d59e-4846-e6622917d67e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"65249c37-7695-8cb3-8e07-7083a1b456a4","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"eefc749d-e0cc-e166-a295-d9c52e783c05","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (504, 'Card', 8, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:33:14.279+00', '{"description":"Those who registered after 1 year of birth","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":5,"query_type":"native","name":"Delayed Birth Registration","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$gte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$gte\": 365\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterGender":{"id":"3bffb6db-9e95-50fa-12fd-dda03857f422","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"85e9c397-723a-65c1-df67-4172fbdeea93","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"99ca6028-9f6d-7549-0ab6-660eba6323ef","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"1e669469-e672-c46e-49f4-30efe8cd1191","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":8,"parameter_mappings":[],"display":"bar","entity_id":"MkeDZBr_8kshqVAdiACxv","collection_preview":true,"visualization_settings":{"table.pivot_column":"Gender","table.cell_column":"Count","graph.dimensions":["Gender"],"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"3bffb6db-9e95-50fa-12fd-dda03857f422","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"85e9c397-723a-65c1-df67-4172fbdeea93","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"99ca6028-9f6d-7549-0ab6-660eba6323ef","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"1e669469-e672-c46e-49f4-30efe8cd1191","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES @@ -175262,18 +175272,18 @@ INSERT INTO "PUBLIC"."REVISION" VALUES INSERT INTO "PUBLIC"."REVISION" VALUES (507, 'Card', 6, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:34:51.02+00', '{"description":"Those who were registered within 30 days of birth","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":5,"query_type":"native","name":"Within legally stipulated period","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterGender":{"id":"17df9448-b493-4181-215b-67b245b002a0","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ed14456d-7b78-9730-8a38-240630157985","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"5bd8f8bc-c416-c538-b008-7d0e52275d91","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8dfa9d7c-05f3-d445-6a7d-03582599bb28","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 30\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n \"childsAgeInDaysAtDeclaration\": {\n \"$lte\": 30\n }\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]"},"type":"native"},"id":6,"parameter_mappings":[],"display":"bar","entity_id":"lyVkSLROwXmq-KGRr307r","collection_preview":true,"visualization_settings":{"table.pivot_column":"Gender","table.cell_column":"Count","graph.dimensions":["Gender"],"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"17df9448-b493-4181-215b-67b245b002a0","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ed14456d-7b78-9730-8a38-240630157985","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"5bd8f8bc-c416-c538-b008-7d0e52275d91","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8dfa9d7c-05f3-d445-6a7d-03582599bb28","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (508, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 10:35:53.991+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Place of birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],"current","year"]],"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]]},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(633, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"tabl', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(633, 1, 'e.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(634, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"registrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_c', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(634, 1, 'olumn":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(635, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: {\n $dateFromParts: {\n year: { $add: [{ $year: ''$date'' }, 1] },\n month: { $month: ''$date'' },\n day: { $dayOfMonth: ''$date'' }\n }\n }\n }\n },\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n },\n {\n $lookup: {\n from: ''registrations'',\n let: {\n name: ''$name'',\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$date'' } }\n },\n as: ''registrations'',\n pipeline: [\n {\n $addFields: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } }\n }\n },\n {\n $match: {\n $expr: {\n $and: [\n { $eq: [''$date'', ''$$date''] },\n { $eq: [''$stateName'', ''$$name''] }\n ]\n }\n }\n },\n {\n $group: {\n _id: {\n date: {\n $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' }\n },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { stateName: ''$_id.stateName'' } }\n ]\n }\n },\n\n {\n $addFields: {\n totalRegistrations: {\n $reduce: {\n input: ''$registrations'',\n initialValue: 0,\n in: { $add: [''$$value'', ''$$this.total''] }\n }\n }\n }\n },\n { $addFields: { estimate: ''$estimate.estimatedNumberOfBirths'' } },\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }\n }\n },\n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'' } }\n]\n","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]]', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(635, 1, ',"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(634, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"analyticsRegistrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"tabl', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(634, 1, 'e.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(635, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: { $dateFromParts: {\n year: { $add: [ { $year: \"$date\" }, 1 ] },\n month: { $month: \"$date\" },\n day: { $dayOfMonth: \"$date\" }\n }\n }\n }\n },\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }}, \n {\n $lookup: {\n from: \"registrations\",\n let: { name: \"$name\", date: {$dateToString: {date: \"$date\" }}},\n as: \"registrations\",\n pipeline: [\n {$group: {\n _id: { \n date: { $dateToString: { format: \"%Y-%m-%d\", date: \"$createdAt\" } }, \n stateName: \"$stateName\"\n },\n total: { $sum: 1 }\n }},\n {$addFields:{stateName: ''$_id.stateName'', date: {$dateToString: { date: { $dateFromString: { dateString: ''$_id.date''}}}}}},\n {\n $match:\n {\n $expr:\n {\n $and:\n [\n { $eq: [ \"$date\", \"$$date\" ] },\n { $eq: [ \"$stateName\", \"$$name\" ] }\n ]\n }\n }\n } \n ] \n }\n },\n\n {$addFields: {\n totalRegistrations: {\n $reduce: {\n input: \"$registrations\",\n initialValue: 0,\n in: { $add: [ \"$$value\", \"$$this.total\" ] }\n } \n \n } \n }},\n{$addFields: {estimate: ''$estimate.estimatedNumberOfBirths''}},\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum:''$estimatedNumberOfBirths'' }\n }\n },\n {$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n } \n }}, \n {$project: {_id: false, percentage: ''$percentage''}} \n]","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_c', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(635, 1, 'olumn":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(636, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterEvent":{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",659,null],"widget-type":"string/=","default":null},"filterGender":{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","name":"filterGender","display-name":"Filtergender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterDate":{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null}},"query":"[\n {\n $addFields: {\n date: {\n $dateFromParts: {\n year: { $add: [{ $year: ''$date'' }, 1] },\n month: { $month: ''$date'' },\n day: { $dayOfMonth: ''$date'' }\n }\n }\n }\n },\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterGender }} ]]\n [[ {{ filterDate }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n },\n {\n $lookup: {\n from: ''registrations'',\n let: {\n name: ''$name'',\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$date'' } }\n },\n as: ''registrations'',\n pipeline: [\n {\n $addFields: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } }\n }\n },\n {\n $match: {\n $expr: {\n $and: [\n { $eq: [''$date'', ''$$date''] },\n { $eq: [''$stateName'', ''$$name''] }\n ]\n }\n }\n },\n {\n $group: {\n _id: {\n date: {\n $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' }\n },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { stateName: ''$_id.stateName'' } }\n ]\n }\n },\n\n {\n $addFields: {\n totalRegistrations: {\n $reduce: {\n input: ''$registrations'',\n initialValue: 0,\n in: { $add: [''$$value'', ''$$this.total''] }\n }\n }\n }\n },\n { $addFields: { estimate: ''$estimate.estimatedNumberOfBirths'' } },\n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }\n }\n },\n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'' } }\n]\n","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"545955ab-f6ec-0de1-3f4e-ce9e50e91e82","type":"string/=","target":["dimension",["template-tag","filterEvent"]]', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(636, 1, ',"name":"Event","slug":"filterEvent"},{"id":"63587bed-9b53-1d2a-5396-317e766e7de8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"92951985-5ced-b397-b9b6-ea5a04ef29d5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"fcf90832-e5e8-d1f2-86bf-4601339adab5","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(513, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:13:45.011+00', SYSTEM_COMBINE_CLOB(633), FALSE, FALSE, NULL), +(513, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:13:45.011+00', SYSTEM_COMBINE_CLOB(634), FALSE, FALSE, NULL), (520, 'Card', 16, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:34:27.868+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Total Registrations (without native query)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":70,"aggregation":[["count"]]},"database":3},"id":16,"parameter_mappings":[],"display":"scalar","entity_id":"BOot6oon80vLb791-gzQb","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (521, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:40:47.616+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],"current","year"]],"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"day"}]]},"type":"query"},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.dimensions":["createdAt"],"graph.metrics":["count"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(524, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:45:15.943+00', SYSTEM_COMBINE_CLOB(634), FALSE, FALSE, NULL), -(525, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 12:18:27.505+00', SYSTEM_COMBINE_CLOB(635), FALSE, FALSE, NULL), +(524, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 11:45:15.943+00', SYSTEM_COMBINE_CLOB(635), FALSE, FALSE, NULL), +(525, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 12:18:27.505+00', SYSTEM_COMBINE_CLOB(636), FALSE, FALSE, NULL), (526, 'Card', 13, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 13:36:03.704+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":7,"query_type":"native","name":"Completeness Rate","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"7e3afad2-42a4-9a14-5b31-682bb7d61ac2","name":"filterDate","display-name":"Filterdate","type":"text"},"filterState":{"id":"1f3f4237-bceb-1188-a732-80eea58169b8","name":"filterState","display-name":"Filterstate","type":"text"}},"query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: {\n $dateFromParts: {\n year: { $add: [{ $year: ''$date'' }, 1] },\n month: { $month: ''$date'' },\n day: { $dayOfMonth: ''$date'' }\n }\n }}}]}},\n\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n }, \n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n }, \n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'' } } \n]","collection":"populationEstimatesPerDay"},"database":3},"id":13,"parameter_mappings":[],"display":"gauge","entity_id":"RUK20xOu8Io0PvT4a332Q","collection_preview":true,"visualization_settings":{"table.pivot_column":"percentage","table.cell_column":"foo","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}}},"is_write":false,"parameters":[{"id":"7e3afad2-42a4-9a14-5b31-682bb7d61ac2","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"1f3f4237-bceb-1188-a732-80eea58169b8","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (527, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2022-12-29 13:40:19.524+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterDate":{"id":"1e69ed7b-8ae8-6cfe-0c1c-ae93f5048bee","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"f9f00080-004f-1c25-e71b-af69fb2fc1b1","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}},"query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: {\n $dateFromParts: {\n year: { $add: [{ $year: ''$date'' }, 1] },\n month: { $month: ''$date'' },\n day: { $dayOfMonth: ''$date'' }\n }\n }}}]}},\n\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n{\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n}, \n{\n $group: {\n _id: {name: \"$stateName\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n}, \n{$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n} \n}}, \n{$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n}} \n]","collection":"populationEstimatesPerDay"},"database":3},"id":9,"parameter_mappings":[],"display":"table","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"Completeness Rate","table.cell_column":"State"},"is_write":false,"parameters":[{"id":"1e69ed7b-8ae8-6cfe-0c1c-ae93f5048bee","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f9f00080-004f-1c25-e71b-af69fb2fc1b1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), @@ -175288,129 +175298,129 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (540, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 10:10:26.732+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"day"}]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (541, 'Card', 32, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 10:30:25.481+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"query","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"aggregation":[["count"]],"breakout":[["field",671,null]],"order-by":[["desc",["aggregation",0,null]]],"limit":10},"type":"query"},"id":32,"parameter_mappings":[],"display":"row","entity_id":"Ja4C9jmYDwEnYTid4pLzA","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"us_states","graph.dimensions":["stateName"],"graph.metrics":["count"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL), (542, 'Card', 9, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 10:39:47.887+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":6,"query_type":"native","name":" Completeness Rates by State (%)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: {\n $dateFromParts: {\n year: { $add: [{ $year: ''$date'' }, 1] },\n month: { $month: ''$date'' },\n day: { $dayOfMonth: ''$date'' }\n }\n }}}]}},\n\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n{\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n}, \n{\n $group: {\n _id: {name: \"$stateName\"},\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n}, \n{$addFields: {\n percentage: {\n $cond: {\n if: { $eq: [ \"$totalRegistrations\", 0 ] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [ \"$estimate\", 0 ] },\n then: 0,\n else: {$divide: [''$totalRegistrations'', ''$estimate'']}\n }\n }\n }\n} \n}}, \n{$project: {\n _id: false,\n State: ''$_id.name'',\n ''Completeness Rate'': {$round: [{$multiply: [''$percentage'', 100] }, 0]}\n}} \n]","template-tags":{"filterDate":{"id":"1e69ed7b-8ae8-6cfe-0c1c-ae93f5048bee","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/month-year","default":null},"filterState":{"id":"f9f00080-004f-1c25-e71b-af69fb2fc1b1","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":9,"parameter_mappings":[],"display":"map","entity_id":"9t73rF7ixsw9EVOWpx7ab","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"910cd1de-9dbd-c36c-96bd-39d55ad9b84f","map.metric":"percentage","map.dimension":"state","table.pivot_column":"Completeness Rate","table.cell_column":"State"},"is_write":false,"parameters":[{"id":"1e69ed7b-8ae8-6cfe-0c1c-ae93f5048bee","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"f9f00080-004f-1c25-e71b-af69fb2fc1b1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(636, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"database":3},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"fi', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(636, 1, 'lterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(637, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}}},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"f', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(637, 1, 'ilterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(637, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"database":3},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"fi', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(637, 1, 'lterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(638, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}}},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"f', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(638, 1, 'ilterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(543, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:20:30.221+00', SYSTEM_COMBINE_CLOB(636), FALSE, FALSE, NULL), -(544, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:20:41.435+00', SYSTEM_COMBINE_CLOB(637), FALSE, FALSE, NULL), +(543, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:20:30.221+00', SYSTEM_COMBINE_CLOB(637), FALSE, FALSE, NULL), +(544, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:20:41.435+00', SYSTEM_COMBINE_CLOB(638), FALSE, FALSE, NULL), (545, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:31:41.215+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Filterdate","type":"text"},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Filtergender","type":"text"},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Filterevent","type":"text"},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"Filterstate","type":"text"},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Filteroffice","type":"text"}}},"database":3},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"category","target":["variable",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"category","target":["variable",["template-tag","filterGender"]],"name":"Filtergender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"category","target":["variable",["template-tag","filterEvent"]],"name":"Filterevent","slug":"filterEvent"},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"category","target":["variable",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"category","target":["variable",["template-tag","filterOffice"]],"name":"Filteroffice","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, TRUE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (546, 'Card', 32, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:32:03.235+00', '{"description":null,"archived":true,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"query","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"aggregation":[["count"]],"breakout":[["field",671,null]],"order-by":[["desc",["aggregation",0,null]]],"limit":10},"type":"query"},"id":32,"parameter_mappings":[],"display":"row","entity_id":"Ja4C9jmYDwEnYTid4pLzA","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"us_states","graph.dimensions":["stateName"],"graph.metrics":["count"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (547, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:33:36.306+00', '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(638, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(638, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.x_axis.title_text":"Age","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(639, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\":', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(639, 1, ' {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(640, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":fa', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(640, 1, 'lse,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(641, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"fi', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(641, 1, 'lterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(642, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(642, 1, 'display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(643, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(643, 1, 'n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(644, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(644, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":"total","stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":[{"key":"20,085","color":"#7172AD","enabled":true,"name":"20,085"},{"key":"17,956","color":"#F9D45C","enabled":true,"name":"17,956"},{"key":"20,082","color":"#F2A86F","enabled":true,"name":"20,082"},{"key":"3","color":"#EF8C8C","enabled":true,"name":"3"},{"key":"2,129","color":"#98D9D9","enabled":true,"name":"2,129"}],"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(645, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"na', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(645, 1, 'me":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(639, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(639, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"table.pivot_column":"Order","table.cell_column":"Count","graph.dimensions":["Order"],"graph.x_axis.title_text":"Age","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(640, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(640, 1, ' {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother"},"fathersAttainment":{"title":"father"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(641, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":fa', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(641, 1, 'lse,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(642, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }}\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"fi', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(642, 1, 'lterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(643, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(643, 1, 'display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(644, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(644, 1, 'n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(645, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(645, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":"total","stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":[{"key":"20,085","color":"#7172AD","enabled":true,"name":"20,085"},{"key":"17,956","color":"#F9D45C","enabled":true,"name":"17,956"},{"key":"20,082","color":"#F2A86F","enabled":true,"name":"20,082"},{"key":"3","color":"#EF8C8C","enabled":true,"name":"3"},{"key":"2,129","color":"#98D9D9","enabled":true,"name":"2,129"}],"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null}},"graph.dimensions":["category","total"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(646, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 10\n }\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"na', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(646, 1, 'me":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(548, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:54:15.873+00', SYSTEM_COMBINE_CLOB(638), FALSE, FALSE, NULL), -(549, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 12:10:26.951+00', SYSTEM_COMBINE_CLOB(639), FALSE, FALSE, NULL), -(558, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:24:30.824+00', SYSTEM_COMBINE_CLOB(640), FALSE, FALSE, NULL), +(548, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 11:54:15.873+00', SYSTEM_COMBINE_CLOB(639), FALSE, FALSE, NULL), +(549, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 12:10:26.951+00', SYSTEM_COMBINE_CLOB(640), FALSE, FALSE, NULL), +(558, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:24:30.824+00', SYSTEM_COMBINE_CLOB(641), FALSE, FALSE, NULL), (559, 'Card', 30, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:25:15.18+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":8,"query_type":"query","name":"% of Total Registrations Certified","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"expressions":{"Status":["case",[[["=",["field",682,null],"REGISTERED"],"Not Certified"],[["=",["field",682,null],"CERTIFIED"],"Certified"]]]},"aggregation":[["count"]],"breakout":[["expression","Status"]]},"type":"query"},"id":30,"parameter_mappings":[],"display":"pie","entity_id":"i9_4VwkR62cl03HLkb9e7","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (560, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:27:14.017+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Place of birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(561, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:45:39.039+00', SYSTEM_COMBINE_CLOB(641), FALSE, FALSE, NULL), -(562, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:48:01.01+00', SYSTEM_COMBINE_CLOB(642), FALSE, FALSE, NULL), -(563, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:49:46.42+00', SYSTEM_COMBINE_CLOB(643), FALSE, FALSE, NULL), -(568, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 07:30:28.341+00', SYSTEM_COMBINE_CLOB(644), FALSE, FALSE, NULL), -(569, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 07:42:00.381+00', SYSTEM_COMBINE_CLOB(645), FALSE, FALSE, NULL), +(561, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:45:39.039+00', SYSTEM_COMBINE_CLOB(642), FALSE, FALSE, NULL), +(562, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:48:01.01+00', SYSTEM_COMBINE_CLOB(643), FALSE, FALSE, NULL), +(563, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-24 13:49:46.42+00', SYSTEM_COMBINE_CLOB(644), FALSE, FALSE, NULL), +(568, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 07:30:28.341+00', SYSTEM_COMBINE_CLOB(645), FALSE, FALSE, NULL), +(569, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 07:42:00.381+00', SYSTEM_COMBINE_CLOB(646), FALSE, FALSE, NULL), (573, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:20:12.734+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"type":"query"},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(646, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOf', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(646, 1, 'fice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(647, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(647, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null},"total":{"color":"#8A5EB0"}},"graph.dimensions":["category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(648, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true},"Count":{"color":"#69C8C8"}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(648, 1, 'name":"State","slug":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(649, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["templat', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(649, 1, 'e-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(650, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 30\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}}},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"f', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(650, 1, 'ilterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(647, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOf', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(647, 1, 'fice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(648, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(648, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null},"total":{"color":"#8A5EB0"}},"graph.dimensions":["category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(649, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true},"Count":{"color":"#69C8C8"}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(649, 1, 'name":"State","slug":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(650, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["templat', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(650, 1, 'e-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(651, 0, '{"description":"","archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Leaderboard of Registrars","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"practitionerName\": \"$practitionerName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"practitionerName\": \"$_id.practitionerName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"practitionerName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Registrar Name'': \"$allInfo.practitionerName\"\n , ''Registrations'': \"$allInfo.count\"\n }},\n {\n $limit: 30\n }\n]","template-tags":{"filterGender":{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}}},"type":"native"},"id":12,"parameter_mappings":[],"display":"row","entity_id":"VxeUMjNq8eLaHweLGUvYF","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.cell_column":"Percentage","graph.series_order_dimension":null,"graph.x_axis.title_text":"Registrars","graph.metrics":["Registrations"],"graph.label_value_formatting":"full","graph.series_order":null,"table.pivot_column":"Registrations","series_settings":{"Registrations":{"color":"#509EE3"}},"graph.dimensions":["Registrar Name"],"stackable.stack_type":null},"is_write":false,"parameters":[{"id":"b288ecc8-38b4-f4f3-b4bf-fe10b1a567b5","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"ec1ff9e7-75a1-b336-9d16-2492471a20f4","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"69f31f7f-da03-4eae-fa1a-9e64b3278ba8","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"f', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(651, 1, 'ilterState"},{"id":"a0cbb9fa-29b4-05bd-fa95-84e485a444e3","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"},{"id":"b51746bd-9fd8-c0df-eb92-8e6c61bbac21","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (574, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:20:43.943+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"week"}]],"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"database":3},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (575, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:21:52.777+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"type":"query"},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(576, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:25:18.848+00', SYSTEM_COMBINE_CLOB(646), FALSE, FALSE, NULL), -(579, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:31:36.008+00', SYSTEM_COMBINE_CLOB(647), FALSE, FALSE, NULL), -(580, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:33:01.375+00', SYSTEM_COMBINE_CLOB(648), FALSE, FALSE, NULL), -(581, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:33:59.488+00', SYSTEM_COMBINE_CLOB(649), FALSE, FALSE, NULL), +(576, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:25:18.848+00', SYSTEM_COMBINE_CLOB(647), FALSE, FALSE, NULL), +(579, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:31:36.008+00', SYSTEM_COMBINE_CLOB(648), FALSE, FALSE, NULL), +(580, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:33:01.375+00', SYSTEM_COMBINE_CLOB(649), FALSE, FALSE, NULL), +(581, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:33:59.488+00', SYSTEM_COMBINE_CLOB(650), FALSE, FALSE, NULL), (582, 'Card', 30, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:34:39.511+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":8,"query_type":"query","name":"% of Total Registrations Certified","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","Status"]],"expressions":{"Status":["case",[[["=",["field",682,null],"REGISTERED"],"Not Certified"],[["=",["field",682,null],"CERTIFIED"],"Certified"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"type":"query"},"id":30,"parameter_mappings":[],"display":"pie","entity_id":"i9_4VwkR62cl03HLkb9e7","collection_preview":true,"visualization_settings":{"pie.colors":{"Certified":"#E75454","Not Certified":"#F7C4C4"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(585, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:42:53.396+00', SYSTEM_COMBINE_CLOB(650), FALSE, FALSE, NULL), +(585, 'Card', 12, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 12:42:53.396+00', SYSTEM_COMBINE_CLOB(651), FALSE, FALSE, NULL), (588, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 13:36:37.205+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"order-by":[["desc",["aggregation",0,null]]],"source-table":70},"type":"query"},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{"pie.colors":{"Quadruplet":"#FBE499","Single":"#F7C41F"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(651, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live birth by literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(651, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(652, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live births by literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(652, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(653, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(652, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live birth by literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(652, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(653, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live births by literacy of parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(653, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(654, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(654, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother"},"fathersLiteracy":{"title":"father"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (589, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-25 13:51:35.9+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (590, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 06:57:00.119+00', '{"description":null,"archived":false,"collection_position":null,"table_id":71,"database_id":3,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Corrections by type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":71,"expressions":{"ReasonForCorrection":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"]]]},"filter":["and",["=",["field",693,null],"Birth"],["time-interval",["field",695,null],"current","year"]],"aggregation":[["count"]],"breakout":[["expression","ReasonForCorrection"]]},"database":3},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{"pie.colors":{"Clerical Error":"#8A5EB0"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(593, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:56:29.743+00', SYSTEM_COMBINE_CLOB(651), FALSE, FALSE, NULL), -(594, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:56:46.886+00', SYSTEM_COMBINE_CLOB(652), FALSE, FALSE, NULL), -(595, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:57:06.258+00', SYSTEM_COMBINE_CLOB(653), FALSE, FALSE, NULL), +(593, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:56:29.743+00', SYSTEM_COMBINE_CLOB(652), FALSE, FALSE, NULL), +(594, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:56:46.886+00', SYSTEM_COMBINE_CLOB(653), FALSE, FALSE, NULL), +(595, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 08:57:06.258+00', SYSTEM_COMBINE_CLOB(654), FALSE, FALSE, NULL), (599, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:00:03.216+00', '{"description":null,"archived":false,"collection_position":null,"table_id":71,"database_id":3,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Record Corrections by Type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":71,"expressions":{"ReasonForCorrection":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"]]]},"filter":["and",["=",["field",693,null],"Birth"],["time-interval",["field",695,null],"current","year"]],"aggregation":[["count"]],"breakout":[["expression","ReasonForCorrection"]]},"database":3},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{"pie.colors":{"Clerical Error":"#8A5EB0"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (604, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:01:47.789+00', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":5,"size_y":4,"row":0,"col":5,"id":21,"card_id":20,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":0,"id":22,"card_id":19,"series":[]},{"size_x":4,"size_y":4,"row":0,"col":10,"id":24,"card_id":18,"series":[]},{"size_x":4,"size_y":4,"row":0,"col":14,"id":25,"card_id":21,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":9,"id":29,"card_id":27,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":0,"id":31,"card_id":29,"series":[]}]}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(654, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(654, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(655, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(655, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(656, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(656, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(657, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\":', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(657, 1, ' {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother","color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(655, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(655, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(656, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live births by age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(656, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(657, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"fathersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"mothersLiteracy\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(657, 1, ' }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(658, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"fathersAttainment\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\":', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(658, 1, ' {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"mothersAttainment\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"mothersAttainment":{"title":"mother","color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (605, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:02:46.141+00', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":22,"card_id":19,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":0,"id":24,"card_id":18,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":9,"id":25,"card_id":21,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":9,"id":31,"card_id":29,"series":[]}]}', FALSE, FALSE, NULL), (606, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:02:47.547+00', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":22,"card_id":19,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":0,"id":24,"card_id":18,"series":[]},{"size_x":9,"size_y":4,"row":4,"col":9,"id":25,"card_id":21,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":9,"id":31,"card_id":29,"series":[]}]}', FALSE, FALSE, NULL), -(607, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:06:07.884+00', SYSTEM_COMBINE_CLOB(654), FALSE, FALSE, NULL), -(608, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:07:24.832+00', SYSTEM_COMBINE_CLOB(655), FALSE, FALSE, NULL), -(609, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:07:59.564+00', SYSTEM_COMBINE_CLOB(656), FALSE, FALSE, NULL), -(610, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:08:21.662+00', SYSTEM_COMBINE_CLOB(657), FALSE, FALSE, NULL), +(607, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:06:07.884+00', SYSTEM_COMBINE_CLOB(655), FALSE, FALSE, NULL), +(608, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:07:24.832+00', SYSTEM_COMBINE_CLOB(656), FALSE, FALSE, NULL), +(609, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:07:59.564+00', SYSTEM_COMBINE_CLOB(657), FALSE, FALSE, NULL), +(610, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:08:21.662+00', SYSTEM_COMBINE_CLOB(658), FALSE, FALSE, NULL), (611, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:09:12.951+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Place of birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (612, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:10:07.391+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"order-by":[["desc",["aggregation",0,null]]],"source-table":70},"type":"query"},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{"pie.colors":{"Quadruplet":"#8A5EB0","Single":"#F7C41F"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(658, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(658, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null},"total":{"color":"#8A5EB0"}},"graph.dimensions":["category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(659, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true},"Count":{"color":"#69C8C8"}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(659, 1, 'name":"State","slug":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(660, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''Total'' }, { $addFields: { Category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$Category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { Total: 1, Category: 1 } },\n {\n $sort: {\n Category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(660, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["Total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"total":{"color":"#8A5EB0"},"20,085":{"axis":null},"Total":{"color":"#8A5EB0"}},"graph.dimensions":["Category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(661, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Father\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Mother\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(661, 1, ' }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"Mother":{"color":"#ED8535"},"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"},"Father":{"color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(662, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Father\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(662, 1, ' $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Mother\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"Mother":{"color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"},"mothersAttainment":{"title":"mother","color":"#E75454"},"Father":{"color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(663, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(663, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(664, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(664, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(659, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''total'' }, { $addFields: { category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n category: ''$_id.par'',\n total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { total: 1, category: 1 } },\n {\n $sort: {\n category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(659, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"20,085":{"axis":null},"total":{"color":"#8A5EB0"}},"graph.dimensions":["category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(660, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Gender","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , { \"$group\": {\n \"_id\": {\n \"gender\": \"$gender\"\n },\n \"count\": {\n \"$sum\": 1\n },\n }\n },\n { \"$project\": {\n \"_id\": false,\n \"gender\": \"$_id.gender\",\n \"count\": true\n }\n },\n {$match: {\n \"gender\": {$ne: null}\n }}\n \n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Gender'': \"$allInfo.gender\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }}\n]","template-tags":{"filterDate":{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/relative","default":null},"filterGender":{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":1,"parameter_mappings":[],"display":"bar","entity_id":"Ksk2s3aUAdBmDtMTNwtH3","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_values":true,"table.columns":[],"table.cell_column":"Gender","graph.series_order_dimension":null,"graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"count","series_settings":{"Registrations":{"color":"#509EE3","show_series_values":true},"Count":{"color":"#69C8C8"}},"graph.dimensions":["Gender"]},"is_write":false,"parameters":[{"id":"57523c92-bc05-e144-f15d-a07fc78322c2","type":"date/relative","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"f7834d58-4acc-cc46-0aee-08d1421f1ff1","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"af46a4e6-571c-e47f-e8ab-2cf527f54d68","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"a771e085-c491-259c-3020-bb9f97cf56f4","type":"string/=","target":["dimension",["template-tag","filterState"]],"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(660, 1, 'name":"State","slug":"filterState"},{"id":"09bc4ac9-1847-d645-24c9-4f2892e147d0","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(661, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":4,"query_type":"native","name":"Registrations by Age","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''Total'' }, { $addFields: { Category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$Category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { Total: 1, Category: 1 } },\n {\n $sort: {\n Category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(661, 1, '-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":31,"parameter_mappings":[],"display":"bar","entity_id":"hTP9EUEq13VA1N_H-258l","collection_preview":true,"visualization_settings":{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["Total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"total":{"color":"#8A5EB0"},"20,085":{"axis":null},"Total":{"color":"#8A5EB0"}},"graph.dimensions":["Category"],"stackable.stack_type":"stacked"},"is_write":false,"parameters":[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(662, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":10,"query_type":"native","name":"Live Births by Literacy of Parents","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Father\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Mother\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(662, 1, ' }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":18,"parameter_mappings":[],"display":"bar","entity_id":"eRSJUaHW6haiucK8BtpC_","collection_preview":true,"visualization_settings":{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"Mother":{"color":"#ED8535"},"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"},"Father":{"color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(663, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":14,"query_type":"native","name":"Live Births by Level of Education of Parent","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Father\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(663, 1, ' $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Mother\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3},"id":21,"parameter_mappings":[],"display":"bar","entity_id":"W6bdia0Vw-6PC1efnHIR4","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"Mother":{"color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"},"mothersAttainment":{"title":"mother","color":"#E75454"},"Father":{"color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]},"is_write":false,"parameters":[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(664, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_or', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(664, 1, 'der_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":["Count"],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(665, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(665, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES -(613, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:17:57.006+00', SYSTEM_COMBINE_CLOB(658), FALSE, FALSE, NULL), -(614, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:18:10.107+00', SYSTEM_COMBINE_CLOB(659), FALSE, FALSE, NULL), +(613, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:17:57.006+00', SYSTEM_COMBINE_CLOB(659), FALSE, FALSE, NULL), +(614, 'Card', 1, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:18:10.107+00', SYSTEM_COMBINE_CLOB(660), FALSE, FALSE, NULL), (615, 'Card', 14, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:18:54.412+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Registrations over Time","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3},"id":14,"parameter_mappings":[],"display":"line","entity_id":"qNwCeJEl62KWFEc_8ueNS","collection_preview":true,"visualization_settings":{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(616, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:25:34.776+00', SYSTEM_COMBINE_CLOB(660), FALSE, FALSE, NULL), +(616, 'Card', 31, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:25:34.776+00', SYSTEM_COMBINE_CLOB(661), FALSE, FALSE, NULL), (617, 'Card', 28, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:28:44.234+00', '{"description":null,"archived":false,"collection_position":null,"table_id":71,"database_id":3,"enable_embedding":false,"collection_id":17,"query_type":"query","name":"Record Corrections by Type","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"source-table":71,"expressions":{"Reason":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"]]]},"filter":["=",["field",693,null],"Birth"],"aggregation":[["count"]],"breakout":[["expression","Reason"]]},"database":3},"id":28,"parameter_mappings":[],"display":"pie","entity_id":"__hZ2xD-7VCBJ7mLFxB9Y","collection_preview":true,"visualization_settings":{"pie.colors":{"Clerical Error":"#8A5EB0"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(618, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:34:47.978+00', SYSTEM_COMBINE_CLOB(661), FALSE, FALSE, NULL), -(619, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:24.497+00', SYSTEM_COMBINE_CLOB(662), FALSE, FALSE, NULL), -(620, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:39.789+00', SYSTEM_COMBINE_CLOB(663), FALSE, FALSE, NULL), -(621, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:55.075+00', SYSTEM_COMBINE_CLOB(664), FALSE, FALSE, NULL), +(618, 'Card', 18, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:34:47.978+00', SYSTEM_COMBINE_CLOB(662), FALSE, FALSE, NULL), +(619, 'Card', 21, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:24.497+00', SYSTEM_COMBINE_CLOB(663), FALSE, FALSE, NULL), +(620, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:39.789+00', SYSTEM_COMBINE_CLOB(664), FALSE, FALSE, NULL), +(621, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:55.075+00', SYSTEM_COMBINE_CLOB(665), FALSE, FALSE, NULL), (622, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:37:31.846+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Live Births by Place of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["and",["=",["field",666,null],"Birth"],["time-interval",["field",677,null],-12,"month"]],"source-table":70},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(665, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(665, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(666, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filt', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(666, 1, 'erState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":["Order"],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":["Count"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8b07b619-ea79-a772-e83a-92f986ab040c","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (623, 'Card', 30, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:45:02.502+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":8,"query_type":"query","name":"% of Total Registrations Certified","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","Status"]],"expressions":{"Status":["case",[[["=",["field",682,null],"REGISTERED"],"Not Certified"],[["=",["field",682,null],"CERTIFIED"],"Certified"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3},"id":30,"parameter_mappings":[],"display":"pie","entity_id":"i9_4VwkR62cl03HLkb9e7","collection_preview":true,"visualization_settings":{"pie.colors":{"Certified":"#E75454","Not Certified":"#F7C4C4"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (624, 'Card', 16, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:45:41.043+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":null,"query_type":"query","name":"Total Registrations (without native query)","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3},"id":16,"parameter_mappings":[],"display":"scalar","entity_id":"BOot6oon80vLb791-gzQb","collection_preview":true,"visualization_settings":{},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (627, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:55:15.363+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Live Births by Place of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (628, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2023-01-26 09:55:42.924+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"filter":["=",["field",666,null],"Birth"],"order-by":[["desc",["aggregation",0,null]]],"source-table":70},"database":3},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{"pie.colors":{"Quadruplet":"#8A5EB0","Single":"#F7C41F"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), -(632, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-31 07:20:23.922+00', SYSTEM_COMBINE_CLOB(665), FALSE, FALSE, NULL); +(632, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-01-31 07:20:23.922+00', SYSTEM_COMBINE_CLOB(666), FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (633, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-02-02 09:02:21.279+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Live Births by Place of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"],[["=",["field",668,null],"SPIRITUAL_HOMES"],"Spritual Homes"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (634, 'Card', 27, 1, TIMESTAMP WITH TIME ZONE '2023-02-02 09:03:27.973+00', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":9,"query_type":"query","name":"Live Births by Place of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"BUS"],"Bus"],[["=",["field",668,null],"CAR_TAXI"],"Taxi"],[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"MATERNITY_HOME"],"Maternity Home"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"TRADITIONAL_DOCTORS"],"Traditional Doctors"],[["=",["field",668,null],"SPIRITUAL_HOMES"],"Spritual Homes"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"},"id":27,"parameter_mappings":[],"display":"pie","entity_id":"AfR2OybIvG3i-a1qt-k0u","collection_preview":true,"visualization_settings":{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), @@ -175421,16 +175431,16 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (639, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-22 17:25:31.429+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":2,"size_y":2,"row":0,"col":0,"id":37,"card_id":12,"series":[]}]}', FALSE, FALSE, NULL), (640, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-22 17:25:31.526+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":5,"size_y":4,"row":0,"col":0,"id":37,"card_id":12,"series":[]}]}', FALSE, FALSE, NULL), (641, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-22 17:25:31.631+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":5,"size_y":4,"row":0,"col":0,"id":37,"card_id":12,"series":[]}]}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(666, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.seri', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(666, 1, 'es_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":[null],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":[]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"District","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(667, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by state","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["templat', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(667, 1, 'e-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(668, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(668, 1, '362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(669, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","f', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(669, 1, 'ilterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(670, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State Name"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-ta', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(670, 1, 'g","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(667, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.seri', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(667, 1, 'es_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":[null],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":[]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"District","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(668, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by state","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["templat', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(668, 1, 'e-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(669, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(669, 1, '362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(670, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","f', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(670, 1, 'ilterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(671, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"table","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State Name"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-ta', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(671, 1, 'g","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (645, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-24 15:14:52.796+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":5,"size_y":4,"row":0,"col":0,"id":37,"card_id":12,"series":[]},{"size_x":2,"size_y":2,"row":0,"col":0,"id":38,"card_id":33,"series":[]}]}', FALSE, FALSE, NULL), (646, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-24 15:14:53.037+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":8,"row":0,"col":0,"id":37,"card_id":12,"series":[]},{"size_x":9,"size_y":8,"row":0,"col":9,"id":38,"card_id":33,"series":[]}]}', FALSE, FALSE, NULL), @@ -175438,21 +175448,21 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (648, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-24 15:18:29.713+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":8,"row":0,"col":0,"id":37,"card_id":12,"series":[]},{"size_x":9,"size_y":8,"row":0,"col":9,"id":38,"card_id":33,"series":[]}]}', FALSE, FALSE, NULL), (649, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-24 15:18:29.883+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":8,"row":0,"col":0,"id":37,"card_id":12,"series":[]},{"size_x":9,"size_y":8,"row":0,"col":9,"id":38,"card_id":33,"series":[]}]}', FALSE, FALSE, NULL), (650, 'Dashboard', 4, 1, TIMESTAMP WITH TIME ZONE '2023-02-24 15:18:29.917+07', '{"description":null,"name":"Leaderboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":8,"row":0,"col":0,"id":37,"card_id":12,"series":[]},{"size_x":9,"size_y":8,"row":0,"col":9,"id":38,"card_id":33,"series":[]}]}', FALSE, FALSE, NULL), -(651, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-05-08 13:32:28.803+06', SYSTEM_COMBINE_CLOB(666), FALSE, FALSE, NULL), -(660, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:05:01.745+06', SYSTEM_COMBINE_CLOB(667), FALSE, FALSE, NULL), -(661, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:05:20.153+06', SYSTEM_COMBINE_CLOB(668), FALSE, FALSE, NULL), -(662, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:06:24.683+06', SYSTEM_COMBINE_CLOB(669), FALSE, FALSE, NULL), -(663, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:07:29.162+06', SYSTEM_COMBINE_CLOB(670), FALSE, FALSE, NULL), +(651, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-05-08 13:32:28.803+06', SYSTEM_COMBINE_CLOB(667), FALSE, FALSE, NULL), +(660, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:05:01.745+06', SYSTEM_COMBINE_CLOB(668), FALSE, FALSE, NULL), +(661, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:05:20.153+06', SYSTEM_COMBINE_CLOB(669), FALSE, FALSE, NULL), +(662, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:06:24.683+06', SYSTEM_COMBINE_CLOB(670), FALSE, FALSE, NULL), +(663, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:07:29.162+06', SYSTEM_COMBINE_CLOB(671), FALSE, FALSE, NULL), (664, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.201+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), (665, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.215+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), (666, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.223+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), (667, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.234+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":8,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), (668, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.253+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(671, 0, '{"description":null,"archived":true,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.serie', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(671, 1, 's_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":[null],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":[]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"District","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(672, 0, '{"description":null,"archived":true,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":11,"query_type":"native","name":"Live Births by Order","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":19,"parameter_mappings":[],"display":"bar","entity_id":"L6nXdi04nvxgEh1eJYrwR","collection_preview":true,"visualization_settings":{"graph.show_values":true,"pie.dimension":"birthOrder","graph.serie', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(672, 1, 's_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":[null],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":[]},"is_write":false,"parameters":[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"District","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (669, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:12:25.285+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), -(670, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:14:19.307+06', SYSTEM_COMBINE_CLOB(671), FALSE, FALSE, NULL), +(670, 'Card', 19, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:14:19.307+06', SYSTEM_COMBINE_CLOB(672), FALSE, FALSE, NULL), (671, 'Card', 29, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:14:27.284+06', '{"description":null,"archived":true,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":15,"query_type":"query","name":"Live Births by Type of Birth","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"filter":["=",["field",666,null],"Birth"],"order-by":[["desc",["aggregation",0,null]]],"source-table":70},"database":3},"id":29,"parameter_mappings":[],"display":"pie","entity_id":"GOqql9fnmIgyeOChWso6x","collection_preview":true,"visualization_settings":{"pie.colors":{"Quadruplet":"#8A5EB0","Single":"#F7C41F"}},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), (672, 'Dashboard', 1, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:16:17.22+06', '{"description":null,"name":"Births registered by age of child","cache_ttl":null,"cards":[{"size_x":9,"size_y":5,"row":0,"col":0,"id":1,"card_id":1,"series":[]},{"size_x":9,"size_y":5,"row":0,"col":9,"id":2,"card_id":2,"series":[]},{"size_x":9,"size_y":5,"row":5,"col":0,"id":4,"card_id":4,"series":[]}]}', FALSE, FALSE, NULL), (673, 'Card', 32, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:17:29.731+06', '{"description":null,"archived":false,"collection_position":null,"table_id":70,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"query","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"query":{"source-table":70,"aggregation":[["count"]],"breakout":[["field",671,null]],"order-by":[["desc",["aggregation",0,null]]],"limit":10},"type":"query"},"id":32,"parameter_mappings":[],"display":"row","entity_id":"Ja4C9jmYDwEnYTid4pLzA","collection_preview":true,"visualization_settings":{"map.type":"region","map.region":"us_states","graph.dimensions":["stateName"],"graph.metrics":["count"]},"is_write":false,"parameters":[],"dataset":false,"public_uuid":null}', FALSE, FALSE, NULL), @@ -175467,29 +175477,29 @@ INSERT INTO "PUBLIC"."REVISION" VALUES (681, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 14:57:32.99+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), (682, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:27:35.107+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), (683, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:27:35.163+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(672, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(672, 1, 'filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(673, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(673, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(673, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"collection":"registrations","query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(673, 1, 'filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null}}},"type":"native"},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(674, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(674, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"table","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(674, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(675, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(675, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.show_values":true,"table.cell_column":"Count","graph.series_order_dimension":null,"graph.x_axis.title_text":"Age","graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(675, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"table","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.x_axis.title_text":"Age","graph.dimensions":[],"table.cell_column":"Count","table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.show_values":true,"graph.metrics":[null]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(676, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''', NULL); INSERT INTO SYSTEM_LOB_STREAM VALUES(676, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.show_values":true,"table.cell_column":"Count","graph.series_order_dimension":null,"graph.x_axis.title_text":"Age","graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(677, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State Name"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag"', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(677, 1, ',"filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(677, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":12,"query_type":"native","name":"Live Births by Age of Mother","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(677, 1, '\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3},"id":20,"parameter_mappings":[],"display":"bar","entity_id":"PcnknQN2IYs_mJkwA8yRq","collection_preview":true,"visualization_settings":{"graph.show_values":true,"table.cell_column":"Count","graph.series_order_dimension":null,"graph.x_axis.title_text":"Age","graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.dimensions":["Order"]},"is_write":false,"parameters":[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}],"dataset":false,"public_uuid":null}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(678, 0, '{"description":null,"archived":false,"collection_position":null,"table_id":null,"database_id":3,"enable_embedding":false,"collection_id":18,"query_type":"native","name":"Registrations by State","creator_id":1,"made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"},"id":33,"parameter_mappings":[],"display":"row","entity_id":"g5hTQaT1d2p1OX0tU90WQ","collection_preview":true,"visualization_settings":{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State Name"}},"graph.metrics":["Registrations"]},"is_write":false,"parameters":[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag"', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(678, 1, ',"filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}],"dataset":false,"public_uuid":null}', NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (684, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:47:14.416+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), (685, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:47:14.45+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), (686, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:49:13.313+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), (687, 'Dashboard', 2, 1, TIMESTAMP WITH TIME ZONE '2023-05-09 16:49:13.346+06', '{"description":null,"name":"Registrations Dashboard","cache_ttl":null,"cards":[{"size_x":4,"size_y":4,"row":0,"col":14,"id":14,"card_id":1,"series":[]},{"size_x":13,"size_y":5,"row":4,"col":5,"id":15,"card_id":9,"series":[]},{"size_x":5,"size_y":5,"row":4,"col":0,"id":17,"card_id":13,"series":[]},{"size_x":12,"size_y":4,"row":9,"col":0,"id":18,"card_id":14,"series":[]},{"size_x":3,"size_y":4,"row":0,"col":0,"id":20,"card_id":16,"series":[]},{"size_x":5,"size_y":4,"row":0,"col":9,"id":33,"card_id":31,"series":[]},{"size_x":6,"size_y":4,"row":0,"col":3,"id":34,"card_id":30,"series":[]},{"size_x":6,"size_y":4,"row":9,"col":12,"id":36,"card_id":28,"series":[]}]}', FALSE, FALSE, NULL), -(688, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:22:20.612+06', SYSTEM_COMBINE_CLOB(672), FALSE, FALSE, NULL), -(689, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:29:52.716+06', SYSTEM_COMBINE_CLOB(673), FALSE, FALSE, NULL), -(690, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:30:03.225+06', SYSTEM_COMBINE_CLOB(674), FALSE, FALSE, NULL), -(691, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:30:59.041+06', SYSTEM_COMBINE_CLOB(675), FALSE, FALSE, NULL), -(692, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:31:24.896+06', SYSTEM_COMBINE_CLOB(676), FALSE, FALSE, NULL), -(693, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:31:56.545+06', SYSTEM_COMBINE_CLOB(677), FALSE, FALSE, NULL), +(688, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:22:20.612+06', SYSTEM_COMBINE_CLOB(673), FALSE, FALSE, NULL), +(689, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:29:52.716+06', SYSTEM_COMBINE_CLOB(674), FALSE, FALSE, NULL), +(690, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:30:03.225+06', SYSTEM_COMBINE_CLOB(675), FALSE, FALSE, NULL), +(691, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:30:59.041+06', SYSTEM_COMBINE_CLOB(676), FALSE, FALSE, NULL), +(692, 'Card', 20, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:31:24.896+06', SYSTEM_COMBINE_CLOB(677), FALSE, FALSE, NULL), +(693, 'Card', 33, 1, TIMESTAMP WITH TIME ZONE '2023-05-10 16:31:56.545+06', SYSTEM_COMBINE_CLOB(678), FALSE, FALSE, NULL), (694, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-11 12:15:00.602+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL); INSERT INTO "PUBLIC"."REVISION" VALUES (695, 'Dashboard', 3, 1, TIMESTAMP WITH TIME ZONE '2023-05-11 12:15:00.658+06', '{"description":null,"name":"Statistics Dashboard","cache_ttl":null,"cards":[{"size_x":9,"size_y":4,"row":0,"col":9,"id":21,"card_id":20,"series":[]},{"size_x":9,"size_y":4,"row":0,"col":0,"id":29,"card_id":27,"series":[]}]}', FALSE, FALSE, NULL), @@ -175721,28 +175731,28 @@ INSERT INTO "PUBLIC"."REPORT_CARD" VALUES INSERT INTO "PUBLIC"."REPORT_CARD" VALUES (13, TIMESTAMP '2022-12-16 10:23:02.863', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.696342+06', 'Completeness Rate', NULL, 'gauge', '{"database":3,"native":{"collection":"registrations","query":"[\n {\n $group: {\n _id: {\n date: { $dateToString: { format: ''%Y-%m-%d'', date: ''$createdAt'' } },\n stateName: ''$stateName''\n },\n total: { $sum: 1 }\n }\n },\n { $addFields: { estimatedNumberOfBirths: 0, stateName: ''$_id.stateName'', date: {$dateFromString: {dateString: ''$_id.date'' } }}},\n { $unionWith: { coll: ''populationEstimatesPerDay'', pipeline: [{$addFields: {stateName: ''$name'', date: ''$date''}}]}},\n{ $group: {\n _id: {\n date: ''$date'',\n stateName: ''$stateName''\n },\n totalRegistrations: { $sum: ''$total'' },\n estimate: { $sum: ''$estimatedNumberOfBirths'' }, \n }},\n {$addFields:{stateName: ''$_id.stateName'', date: ''$_id.date''}},\n {\n $match: {\n $and: [\n { _id: { $ne: null } }\n [[ {{ filterDate }} ]]\n [[ {{ filterState }} ]]\n ]\n }\n }, \n {\n $group: {\n _id: null,\n totalRegistrations: { $sum: ''$totalRegistrations'' },\n estimate: { $sum: ''$estimate'' }\n }\n }, \n {\n $addFields: {\n percentage: {\n $cond: {\n if: { $eq: [''$totalRegistrations'', 0] },\n then: 0,\n else: {\n $cond: {\n if: { $eq: [''$estimate'', 0] },\n then: 0,\n else: { $divide: [''$totalRegistrations'', ''$estimate''] }\n }\n }\n }\n }\n }\n },\n { $project: { _id: false, percentage: ''$percentage'', totalRegistrations: ''$totalRegistrations'', estimate: ''$estimate'' } } \n]","template-tags":{"filterDate":{"id":"56e116a3-0612-74c2-b84a-28f672d719ef","name":"filterDate","display-name":"Filterdate","type":"dimension","dimension":["field",658,null],"widget-type":"date/all-options","default":null},"filterState":{"id":"8735e3f7-fcc5-2a78-8fad-0b88ae7b9a12","name":"filterState","display-name":"Filterstate","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null}}},"type":"native"}', '{"table.pivot_column":"percentage","gauge.segments":[{"min":0,"max":0.25,"color":"#ED6E6E","label":""},{"min":0.25,"max":0.75,"color":"#F9CF48","label":""},{"min":0.75,"max":1,"color":"#84BB4C","label":""}],"column_settings":{"[\"name\",\"percentage\"]":{"scale":100,"suffix":" %"}},"table.cell_column":"totalRegistrations"}', 1, 3, NULL, 'native', FALSE, 7, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"percentage","field_ref":["field","percentage",{"base-type":"type/Float"}],"name":"percentage","base_type":"type/Float","effective_type":"type/Float","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"totalRegistrations","field_ref":["field","totalRegistrations",{"base-type":"type/Integer"}],"name":"totalRegistrations","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"estimate","field_ref":["field","estimate",{"base-type":"type/Float"}],"name":"estimate","base_type":"type/Float","effective_type":"type/Float","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'RUK20xOu8Io0PvT4a332Q', '[{"id":"56e116a3-0612-74c2-b84a-28f672d719ef","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Filterdate","slug":"filterDate"},{"id":"8735e3f7-fcc5-2a78-8fad-0b88ae7b9a12","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"Filterstate","slug":"filterState"}]', '[]', TRUE), (14, TIMESTAMP '2022-12-16 10:43:38.23', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.787139+06', 'Registrations over Time', NULL, 'line', '{"type":"query","query":{"aggregation":[["count"]],"breakout":[["field",677,{"temporal-unit":"month"}]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3}', '{"graph.show_goal":false,"graph.show_trendline":false,"graph.show_values":false,"graph.x_axis.axis_enabled":true,"graph.x_axis.title_text":"Over Time","graph.metrics":["count"],"column_settings":{"[\"ref\",[\"field\",677,null]]":{"date_abbreviate":true}},"graph.x_axis.scale":"timeseries","graph.dimensions":["createdAt"]}', 1, 3, 70, 'query', FALSE, NULL, NULL, NULL, FALSE, NULL, NULL, '[{"description":null,"semantic_type":"type/CreationTimestamp","coercion_strategy":null,"unit":"month","name":"createdAt","settings":null,"field_ref":["field",677,{"temporal-unit":"month"}],"effective_type":"type/Instant","id":677,"visibility_type":"normal","display_name":"CreatedAt","fingerprint":{"global":{"distinct-count":26,"nil%":0.0},"type":{"type/DateTime":{"earliest":"2022-12-08T08:03:53.732Z","latest":"2022-12-21T14:00:11.284Z"}}},"base_type":"type/Instant"},{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":1,"nil%":0.0},"type":{"type/Number":{"min":3.0,"q1":3.0,"q3":3.0,"max":3.0,"sd":null,"avg":3.0}}}}]', NULL, FALSE, 'qNwCeJEl62KWFEc_8ueNS', '[]', '[]', TRUE); -INSERT INTO SYSTEM_LOB_STREAM VALUES(678, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Father\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Mother\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registr', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(678, 1, 'ations"},"database":3}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(679, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"e8218caf-e2aa-573e-1776-02cffff42462","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"bf69e085-3c01-7924-5108-7151c85dc371","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersLiteracy\": \"$fathersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Father\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n ,mothersLiteracy: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersLiteracy\": \"$mothersLiteracy\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersLiteracy\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"LITERATE\"] },\n then: \"Literate\"\n },\n {\n case: { $eq: [\"$_id\", \"ILLITERATE\"] },\n then: \"Illiterate\"\n }\n ],\n default: \"\"\n }\n }\n , count: \"$count\"\n }}\n {$addFields: {\n literacy: \"Mother\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n }\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersLiteracy\", \"$mothersLiteracy\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Category'': \"$allInfo._id\"\n , ''Literacy'': \"$allInfo.literacy\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Literacy\": 1\n }\n }\n]\n","collection":"registr', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(679, 1, 'ations"},"database":3}', NULL); INSERT INTO "PUBLIC"."REPORT_CARD" VALUES (16, TIMESTAMP '2022-12-16 13:06:40.361', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.555088+06', 'Total Registrations (without native query)', NULL, 'scalar', '{"type":"query","query":{"aggregation":[["count"]],"filter":["=",["field",666,null],"Birth"],"source-table":70},"database":3}', '{}', 1, 3, 70, 'query', FALSE, NULL, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":1,"nil%":0.0},"type":{"type/Number":{"min":3.0,"q1":3.0,"q3":3.0,"max":3.0,"sd":null,"avg":3.0}}}}]', NULL, FALSE, 'BOot6oon80vLb791-gzQb', '[]', '[]', TRUE), -(18, TIMESTAMP '2022-12-19 08:37:34.118', TIMESTAMP WITH TIME ZONE '2023-01-26 09:34:47.945+06', 'Live Births by Literacy of Parents', NULL, 'bar', SYSTEM_COMBINE_CLOB(678), '{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"Mother":{"color":"#ED8535"},"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"},"Father":{"color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]}', 1, 3, NULL, 'native', TRUE, 10, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Category","field_ref":["field","Category",{"base-type":"type/Text"}],"name":"Category","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Literacy","field_ref":["field","Literacy",{"base-type":"type/Text"}],"name":"Literacy","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'eRSJUaHW6haiucK8BtpC_', '[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}]', '[]', TRUE), +(18, TIMESTAMP '2022-12-19 08:37:34.118', TIMESTAMP WITH TIME ZONE '2023-01-26 09:34:47.945+06', 'Live Births by Literacy of Parents', NULL, 'bar', SYSTEM_COMBINE_CLOB(679), '{"graph.show_values":true,"graph.label_value_formatting":"auto","graph.dimensions":["Category","Literacy"],"series_settings":{"Mother":{"color":"#ED8535"},"mothersLiteracy":{"title":"mother","color":"#ED8535"},"fathersLiteracy":{"title":"father","color":"#8A5EB0"},"Father":{"color":"#8A5EB0"}},"graph.x_axis.title_text":"Literacy","graph.metrics":["Count"]}', 1, 3, NULL, 'native', TRUE, 10, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Category","field_ref":["field","Category",{"base-type":"type/Text"}],"name":"Category","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Literacy","field_ref":["field","Literacy",{"base-type":"type/Text"}],"name":"Literacy","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'eRSJUaHW6haiucK8BtpC_', '[{"id":"e8218caf-e2aa-573e-1776-02cffff42462","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"bf69e085-3c01-7924-5108-7151c85dc371","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"6a8590c0-c44b-6cb5-1927-bf56805a21a7","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"0debbb0c-3e5f-021c-9188-83371bf19895","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"d17f4f32-f1f3-5666-2cf8-b6735eef97b0","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}]', '[]', TRUE), (19, TIMESTAMP '2022-12-19 08:50:07.838', TIMESTAMP WITH TIME ZONE '2023-05-09 14:14:19.27+06', 'Live Births by Order', NULL, 'bar', '{"type":"native","native":{"template-tags":{"filterGender":{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","name":"filterOffice","display-name":"District","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , birthOrder: ''$birthOrder''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$eq: [''$birthOrder'', 1]}] }, then: ''1''},\n {case: {$and: [{$eq: [''$birthOrder'', 2]}] }, then: ''2''},\n {case: {$and: [{$eq: [''$birthOrder'', 3]}] }, then: ''3''},\n {case: {$and: [{$eq: [''$birthOrder'', 4]}] }, then: ''4''},\n {case: {$and: [{$eq: [''$birthOrder'', 5]}] }, then: ''5''},\n {case: {$and: [{$gte: [''$birthOrder'', 6]}] }, then: ''6+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.category\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3}', '{"graph.show_values":true,"pie.dimension":"birthOrder","graph.series_order_dimension":null,"graph.x_axis.title_text":"Birth Order","graph.metrics":[null],"graph.series_order":null,"pie.metric":"count","series_settings":{"Count":{"color":"#F7C41F"}},"graph.dimensions":[]}', 1, 3, NULL, 'native', TRUE, 11, NULL, NULL, FALSE, NULL, NULL, '[]', NULL, FALSE, 'L6nXdi04nvxgEh1eJYrwR', '[{"id":"7335b5ec-6aa2-3c6e-fc23-b8d6526592a4","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"95aa438c-e710-4c95-1ce3-1de5858df3b6","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"aa6006c9-d593-07e3-ab90-62f764a51ebe","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"8f65e91d-33a7-6447-1bf2-b2b318fce33d","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"District","slug":"filterOffice"},{"id":"996f1d61-a845-0afe-bb4c-f36ac4ab32be","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}]', '[]', TRUE); -INSERT INTO SYSTEM_LOB_STREAM VALUES(679, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.cate', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(679, 1, 'gory\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3}', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(680, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Father\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n ', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(680, 1, ' },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Mother\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(680, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"56559614-c685-9d81-d44b-a688fe5b103b","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterDate":{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/month-year","default":null},"filterDistrict":{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","name":"filterDistrict","display-name":"District","type":"dimension","dimension":["field",723,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": false,\n \"totalCount\": \"$qty\"\n }}\n \n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterDistrict }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {$project: {\n _id: NumberInt(0)\n , mothersAge: ''$mothersAgeAtBirthOfChildInYears''\n \n }}\n , {$addFields: {\n orders: {$switch:\n {\n branches: [\n {case: {$and: [{$gte: [''$mothersAge'', 9]}, {$lt: [''$mothersAge'', 15]}] }, then: ''09-14''},\n {case: {$and: [{$gte: [''$mothersAge'', 15]}, {$lt: [''$mothersAge'', 20]}] }, then: ''15-19''},\n {case: {$and: [{$gte: [''$mothersAge'', 20]}, {$lt: [''$mothersAge'', 25]}] }, then: ''20-24''},\n {case: {$and: [{$gte: [''$mothersAge'', 25]}, {$lt: [''$mothersAge'', 30]}] }, then: ''25-29''},\n {case: {$and: [{$gte: [''$mothersAge'', 30]}, {$lt: [''$mothersAge'', 35]}] }, then: ''30-34''},\n {case: {$and: [{$gte: [''$mothersAge'', 35]}, {$lt: [''$mothersAge'', 40]}] }, then: ''35-39''},\n {case: {$and: [{$gte: [''$mothersAge'', 40]}, {$lt: [''$mothersAge'', 45]}] }, then: ''40-44''},\n {case: {$and: [{$gte: [''$mothersAge'', 45]}, {$lt: [''$mothersAge'', 50]}] }, then: ''45-49''},\n {case: {$and: [{$gte: [''$mothersAge'', 50]}, {$lt: [''$mothersAge'', 55]}] }, then: ''50-54''},\n {case: {$and: [{$gte: [''$mothersAge'', 55]}, {$lt: [''$mothersAge'', 60]}] }, then: ''55-59''},\n {case: {$and: [{$gte: [''$mothersAge'', 60]}] }, then: ''60+''}\n ], \n default: ''''\n }}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n }}\n , {$match: {\n orders: {$ne: ''''}\n }}\n , {$project: {\n _id: NumberInt(0)\n , orders: ''$orders''\n , totalCount: \"$totalCount\"\n }}\n \n , {$group: { \n _id: { orders: ''$orders''}\n , totalCount: {$sum: NumberInt(1)}\n }} , {$project: {\n _id: NumberInt(0)\n , ''category'': ''$_id.orders''\n , ''count'': ''$totalCount''\n }}\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''Order'': \"$allInfo.cate', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(680, 1, 'gory\"\n , ''Count'': \"$allInfo.count\"\n , ''Percentage'': {$divide: [{$multiply: [''$allInfo.count'', 100]}, ''$totalCount'']}\n \n }},\n {\n \"$sort\": {\n \"Order\": 1\n }\n }\n]","collection":"registrations"},"database":3}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(681, 0, '{"type":"native","native":{"template-tags":{"filterGender":{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":null},"filterState":{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","name":"filterOffice","display-name":"LGA","type":"dimension","dimension":["field",670,null],"widget-type":"string/=","default":null},"filterDate":{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null}},"query":"[\n {$facet: {\n fathersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"fathersAttainment\": \"$fathersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.fathersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Father\"\n }}\n ]\n , mothersAttainment: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n [[ {{ filterDate }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": { \"mothersAttainment\": \"$mothersEducationalAttainment\" } \n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id.mothersAttainment\"\n , \"count\": \"$qty\"\n }},\n {$match: {\n \"_id\": {$ne: null}\n }}\n , {$project: {\n _id: NumberInt(0)\n , \"_id\": {\n $switch: {\n branches: [\n {\n case: { $eq: [\"$_id\", \"KORANIC\"] },\n then: \"Koranic\"\n },\n {\n case: { $eq: [\"$_id\", \"MODERN\"] },\n then: \"Modern\"\n ', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(681, 1, ' },\n {\n case: { $eq: [\"$_id\", \"HIGHER_SCHOOL\"] },\n then: \"Higher School\"\n },\n {\n case: { $eq: [\"$_id\", \"PRIMARY\"] },\n then: \"Primary\"\n },\n {\n case: { $eq: [\"$_id\", \"UNIVERSITY\"] },\n then: \"University\"\n },\n {\n case: { $eq: [\"$_id\", \"POLYTECNIC_NCE\"] },\n then: \"Polytecnic NCE\"\n },\n {\n case: { $eq: [\"$_id\", \"SECONDARY\"] },\n then: \"Secondary\"\n }\n ],\n default: \"Others\"\n }\n }\n , count: \"$count\"\n }},\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {$addFields: {\n attainment: \"Mother\"\n }}\n ]\n }},\n {\n $project: {\n allInfo: {\n $concatArrays: [ \"$fathersAttainment\", \"$mothersAttainment\" ]\n }\n }\n }, {\n $unwind: \"$allInfo\"\n },\n {$project: {\n _id: NumberInt(0)\n , ''Educational Attainment'': \"$allInfo._id\"\n , ''Relationship'': \"$allInfo.attainment\"\n , ''Count'': \"$allInfo.count\"\n }},\n {\n \"$sort\": {\n \"Relationship\": 1\n }\n }\n]\n","collection":"registrations"},"database":3}', NULL); INSERT INTO "PUBLIC"."REPORT_CARD" VALUES -(20, TIMESTAMP '2022-12-19 09:56:45.336', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:50.823378+06', 'Live Births by Age of Mother', NULL, 'bar', SYSTEM_COMBINE_CLOB(679), '{"graph.show_values":true,"table.cell_column":"Count","graph.series_order_dimension":null,"graph.x_axis.title_text":"Age","graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.dimensions":["Order"]}', 1, 3, NULL, 'native', FALSE, 12, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Order","field_ref":["field","Order",{"base-type":"type/Text"}],"name":"Order","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Percentage","field_ref":["field","Percentage",{"base-type":"type/Float"}],"name":"Percentage","base_type":"type/Float","effective_type":"type/Float","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'PcnknQN2IYs_mJkwA8yRq', '[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}]', '[]', TRUE), -(21, TIMESTAMP '2022-12-19 10:32:35.258', TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:24.473+06', 'Live Births by Level of Education of Parent', NULL, 'bar', SYSTEM_COMBINE_CLOB(680), '{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"Mother":{"color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"},"mothersAttainment":{"title":"mother","color":"#E75454"},"Father":{"color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]}', 1, 3, NULL, 'native', TRUE, 14, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Educational Attainment","field_ref":["field","Educational Attainment",{"base-type":"type/Text"}],"name":"Educational Attainment","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Relationship","field_ref":["field","Relationship",{"base-type":"type/Text"}],"name":"Relationship","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'W6bdia0Vw-6PC1efnHIR4', '[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}]', '[]', TRUE); +(20, TIMESTAMP '2022-12-19 09:56:45.336', TIMESTAMP WITH TIME ZONE '2024-10-21 18:05:58.370517+06', 'Live Births by Age of Mother', NULL, 'bar', SYSTEM_COMBINE_CLOB(680), '{"graph.show_values":true,"table.cell_column":"Count","graph.series_order_dimension":null,"graph.x_axis.title_text":"Age","graph.metrics":["Count"],"graph.series_order":null,"table.pivot_column":"Order","series_settings":{"Count":{"color":"#E75454"}},"graph.dimensions":["Order"]}', 1, 3, NULL, 'native', FALSE, 12, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Order","field_ref":["field","Order",{"base-type":"type/Text"}],"name":"Order","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":10,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":7,"nil%":0.0}}},{"display_name":"Percentage","field_ref":["field","Percentage",{"base-type":"type/Float"}],"name":"Percentage","base_type":"type/Float","effective_type":"type/Float","semantic_type":null,"fingerprint":{"global":{"distinct-count":7,"nil%":0.0}}}]', NULL, FALSE, 'PcnknQN2IYs_mJkwA8yRq', '[{"id":"56559614-c685-9d81-d44b-a688fe5b103b","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"cd1a4146-89c8-79a8-3ea0-145647317de1","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"f105fc3f-8509-e01b-cd4e-bf3ea930da11","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"557cb4d2-a41c-3867-3703-360b7e03aeb7","type":"date/month-year","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"0d1e592a-47dc-e5ed-9522-613ab64ea6c2","type":"string/=","target":["dimension",["template-tag","filterDistrict"]],"name":"District","slug":"filterDistrict"}]', '[]', TRUE), +(21, TIMESTAMP '2022-12-19 10:32:35.258', TIMESTAMP WITH TIME ZONE '2023-01-26 09:36:24.473+06', 'Live Births by Level of Education of Parent', NULL, 'bar', SYSTEM_COMBINE_CLOB(681), '{"graph.show_values":true,"pie.dimension":"Educational Attainment","graph.x_axis.axis_enabled":true,"graph.y_axis.auto_split":true,"graph.metrics":["Count"],"pie.metric":"Count","series_settings":{"Mother":{"color":"#E75454"},"fathersAttainment":{"title":"father","color":"#69C8C8"},"mothersAttainment":{"title":"mother","color":"#E75454"},"Father":{"color":"#69C8C8"}},"graph.y_axis.auto_range":true,"graph.dimensions":["Educational Attainment","Relationship"]}', 1, 3, NULL, 'native', TRUE, 14, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Educational Attainment","field_ref":["field","Educational Attainment",{"base-type":"type/Text"}],"name":"Educational Attainment","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Relationship","field_ref":["field","Relationship",{"base-type":"type/Text"}],"name":"Relationship","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Count","field_ref":["field","Count",{"base-type":"type/Integer"}],"name":"Count","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'W6bdia0Vw-6PC1efnHIR4', '[{"id":"a94c0fd1-e550-61f5-bf93-6745782a3236","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"8e0c3f0a-82b1-067f-aeaf-69750553ec6e","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"bdbcbf25-7d5e-f7a9-27f7-1bce6a670ec1","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"e7f94a82-3d11-349f-1011-235d052a57cb","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"LGA","slug":"filterOffice"},{"id":"b6d5ee98-e1eb-8e7d-6c1c-77350781da39","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"}]', '[]', TRUE); INSERT INTO "PUBLIC"."REPORT_CARD" VALUES (27, TIMESTAMP '2022-12-20 09:21:07.317', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:50.823378+06', 'Live Births by Place of Birth', NULL, 'pie', '{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","PlaceOfBirth"]],"expressions":{"PlaceOfBirth":["case",[[["=",["field",668,null],"HEALTH_FACILITY"],"Health Facility"],[["=",["field",668,null],"ADMIN_STRUCTURE"],"Admin Structure"],[["=",["field",668,null],"CRVS_OFFICE"],"CRVS Office"],[["=",["field",668,null],"PRIVATE_HOME"],"Private Home"],[["=",["field",668,null],"OTHER"],"Other"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"}', '{"pie.colors":{"Health Facility":"#689636","Taxi":"#69C8C8"}}', 1, 3, 70, 'query', FALSE, 9, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"PlaceOfBirth","field_ref":["expression","PlaceOfBirth"],"name":"PlaceOfBirth","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0},"type":{"type/Text":{"percent-json":0.0,"percent-url":0.0,"percent-email":0.0,"percent-state":0.0,"average-length":15.0}}}},{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":1,"nil%":0.0},"type":{"type/Number":{"min":3.0,"q1":3.0,"q3":3.0,"max":3.0,"sd":null,"avg":3.0}}}}]', NULL, FALSE, 'AfR2OybIvG3i-a1qt-k0u', '[]', '[]', TRUE), (28, TIMESTAMP '2022-12-20 09:26:38.493', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.815316+06', 'Record Corrections by Type', NULL, 'pie', '{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","Reason"]],"expressions":{"Reason":["case",[[["=",["field",688,null],"CLERICAL_ERROR"],"Clerical Error"],[["=",["field",688,null],"JUDICIAL_ORDER"],"Judicial Order"],[["=",["field",688,null],"MATERIAL_ERROR"],"Material Error"],[["=",["field",688,null],"MATERIAL_OMISSION"],"Material Omission"],[["=",["field",688,null],"OTHER"],"Other"]]]},"filter":["=",["field",693,null],"Birth"],"source-table":71},"type":"query"}', '{"pie.colors":{"Clerical Error":"#8A5EB0"}}', 1, 3, 71, 'query', FALSE, 17, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Reason","field_ref":["expression","Reason"],"name":"Reason","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":0,"nil%":null},"type":{"type/Text":{"percent-json":null,"percent-url":null,"percent-email":null,"percent-state":null,"average-length":null}}}},{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":0,"nil%":null},"type":{"type/Number":{"min":null,"q1":null,"q3":null,"max":null,"sd":null,"avg":null}}}}]', NULL, FALSE, '__hZ2xD-7VCBJ7mLFxB9Y', '[]', '[]', TRUE), (29, TIMESTAMP '2022-12-20 09:32:37.984', TIMESTAMP WITH TIME ZONE '2023-05-09 14:14:27.238+06', 'Live Births by Type of Birth', NULL, 'pie', '{"type":"query","query":{"aggregation":[["count"]],"breakout":[["expression","TypeOfBirth"]],"expressions":{"TypeOfBirth":["case",[[["=",["field",674,null],"SINGLE"],"Single"],[["=",["field",674,null],"TWIN"],"Twin"],[["=",["field",674,null],"TRIPLET"],"Triplet"],[["=",["field",674,null],"QUADRUPLET"],"Quadruplet"]]]},"filter":["=",["field",666,null],"Birth"],"order-by":[["desc",["aggregation",0,null]]],"source-table":70},"database":3}', '{"pie.colors":{"Quadruplet":"#8A5EB0","Single":"#F7C41F"}}', 1, 3, 70, 'query', TRUE, 15, NULL, NULL, FALSE, NULL, NULL, '[{"base_type":"type/Text","name":"TypeOfBirth","display_name":"TypeOfBirth","expression_name":"TypeOfBirth","field_ref":["expression","TypeOfBirth"],"source":"breakout"},{"base_type":"type/BigInteger","semantic_type":"type/Quantity","name":"count","display_name":"Count","source":"aggregation","field_ref":["aggregation",0]}]', NULL, FALSE, 'GOqql9fnmIgyeOChWso6x', '[]', '[]', TRUE), (30, TIMESTAMP '2022-12-20 10:12:01.203', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.611559+06', '% of Total Registrations Certified', NULL, 'pie', '{"database":3,"query":{"aggregation":[["count"]],"breakout":[["expression","Status"]],"expressions":{"Status":["case",[[["=",["field",682,null],"REGISTERED"],"Not Certified"],[["=",["field",682,null],"CERTIFIED"],"Certified"],[["=",["field",682,null],"ISSUED"],"Issued"]]]},"filter":["=",["field",666,null],"Birth"],"source-table":70},"type":"query"}', '{"pie.colors":{"Certified":"#E75454","Not Certified":"#F7C4C4"}}', 1, 3, 70, 'query', FALSE, 8, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Status","field_ref":["expression","Status"],"name":"Status","base_type":"type/Text","effective_type":"type/Text","semantic_type":"type/Category","fingerprint":{"global":{"distinct-count":2,"nil%":0.0},"type":{"type/Text":{"percent-json":0.0,"percent-url":0.0,"percent-email":0.0,"percent-state":0.0,"average-length":7.5}}}},{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":2,"nil%":0.0},"type":{"type/Number":{"min":1.0,"q1":1.0,"q3":2.0,"max":2.0,"sd":0.7071067811865476,"avg":1.5}}}}]', NULL, FALSE, 'i9_4VwkR62cl03HLkb9e7', '[]', '[]', TRUE); -INSERT INTO SYSTEM_LOB_STREAM VALUES(681, 0, '{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''Total'' }, { $addFields: { Category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$Category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { Total: 1, Category: 1 } },\n {\n $sort: {\n Category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","de', NULL); -INSERT INTO SYSTEM_LOB_STREAM VALUES(681, 1, 'fault":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"}', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(682, 0, '{"database":3,"native":{"collection":"registrations","query":"[\n {\n $match: {\n $and: [{ _id: { $ne: null } }\n [[{{ filterDate }} ]]\n [[{{ filterGender }} ]]\n [[{{ filterEvent }}]]\n [[{{ filterState }}]]\n [[{{ filterOffice }}]]\n ]\n }\n },\n {\n $facet: {\n totals: [{ $count: ''Total'' }, { $addFields: { Category: ''Total'' } }],\n ageGroups: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 365] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 1''\n }\n ],\n default: ''''\n }\n }\n }\n },\n {$match: {\n par: {$ne: ''''}\n }}\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n ageGroups2: [\n {\n $project: {\n _id: 0,\n childsAge: ''$childsAgeInDaysAtDeclaration''\n }\n },\n {\n $addFields: {\n par: {\n $switch: {\n branches: [\n {\n case: {\n $and: [\n { $lt: [''$childsAge'', 1825] },\n { $gte: [''$childsAge'', 0] }\n ]\n },\n then: ''< 5''\n }\n ],\n default: ''5+''\n }\n }\n }\n },\n {\n $project: {\n _id: 0,\n par: ''$par''\n }\n },\n {\n $group: {\n _id: { par: ''$par'' },\n totalCustomer: { $sum: 1 }\n }\n },\n {\n $project: {\n _id: 0,\n Category: ''$_id.par'',\n Total: ''$totalCustomer''\n }\n }\n ],\n }\n },\n {\n $project: {\n mergedArray: { $concatArrays: [''$totals'', ''$ageGroups'', ''$ageGroups2''] }\n }\n },\n { $unwind: ''$mergedArray'' },\n { $replaceRoot: { newRoot: ''$mergedArray'' } },\n {\n $addFields: {\n order: {\n $cond: {\n if: { $eq: [''$Category'', ''Total''] },\n then: 1,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 1''] },\n then: 2,\n else: {\n $cond: {\n if: { $eq: [''$Category'', ''< 5''] },\n then: 3,\n else: 4\n }\n }\n }\n }\n }\n }\n }\n },\n {\n $sort: {\n order: 1\n }\n },\n { $project: { Total: 1, Category: 1 } },\n {\n $sort: {\n Category: -1\n }\n },\n]","template-tags":{"filterDate":{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","de', NULL); +INSERT INTO SYSTEM_LOB_STREAM VALUES(682, 1, 'fault":null},"filterState":{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}}},"type":"native"}', NULL); INSERT INTO "PUBLIC"."REPORT_CARD" VALUES -(31, TIMESTAMP '2022-12-21 07:21:47.991', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.570837+06', 'Registrations by Age', NULL, 'bar', SYSTEM_COMBINE_CLOB(681), '{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["Total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"total":{"color":"#8A5EB0"},"20,085":{"axis":null},"Total":{"color":"#8A5EB0"}},"graph.dimensions":["Category"],"stackable.stack_type":"stacked"}', 1, 3, NULL, 'native', FALSE, 4, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Total","field_ref":["field","Total",{"base-type":"type/Integer"}],"name":"Total","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Category","field_ref":["field","Category",{"base-type":"type/Text"}],"name":"Category","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":3,"nil%":0.0}}}]', NULL, FALSE, 'hTP9EUEq13VA1N_H-258l', '[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}]', '[]', TRUE), +(31, TIMESTAMP '2022-12-21 07:21:47.991', TIMESTAMP WITH TIME ZONE '2024-02-13 17:55:17.570837+06', 'Registrations by Age', NULL, 'bar', SYSTEM_COMBINE_CLOB(682), '{"graph.y_axis.title_text":"Total","graph.show_values":true,"graph.x_axis.labels_enabled":false,"graph.series_order_dimension":null,"stackable.stack_display":"bar","graph.x_axis.title_text":"Category","graph.label_value_frequency":"fit","graph.metrics":["Total"],"graph.label_value_formatting":"auto","graph.series_order":null,"series_settings":{"4":{"title":"Under age 5","color":"#509EE3"},"7":{"title":"Over age 5","color":"#509EE3"},"12":{"title":"Under age 1","color":"#509EE3"},"23":{"color":"#F9D45C","title":"Total"},"total":{"color":"#8A5EB0"},"20,085":{"axis":null},"Total":{"color":"#8A5EB0"}},"graph.dimensions":["Category"],"stackable.stack_type":"stacked"}', 1, 3, NULL, 'native', FALSE, 4, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"Total","field_ref":["field","Total",{"base-type":"type/Integer"}],"name":"Total","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Category","field_ref":["field","Category",{"base-type":"type/Text"}],"name":"Category","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":3,"nil%":0.0}}}]', NULL, FALSE, 'hTP9EUEq13VA1N_H-258l', '[{"id":"84b2ec9e-eea8-e9ee-160f-57a211462c2a","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"7d3014f2-7de5-b2b0-fb10-0796ecc6fe38","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"086c0846-69f4-a2b9-16b8-86af040bf2c8","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent"},{"id":"537bc06b-acf9-9d28-3c92-346d83ce5156","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"5626fb9c-14cd-0fe8-2254-687e292aeb7b","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}]', '[]', TRUE), (32, TIMESTAMP '2023-01-24 10:30:25.392', TIMESTAMP WITH TIME ZONE '2023-05-09 14:17:29.726+06', 'Registrations by State', NULL, 'row', '{"database":3,"query":{"source-table":70,"aggregation":[["count"]],"breakout":[["field",671,null]],"order-by":[["desc",["aggregation",0,null]]],"limit":10},"type":"query"}', '{"map.type":"region","map.region":"us_states","graph.dimensions":["stateName"],"graph.metrics":["count"]}', 1, 3, 70, 'query', FALSE, 18, NULL, NULL, FALSE, NULL, NULL, '[{"description":null,"semantic_type":"type/State","coercion_strategy":null,"name":"stateName","settings":null,"field_ref":["field",671,null],"effective_type":"type/Text","id":671,"visibility_type":"normal","display_name":"StateName","fingerprint":{"global":{"distinct-count":6,"nil%":0},"type":{"type/Text":{"percent-json":0,"percent-url":0,"percent-email":0,"percent-state":0,"average-length":5.538461538461538}}},"base_type":"type/Text"},{"display_name":"Count","semantic_type":"type/Quantity","field_ref":["aggregation",0],"name":"count","base_type":"type/BigInteger","effective_type":"type/BigInteger","fingerprint":{"global":{"distinct-count":10,"nil%":0},"type":{"type/Number":{"min":705,"q1":790,"q3":1160,"max":1830,"sd":339.08923768104336,"avg":1043.2}}}}]', NULL, FALSE, 'Ja4C9jmYDwEnYTid4pLzA', '[]', '[]', TRUE), (33, TIMESTAMP '2023-01-24 11:31:40.926', TIMESTAMP WITH TIME ZONE '2024-02-13 18:52:57.284163+06', 'Registrations by State', NULL, 'row', '{"database":3,"native":{"template-tags":{"filterDate":{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","name":"filterDate","display-name":"Date","type":"dimension","dimension":["field",677,null],"widget-type":"date/all-options","default":null},"filterGender":{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","name":"filterGender","display-name":"Gender","type":"dimension","dimension":["field",680,null],"widget-type":"string/=","default":null},"filterEvent":{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","name":"filterEvent","display-name":"Event","type":"dimension","dimension":["field",666,null],"widget-type":"string/=","default":["Birth"]},"filterState":{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","name":"filterState","display-name":"State","type":"dimension","dimension":["field",671,null],"widget-type":"string/=","default":null},"filterOffice":{"id":"58ab4870-ee4a-8362-2689-440572bb65de","name":"filterOffice","display-name":"Office","type":"dimension","dimension":["field",676,null],"widget-type":"string/=","default":null}},"query":"[\n {$facet: {\n totalCountInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\"$group\" : { \n \"_id\": null\n , \"qty\": {$sum: NumberInt(1)}\n }}\n , {\"$project\" : { \n \"_id\": \"$_id\"\n , \"totalCount\": \"$qty\"\n }}\n ]\n , otherInfo: [\n {$match: {\n $and: [\n {\"_id\": {\"$ne\": null}}\n [[ {{ filterDate }} ]]\n [[ {{ filterGender }} ]]\n [[ {{ filterEvent }} ]]\n [[ {{ filterState }} ]]\n [[ {{ filterOffice }} ]]\n ]\n }}\n , {\n \"$group\": {\n \"_id\": {\n \"stateName\": \"$stateName\"\n },\n \"count\": {\n \"$sum\": 1\n }\n }\n },\n {\n \"$sort\": {\n \"_id\": 1\n }\n },\n {\n \"$project\": {\n \"_id\": false,\n \"stateName\": \"$_id.stateName\",\n \"count\": true\n }\n },\n {\n \"$sort\": {\n \"count\": -1,\n \"stateName\": 1\n }\n }\n ]\n }}\n , {$replaceRoot: {\n newRoot: {\n $mergeObjects: [\n {allInfo: ''$otherInfo''}, {''$arrayElemAt'': [''$totalCountInfo'', 0]}\n ]\n }\n }}\n , {$unwind: ''$allInfo''}\n , {$project: {\n _id: NumberInt(0)\n , ''State Name'': \"$allInfo.stateName\"\n , ''Registrations'': \"$allInfo.count\"\n }}\n]","collection":"registrations"},"type":"native"}', '{"series_settings":{"Registrations":{"color":"#ED8535"}},"graph.dimensions":["State Name"],"graph.show_values":true,"graph.y_axis.title_text":"No. of registrations","table.pivot_column":"State Name","table.cell_column":"Registrations","column_settings":{"[\"name\",\"State Name\"]":{"column_title":"State Name"}},"graph.metrics":["Registrations"]}', 1, 3, NULL, 'native', FALSE, 18, NULL, NULL, FALSE, NULL, NULL, '[{"display_name":"State Name","field_ref":["field","State Name",{"base-type":"type/Text"}],"name":"State Name","base_type":"type/Text","effective_type":"type/Text","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}},{"display_name":"Registrations","field_ref":["field","Registrations",{"base-type":"type/Integer"}],"name":"Registrations","base_type":"type/Integer","effective_type":"type/Integer","semantic_type":null,"fingerprint":{"global":{"distinct-count":1,"nil%":0.0}}}]', NULL, FALSE, 'g5hTQaT1d2p1OX0tU90WQ', '[{"id":"f86f592c-2219-063c-8dc4-ca623c06a3ca","type":"date/all-options","target":["dimension",["template-tag","filterDate"]],"name":"Date","slug":"filterDate"},{"id":"91f3014a-fb66-6724-708c-8e89f56e2779","type":"string/=","target":["dimension",["template-tag","filterGender"]],"name":"Gender","slug":"filterGender"},{"id":"757a20cf-8f70-6857-0ed5-acb310688b3a","type":"string/=","target":["dimension",["template-tag","filterEvent"]],"name":"Event","slug":"filterEvent","default":["Birth"]},{"id":"9384f1c8-b896-7ddb-6f32-204beba13dd3","type":"string/=","target":["dimension",["template-tag","filterState"]],"name":"State","slug":"filterState"},{"id":"58ab4870-ee4a-8362-2689-440572bb65de","type":"string/=","target":["dimension",["template-tag","filterOffice"]],"name":"Office","slug":"filterOffice"}]', '[]', TRUE); CREATE INDEX "PUBLIC"."IDX_CARD_CREATOR_ID" ON "PUBLIC"."REPORT_CARD"("CREATOR_ID" NULLS FIRST); @@ -175763,8 +175773,8 @@ CREATE CACHED TABLE "PUBLIC"."IMPLICIT_ACTION" COMMENT 'An action with dynamic p DROP TABLE IF EXISTS SYSTEM_LOB_STREAM; DROP ALIAS IF EXISTS SYSTEM_COMBINE_CLOB; DROP ALIAS IF EXISTS SYSTEM_COMBINE_BLOB; -ALTER TABLE "PUBLIC"."METABASE_FIELD" ADD CONSTRAINT "PUBLIC"."IDX_UNIQ_FIELD_TABLE_ID_PARENT_ID_NAME" UNIQUE("TABLE_ID", "PARENT_ID", "NAME"); ALTER TABLE "PUBLIC"."METRIC_IMPORTANT_FIELD" ADD CONSTRAINT "PUBLIC"."UNIQUE_METRIC_IMPORTANT_FIELD_METRIC_ID_FIELD_ID" UNIQUE("METRIC_ID", "FIELD_ID"); +ALTER TABLE "PUBLIC"."METABASE_FIELD" ADD CONSTRAINT "PUBLIC"."IDX_UNIQ_FIELD_TABLE_ID_PARENT_ID_NAME" UNIQUE("TABLE_ID", "PARENT_ID", "NAME"); ALTER TABLE "PUBLIC"."ACTION" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_72C" UNIQUE("ENTITY_ID"); ALTER TABLE "PUBLIC"."PULSE_CARD" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_A4" UNIQUE("ENTITY_ID"); ALTER TABLE "PUBLIC"."COLLECTION" ADD CONSTRAINT "PUBLIC"."UNIQUE_COLLECTION_PERSONAL_OWNER_ID" UNIQUE("PERSONAL_OWNER_ID"); @@ -175776,8 +175786,8 @@ ALTER TABLE "PUBLIC"."PARAMETER_CARD" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_C3" UN ALTER TABLE "PUBLIC"."TIMELINE" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_B2" UNIQUE("ENTITY_ID"); ALTER TABLE "PUBLIC"."DIMENSION" ADD CONSTRAINT "PUBLIC"."UNIQUE_DIMENSION_FIELD_ID" UNIQUE("FIELD_ID"); ALTER TABLE "PUBLIC"."PERMISSIONS_GROUP" ADD CONSTRAINT "PUBLIC"."UNIQUE_PERMISSIONS_GROUP_NAME" UNIQUE("NAME"); -ALTER TABLE "PUBLIC"."SEGMENT" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_A" UNIQUE("ENTITY_ID"); ALTER TABLE "PUBLIC"."DASHBOARD_BOOKMARK" ADD CONSTRAINT "PUBLIC"."UNIQUE_DASHBOARD_BOOKMARK_USER_ID_DASHBOARD_ID" UNIQUE("USER_ID", "DASHBOARD_ID"); +ALTER TABLE "PUBLIC"."SEGMENT" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_A" UNIQUE("ENTITY_ID"); ALTER TABLE "PUBLIC"."PERSISTED_INFO" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_2" UNIQUE("CARD_ID"); ALTER TABLE "PUBLIC"."CORE_USER" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_4" UNIQUE("EMAIL"); ALTER TABLE "PUBLIC"."PULSE_CHANNEL" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_5" UNIQUE("ENTITY_ID"); @@ -175826,8 +175836,8 @@ ALTER TABLE "PUBLIC"."REPORT_CARD" ADD CONSTRAINT "PUBLIC"."FK_CARD_REF_USER_ID" ALTER TABLE "PUBLIC"."LOGIN_HISTORY" ADD CONSTRAINT "PUBLIC"."FK_LOGIN_HISTORY_SESSION_ID" FOREIGN KEY("SESSION_ID") REFERENCES "PUBLIC"."CORE_SESSION"("ID") ON DELETE SET NULL NOCHECK; ALTER TABLE "PUBLIC"."SANDBOXES" ADD CONSTRAINT "PUBLIC"."FK_SANDBOXES_REF_PERMISSIONS" FOREIGN KEY("PERMISSION_ID") REFERENCES "PUBLIC"."PERMISSIONS"("ID") ON DELETE CASCADE NOCHECK; ALTER TABLE "PUBLIC"."VIEW_LOG" ADD CONSTRAINT "PUBLIC"."FK_VIEW_LOG_REF_USER_ID" FOREIGN KEY("USER_ID") REFERENCES "PUBLIC"."CORE_USER"("ID") ON DELETE CASCADE NOCHECK; -ALTER TABLE "PUBLIC"."REPORT_CARDFAVORITE" ADD CONSTRAINT "PUBLIC"."FK_CARDFAVORITE_REF_CARD_ID" FOREIGN KEY("CARD_ID") REFERENCES "PUBLIC"."REPORT_CARD"("ID") ON DELETE CASCADE NOCHECK; ALTER TABLE "PUBLIC"."SANDBOXES" ADD CONSTRAINT "PUBLIC"."FK_GTAP_TABLE_ID" FOREIGN KEY("TABLE_ID") REFERENCES "PUBLIC"."METABASE_TABLE"("ID") ON DELETE CASCADE NOCHECK; +ALTER TABLE "PUBLIC"."REPORT_CARDFAVORITE" ADD CONSTRAINT "PUBLIC"."FK_CARDFAVORITE_REF_CARD_ID" FOREIGN KEY("CARD_ID") REFERENCES "PUBLIC"."REPORT_CARD"("ID") ON DELETE CASCADE NOCHECK; ALTER TABLE "PUBLIC"."IMPLICIT_ACTION" ADD CONSTRAINT "PUBLIC"."FK_IMPLICIT_ACTION_ACTION_ID" FOREIGN KEY("ACTION_ID") REFERENCES "PUBLIC"."ACTION"("ID") ON DELETE CASCADE NOCHECK; ALTER TABLE "PUBLIC"."TIMELINE_EVENT" ADD CONSTRAINT "PUBLIC"."FK_EVENTS_TIMELINE_ID" FOREIGN KEY("TIMELINE_ID") REFERENCES "PUBLIC"."TIMELINE"("ID") ON DELETE CASCADE NOCHECK; ALTER TABLE "PUBLIC"."PARAMETER_CARD" ADD CONSTRAINT "PUBLIC"."FK_PARAMETER_CARD_REF_CARD_ID" FOREIGN KEY("CARD_ID") REFERENCES "PUBLIC"."REPORT_CARD"("ID") ON DELETE CASCADE NOCHECK; diff --git a/packages/dashboards/run.sh b/packages/dashboards/run.sh index 6e42886719..76a98c57ee 100644 --- a/packages/dashboards/run.sh +++ b/packages/dashboards/run.sh @@ -85,7 +85,7 @@ if [ -z "${OPENCRVS_METABASE_ADMIN_PASSWORD}" ]; then fi export MB_JETTY_PORT=${MB_JETTY_PORT:-4444} -export MB_DB_FILE=/data/metabase/metabase.mv.db +export MB_DB_FILE=${MB_DB_FILE:-'/data/metabase/metabase.mv.db'} export OPENCRVS_METABASE_ADMIN_PASSWORD_SALT=$(uuidgen) SALT_AND_PASSWORD=$OPENCRVS_METABASE_ADMIN_PASSWORD_SALT$OPENCRVS_METABASE_ADMIN_PASSWORD export OPENCRVS_METABASE_ADMIN_PASSWORD_HASH=$(java -cp $METABASE_JAR clojure.main -e "(require 'metabase.util.password) (println (metabase.util.password/hash-bcrypt \"$SALT_AND_PASSWORD\"))" 2>/dev/null | tail -n 1)