Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_021918a0c8242b2a.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_056bac9afcbf36a8.sql +24 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0707b540125b7c00.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_077cedc38a75291f.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_085778c98281b6b1.sql +24 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_09343ebf8928b7de.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0a33ccd0c47907a7.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0d91f8cc08721aeb.sql +22 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0e4fadc743aa552b.sql +31 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0fcb845c56d53364.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0feb0823d6441783.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_124c52fc49fe8c54.sql +33 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13a51e8a6f551f6f.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13aa0ee42942e03a.sql +15 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13c27cc4977f1c67.sql +15 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_17c8e5a48e44d941.sql +16 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_17d255c051ff9d5a.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_1df1fa8001d15852.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_1f610802f615ad79.sql +67 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_21337b4693eb9f15.sql +29 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_21e55bbec45592e6.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2723e213a362c232.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2977ee1d720153ac.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2a1fb37114f09263.sql +26 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2b010d565056dfd7.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2fd1649e44595caf.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2ff4b4112dbaa79f.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3286bdc178110b30.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_33cbab867103da4f.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_34c0efc254435e99.sql +65 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_39d2d76d5d851157.sql +22 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3a97704c0a2c0ebc.sql +29 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3aba8fbcd891761d.sql +24 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3b98eefd1e5bb298.sql +20 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3bbcbffb2768fe5d.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3c0ff000c65daf7a.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3ceeba8e3df6283c.sql +17 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3e91873b089aebd4.sql +39 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3f06e9565005dd35.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_40b02b0fef51d6e2.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4173ae3af301c2bc.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_45c17ddd428b4775.sql +21 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_471a3e04406ad4c1.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_47f9147387d93970.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_47fe1c8ab8593146.sql +28 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_491e04f8fee4f422.sql +28 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_49b67bcb4099948a.sql +18 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4a2e31075b86a214.sql +23 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4a4bcfeb4d8ff3a4.sql +25 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4b397533b14751be.sql +18 -0
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_021918a0c8242b2a.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_021918a0c8242b2a
|
| 11 |
+
-- problem_id: v2p_c18_4d00fa0d0d6b4a3f
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "region_2",
|
| 15 |
+
AVG(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS "condition_rate"
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "region_2"
|
| 18 |
+
ORDER BY "condition_rate" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_056bac9afcbf36a8.sql
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: contrastive_conditional_view
|
| 9 |
+
-- template_id: tpl_m4_group_ratio_two_conditions
|
| 10 |
+
-- query_record_id: v2q_c18_056bac9afcbf36a8
|
| 11 |
+
-- problem_id: v2p_c18_9d74d3d056a81a5a
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "taster_twitter_handle",
|
| 16 |
+
SUM(CASE WHEN "country" = 'US' THEN 1 ELSE 0 END) AS numerator_count,
|
| 17 |
+
SUM(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS denominator_count
|
| 18 |
+
FROM "c18"
|
| 19 |
+
GROUP BY "taster_twitter_handle"
|
| 20 |
+
)
|
| 21 |
+
SELECT "taster_twitter_handle",
|
| 22 |
+
CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio
|
| 23 |
+
FROM grouped
|
| 24 |
+
ORDER BY condition_ratio DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0707b540125b7c00.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_c18_0707b540125b7c00
|
| 11 |
+
-- problem_id: v2p_c18_311345f9ad92e2df
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"points",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "c18"
|
| 18 |
+
GROUP BY "points"
|
| 19 |
+
ORDER BY support ASC, "points"
|
| 20 |
+
LIMIT 15;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_077cedc38a75291f.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: co_missingness_pattern_consistency
|
| 7 |
+
-- intended_facet_id: missing_rate_by_subgroup
|
| 8 |
+
-- variant_semantic_role: missing_rate_by_subgroup
|
| 9 |
+
-- template_id: tpl_missing_rate_by_subgroup
|
| 10 |
+
-- query_record_id: v2q_c18_077cedc38a75291f
|
| 11 |
+
-- problem_id: v2p_c18_8afeafcde403a2dc
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"taster_twitter_handle",
|
| 16 |
+
COUNT(*) AS total_rows,
|
| 17 |
+
SUM(CASE WHEN "region_1" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 18 |
+
AVG(CASE WHEN "region_1" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "taster_twitter_handle"
|
| 21 |
+
ORDER BY missing_rate DESC, total_rows DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_085778c98281b6b1.sql
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_m4_quantile_tail_slice
|
| 10 |
+
-- query_record_id: v2q_c18_085778c98281b6b1
|
| 11 |
+
-- problem_id: v2p_c18_53a1ffdaa405c85c
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "buckets" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"row_id",
|
| 17 |
+
NTILE(10) OVER (ORDER BY CAST("row_id" AS INTEGER) DESC) AS "tail_bucket"
|
| 18 |
+
FROM "c18"
|
| 19 |
+
WHERE "row_id" IS NOT NULL AND TRIM("row_id") <> ''
|
| 20 |
+
)
|
| 21 |
+
SELECT "row_id"
|
| 22 |
+
FROM "buckets"
|
| 23 |
+
WHERE "tail_bucket" = 1
|
| 24 |
+
ORDER BY CAST("row_id" AS INTEGER) DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_09343ebf8928b7de.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: subgroup_size_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_clickbench_group_count
|
| 10 |
+
-- query_record_id: v2q_c18_09343ebf8928b7de
|
| 11 |
+
-- problem_id: v2p_c18_a5c339c39b45b591
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "region_2", COUNT(*) AS "row_count"
|
| 15 |
+
FROM "c18"
|
| 16 |
+
GROUP BY "region_2"
|
| 17 |
+
ORDER BY "row_count" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0a33ccd0c47907a7.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_c18_0a33ccd0c47907a7
|
| 11 |
+
-- problem_id: v2p_c18_f8248670a7e06e89
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "base" AS (
|
| 15 |
+
SELECT CAST("price" AS REAL) AS "price_value"
|
| 16 |
+
FROM "c18"
|
| 17 |
+
WHERE NULLIF("price", '') IS NOT NULL
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
"price_value" AS "price",
|
| 21 |
+
"price_value" AS "percentile_measure"
|
| 22 |
+
FROM "base"
|
| 23 |
+
GROUP BY "price_value"
|
| 24 |
+
HAVING COUNT(*) >= 5
|
| 25 |
+
ORDER BY "percentile_measure" DESC
|
| 26 |
+
LIMIT 16;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0d91f8cc08721aeb.sql
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_c18_0d91f8cc08721aeb
|
| 11 |
+
-- problem_id: v2p_c18_e6814c93f293aa2d
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"price" AS "group_col",
|
| 16 |
+
"price" AS "item_col",
|
| 17 |
+
SUM(CAST("price" AS REAL)) AS total_measure,
|
| 18 |
+
SUM(CAST("price" AS REAL)) * 100.0 / SUM(SUM(CAST("price" AS REAL))) OVER (PARTITION BY "price") AS share_within_group
|
| 19 |
+
FROM "c18"
|
| 20 |
+
WHERE "price" IS NOT NULL AND "price" <> ''
|
| 21 |
+
GROUP BY "price", "price"
|
| 22 |
+
ORDER BY share_within_group DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0e4fadc743aa552b.sql
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_c18_0e4fadc743aa552b
|
| 11 |
+
-- problem_id: v2p_c18_afc083a8ac5206d7
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"region_2",
|
| 17 |
+
SUM(CAST(NULLIF("price", '') AS REAL)) AS group_value
|
| 18 |
+
FROM "c18"
|
| 19 |
+
WHERE NULLIF("region_2", '') IS NOT NULL
|
| 20 |
+
AND NULLIF("price", '') IS NOT NULL
|
| 21 |
+
GROUP BY "region_2"
|
| 22 |
+
),
|
| 23 |
+
total AS (
|
| 24 |
+
SELECT SUM(group_value) AS total_value
|
| 25 |
+
FROM grouped
|
| 26 |
+
)
|
| 27 |
+
SELECT g."region_2", g.group_value
|
| 28 |
+
FROM grouped AS g
|
| 29 |
+
CROSS JOIN total AS t
|
| 30 |
+
WHERE g.group_value > t.total_value * 0.1
|
| 31 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0fcb845c56d53364.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: value_imbalance_profile
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_cardinality_support_rank_profile
|
| 10 |
+
-- query_record_id: v2q_c18_0fcb845c56d53364
|
| 11 |
+
-- problem_id: v2p_c18_bffec6e6dbe9d6fc
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "price" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "price"
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank
|
| 24 |
+
FROM grouped
|
| 25 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_0feb0823d6441783.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: support_concentration
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_cardinality_support_rank_profile
|
| 10 |
+
-- query_record_id: v2q_c18_0feb0823d6441783
|
| 11 |
+
-- problem_id: v2p_c18_ed49fb527ac46186
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "points" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "points"
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank
|
| 24 |
+
FROM grouped
|
| 25 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_124c52fc49fe8c54.sql
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_c18_124c52fc49fe8c54
|
| 11 |
+
-- problem_id: v2p_c18_a24a15e1b6b95dbf
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"taster_twitter_handle",
|
| 16 |
+
"title",
|
| 17 |
+
SUM(CAST("price" AS REAL)) AS total_measure,
|
| 18 |
+
SUM(CAST("price" AS REAL)) * 100.0 / SUM(SUM(CAST("price" AS REAL))) OVER (PARTITION BY "taster_twitter_handle") AS share_within_group
|
| 19 |
+
FROM "c18"
|
| 20 |
+
WHERE TRIM(COALESCE("price", '')) <> ''
|
| 21 |
+
AND TRIM(COALESCE("taster_twitter_handle", '')) <> ''
|
| 22 |
+
AND TRIM(COALESCE("title", '')) <> ''
|
| 23 |
+
AND "taster_twitter_handle" IN (
|
| 24 |
+
SELECT "taster_twitter_handle"
|
| 25 |
+
FROM "c18"
|
| 26 |
+
WHERE TRIM(COALESCE("price", '')) <> ''
|
| 27 |
+
AND TRIM(COALESCE("taster_twitter_handle", '')) <> ''
|
| 28 |
+
GROUP BY "taster_twitter_handle"
|
| 29 |
+
HAVING COUNT(*) >= 5
|
| 30 |
+
)
|
| 31 |
+
GROUP BY "taster_twitter_handle", "title"
|
| 32 |
+
ORDER BY share_within_group DESC
|
| 33 |
+
LIMIT 14;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13a51e8a6f551f6f.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_13a51e8a6f551f6f
|
| 11 |
+
-- problem_id: v2p_c18_f19dad343354ab9b
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "price",
|
| 15 |
+
AVG(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS condition_rate
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "price"
|
| 18 |
+
ORDER BY condition_rate DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13aa0ee42942e03a.sql
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_threshold_rarity_cdf
|
| 10 |
+
-- query_record_id: v2q_c18_13aa0ee42942e03a
|
| 11 |
+
-- problem_id: v2p_c18_19f86c354339c142
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT AVG(CASE WHEN CAST(NULLIF("points", '') AS REAL) <= 90.0 THEN 1.0 WHEN NULLIF("points", '') IS NOT NULL THEN 0.0 END) AS "empirical_cdf_at_threshold"
|
| 15 |
+
FROM "c18";
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_13c27cc4977f1c67.sql
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_threshold_rarity_cdf
|
| 10 |
+
-- query_record_id: v2q_c18_13c27cc4977f1c67
|
| 11 |
+
-- problem_id: v2p_c18_953af992ff2457d2
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT AVG(CASE WHEN CAST("row_id" AS REAL) <= 56702.0 THEN 1 ELSE 0 END) AS "empirical_cdf_at_threshold"
|
| 15 |
+
FROM "c18";
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_17c8e5a48e44d941.sql
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_threshold_rarity_cdf
|
| 10 |
+
-- query_record_id: v2q_c18_17c8e5a48e44d941
|
| 11 |
+
-- problem_id: v2p_c18_fc0197c6a565dabd
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT AVG(CASE WHEN CAST(NULLIF("points", '') AS REAL) <= 90.0 THEN 1 ELSE 0 END) AS "empirical_cdf_at_threshold"
|
| 15 |
+
FROM "c18"
|
| 16 |
+
WHERE NULLIF("points", '') IS NOT NULL;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_17d255c051ff9d5a.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: marginal_missing_rate_consistency
|
| 7 |
+
-- intended_facet_id: missing_indicator_distribution
|
| 8 |
+
-- variant_semantic_role: missing_indicator_view
|
| 9 |
+
-- template_id: tpl_missing_marginal_rate_profile
|
| 10 |
+
-- query_record_id: v2q_c18_17d255c051ff9d5a
|
| 11 |
+
-- problem_id: v2p_c18_81447b9260940995
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
COUNT(*) AS total_rows,
|
| 16 |
+
SUM(CASE WHEN "designation" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 17 |
+
AVG(CASE WHEN "designation" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 18 |
+
FROM "c18";
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_1df1fa8001d15852.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_c18_1df1fa8001d15852
|
| 11 |
+
-- problem_id: v2p_c18_8b2a240831b3f701
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"points",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "c18"
|
| 18 |
+
GROUP BY "points"
|
| 19 |
+
ORDER BY support ASC, "points"
|
| 20 |
+
LIMIT 15;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_1f610802f615ad79.sql
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_c18_1f610802f615ad79
|
| 11 |
+
-- problem_id: v2p_c18_7df35846d3ce4db6
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "ranked" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"points",
|
| 17 |
+
CAST("row_id" AS REAL) AS "measure_value",
|
| 18 |
+
ROW_NUMBER() OVER (
|
| 19 |
+
PARTITION BY "points"
|
| 20 |
+
ORDER BY CAST("row_id" AS REAL)
|
| 21 |
+
) AS "rn",
|
| 22 |
+
COUNT(*) OVER (
|
| 23 |
+
PARTITION BY "points"
|
| 24 |
+
) AS "cnt"
|
| 25 |
+
FROM "c18"
|
| 26 |
+
WHERE "points" IS NOT NULL
|
| 27 |
+
AND "points" <> ''
|
| 28 |
+
AND "row_id" IS NOT NULL
|
| 29 |
+
AND "row_id" <> ''
|
| 30 |
+
),
|
| 31 |
+
"percentile_pos" AS (
|
| 32 |
+
SELECT DISTINCT
|
| 33 |
+
"points",
|
| 34 |
+
"cnt",
|
| 35 |
+
1.0 + 0.95 * ("cnt" - 1) AS "pos",
|
| 36 |
+
CAST(1.0 + 0.95 * ("cnt" - 1) AS INTEGER) AS "lower_rn",
|
| 37 |
+
CASE
|
| 38 |
+
WHEN (1.0 + 0.95 * ("cnt" - 1)) = CAST(1.0 + 0.95 * ("cnt" - 1) AS INTEGER)
|
| 39 |
+
THEN CAST(1.0 + 0.95 * ("cnt" - 1) AS INTEGER)
|
| 40 |
+
ELSE CAST(1.0 + 0.95 * ("cnt" - 1) AS INTEGER) + 1
|
| 41 |
+
END AS "upper_rn"
|
| 42 |
+
FROM "ranked"
|
| 43 |
+
),
|
| 44 |
+
"picked" AS (
|
| 45 |
+
SELECT
|
| 46 |
+
p."points",
|
| 47 |
+
p."pos",
|
| 48 |
+
p."lower_rn",
|
| 49 |
+
p."upper_rn",
|
| 50 |
+
l."measure_value" AS "lower_value",
|
| 51 |
+
u."measure_value" AS "upper_value"
|
| 52 |
+
FROM "percentile_pos" AS p
|
| 53 |
+
JOIN "ranked" AS l
|
| 54 |
+
ON l."points" = p."points"
|
| 55 |
+
AND l."rn" = p."lower_rn"
|
| 56 |
+
JOIN "ranked" AS u
|
| 57 |
+
ON u."points" = p."points"
|
| 58 |
+
AND u."rn" = p."upper_rn"
|
| 59 |
+
)
|
| 60 |
+
SELECT
|
| 61 |
+
"points",
|
| 62 |
+
CASE
|
| 63 |
+
WHEN "lower_rn" = "upper_rn" THEN "lower_value"
|
| 64 |
+
ELSE "lower_value" + ("pos" - "lower_rn") * ("upper_value" - "lower_value")
|
| 65 |
+
END AS "percentile_measure"
|
| 66 |
+
FROM "picked"
|
| 67 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_21337b4693eb9f15.sql
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_c18_21337b4693eb9f15
|
| 11 |
+
-- problem_id: v2p_c18_f25b44cc6f2d8c00
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "taster_name", SUM(CAST(NULLIF("points", '') AS REAL)) AS group_value
|
| 16 |
+
FROM "c18"
|
| 17 |
+
WHERE "taster_name" IS NOT NULL
|
| 18 |
+
AND "taster_name" <> ''
|
| 19 |
+
AND NULLIF("points", '') IS NOT NULL
|
| 20 |
+
GROUP BY "taster_name"
|
| 21 |
+
), total AS (
|
| 22 |
+
SELECT SUM(group_value) AS total_value
|
| 23 |
+
FROM grouped
|
| 24 |
+
)
|
| 25 |
+
SELECT g."taster_name", g.group_value
|
| 26 |
+
FROM grouped AS g
|
| 27 |
+
CROSS JOIN total AS t
|
| 28 |
+
WHERE g.group_value > t.total_value * 0.05
|
| 29 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_21e55bbec45592e6.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_c18_21e55bbec45592e6
|
| 11 |
+
-- problem_id: v2p_c18_85691015d0c88cc3
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"variety",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("points") AS avg_response
|
| 18 |
+
FROM "c18"
|
| 19 |
+
GROUP BY "variety"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2723e213a362c232.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: contrastive_conditional_view
|
| 9 |
+
-- template_id: tpl_m4_group_ratio_two_conditions
|
| 10 |
+
-- query_record_id: v2q_c18_2723e213a362c232
|
| 11 |
+
-- problem_id: v2p_c18_0047288c81a16233
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "price",
|
| 16 |
+
SUM(CASE WHEN "country" = 'US' THEN 1 ELSE 0 END) AS numerator_count,
|
| 17 |
+
SUM(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS denominator_count
|
| 18 |
+
FROM "c18"
|
| 19 |
+
GROUP BY "price"
|
| 20 |
+
)
|
| 21 |
+
SELECT "price",
|
| 22 |
+
CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio
|
| 23 |
+
FROM grouped
|
| 24 |
+
ORDER BY condition_ratio DESC
|
| 25 |
+
LIMIT 11;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2977ee1d720153ac.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: co_missingness_pattern_consistency
|
| 7 |
+
-- intended_facet_id: missing_target_interaction
|
| 8 |
+
-- variant_semantic_role: missing_target_interaction
|
| 9 |
+
-- template_id: tpl_missing_target_interaction
|
| 10 |
+
-- query_record_id: v2q_c18_2977ee1d720153ac
|
| 11 |
+
-- problem_id: v2p_c18_a7829831bb7c9fe3
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"country",
|
| 16 |
+
COUNT(*) AS total_rows,
|
| 17 |
+
SUM(CASE WHEN "taster_twitter_handle" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 18 |
+
AVG(CASE WHEN "taster_twitter_handle" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "country"
|
| 21 |
+
ORDER BY missing_rate DESC, total_rows DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2a1fb37114f09263.sql
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_c18_2a1fb37114f09263
|
| 11 |
+
-- problem_id: v2p_c18_dc2c7410c7b8b19b
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "points", COUNT("row_id") AS group_value
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "points"
|
| 18 |
+
), total AS (
|
| 19 |
+
SELECT SUM(group_value) AS total_value
|
| 20 |
+
FROM grouped
|
| 21 |
+
)
|
| 22 |
+
SELECT g."points", g.group_value
|
| 23 |
+
FROM grouped AS g
|
| 24 |
+
CROSS JOIN total AS t
|
| 25 |
+
WHERE g.group_value > t.total_value * 0.05
|
| 26 |
+
ORDER BY g.group_value DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2b010d565056dfd7.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_c2_filtered_group_count_2d
|
| 10 |
+
-- query_record_id: v2q_c18_2b010d565056dfd7
|
| 11 |
+
-- problem_id: v2p_c18_9769af23403f0d5d
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "points", "price", COUNT(*) AS row_count
|
| 15 |
+
FROM "c18"
|
| 16 |
+
WHERE CAST(NULLIF("points", '') AS REAL) >= 90.0
|
| 17 |
+
GROUP BY "points", "price"
|
| 18 |
+
ORDER BY row_count DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2fd1649e44595caf.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: subgroup_size_stability
|
| 7 |
+
-- intended_facet_id: subgroup_distribution_shift
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_clickbench_group_count
|
| 10 |
+
-- query_record_id: v2q_c18_2fd1649e44595caf
|
| 11 |
+
-- problem_id: v2p_c18_884cf943288904ff
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "taster_twitter_handle", COUNT(*) AS "row_count"
|
| 15 |
+
FROM "c18"
|
| 16 |
+
GROUP BY "taster_twitter_handle"
|
| 17 |
+
ORDER BY "row_count" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_2ff4b4112dbaa79f.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_2ff4b4112dbaa79f
|
| 11 |
+
-- problem_id: v2p_c18_2bc222afcf375f81
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "taster_name",
|
| 15 |
+
AVG(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS condition_rate
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "taster_name"
|
| 18 |
+
ORDER BY condition_rate DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3286bdc178110b30.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_c18_3286bdc178110b30
|
| 11 |
+
-- problem_id: v2p_c18_c3fc04db919d6a88
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"title",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("points") AS avg_response
|
| 18 |
+
FROM "c18"
|
| 19 |
+
GROUP BY "title"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_33cbab867103da4f.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: co_missingness_pattern_consistency
|
| 7 |
+
-- intended_facet_id: missing_rate_by_subgroup
|
| 8 |
+
-- variant_semantic_role: missing_rate_by_subgroup
|
| 9 |
+
-- template_id: tpl_missing_rate_by_subgroup
|
| 10 |
+
-- query_record_id: v2q_c18_33cbab867103da4f
|
| 11 |
+
-- problem_id: v2p_c18_187e8e8d51f44559
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"price",
|
| 16 |
+
COUNT(*) AS total_rows,
|
| 17 |
+
SUM(CASE WHEN "region_1" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 18 |
+
AVG(CASE WHEN "region_1" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "price"
|
| 21 |
+
ORDER BY missing_rate DESC, total_rows DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_34c0efc254435e99.sql
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_concentration_consistency
|
| 7 |
+
-- intended_facet_id: rare_target_concentration
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_grouped_percentile_point
|
| 10 |
+
-- query_record_id: v2q_c18_34c0efc254435e99
|
| 11 |
+
-- problem_id: v2p_c18_8d3d70803b56a9d8
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "base" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"region_2",
|
| 17 |
+
CAST("row_id" AS REAL) AS "measure"
|
| 18 |
+
FROM "c18"
|
| 19 |
+
WHERE "region_2" IS NOT NULL
|
| 20 |
+
AND "region_2" <> ''
|
| 21 |
+
AND "row_id" IS NOT NULL
|
| 22 |
+
AND "row_id" <> ''
|
| 23 |
+
),
|
| 24 |
+
"ranked" AS (
|
| 25 |
+
SELECT
|
| 26 |
+
"region_2",
|
| 27 |
+
"measure",
|
| 28 |
+
ROW_NUMBER() OVER (PARTITION BY "region_2" ORDER BY "measure") AS "rn",
|
| 29 |
+
COUNT(*) OVER (PARTITION BY "region_2") AS "cnt"
|
| 30 |
+
FROM "base"
|
| 31 |
+
),
|
| 32 |
+
"params" AS (
|
| 33 |
+
SELECT DISTINCT
|
| 34 |
+
"region_2",
|
| 35 |
+
"cnt",
|
| 36 |
+
(1.0 + 0.9 * ("cnt" - 1)) AS "pos",
|
| 37 |
+
CAST((1.0 + 0.9 * ("cnt" - 1)) AS INT) AS "lower_rn",
|
| 38 |
+
CAST((1.0 + 0.9 * ("cnt" - 1)) AS INT) + CASE
|
| 39 |
+
WHEN (1.0 + 0.9 * ("cnt" - 1)) > CAST((1.0 + 0.9 * ("cnt" - 1)) AS INT) THEN 1
|
| 40 |
+
ELSE 0
|
| 41 |
+
END AS "upper_rn"
|
| 42 |
+
FROM "ranked"
|
| 43 |
+
WHERE "cnt" >= 5
|
| 44 |
+
)
|
| 45 |
+
SELECT
|
| 46 |
+
p."region_2",
|
| 47 |
+
CASE
|
| 48 |
+
WHEN p."lower_rn" = p."upper_rn" THEN MAX(CASE WHEN r."rn" = p."lower_rn" THEN r."measure" END)
|
| 49 |
+
ELSE MAX(CASE WHEN r."rn" = p."lower_rn" THEN r."measure" END)
|
| 50 |
+
+ (p."pos" - p."lower_rn")
|
| 51 |
+
* (
|
| 52 |
+
MAX(CASE WHEN r."rn" = p."upper_rn" THEN r."measure" END)
|
| 53 |
+
- MAX(CASE WHEN r."rn" = p."lower_rn" THEN r."measure" END)
|
| 54 |
+
)
|
| 55 |
+
END AS "percentile_measure"
|
| 56 |
+
FROM "params" AS p
|
| 57 |
+
JOIN "ranked" AS r
|
| 58 |
+
ON r."region_2" = p."region_2"
|
| 59 |
+
GROUP BY
|
| 60 |
+
p."region_2",
|
| 61 |
+
p."cnt",
|
| 62 |
+
p."pos",
|
| 63 |
+
p."lower_rn",
|
| 64 |
+
p."upper_rn"
|
| 65 |
+
ORDER BY "percentile_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_39d2d76d5d851157.sql
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_m4_window_partition_avg
|
| 10 |
+
-- query_record_id: v2q_c18_39d2d76d5d851157
|
| 11 |
+
-- problem_id: v2p_c18_d765669c1b6b8b8c
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT DISTINCT
|
| 15 |
+
"price",
|
| 16 |
+
AVG(CAST("points" AS REAL)) OVER (PARTITION BY "price") AS avg_measure
|
| 17 |
+
FROM "c18"
|
| 18 |
+
WHERE "price" IS NOT NULL
|
| 19 |
+
AND "price" <> ''
|
| 20 |
+
AND "points" IS NOT NULL
|
| 21 |
+
AND "points" <> ''
|
| 22 |
+
ORDER BY avg_measure DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3a97704c0a2c0ebc.sql
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: contrastive_conditional_view
|
| 9 |
+
-- template_id: tpl_m4_group_ratio_two_conditions
|
| 10 |
+
-- query_record_id: v2q_c18_3a97704c0a2c0ebc
|
| 11 |
+
-- problem_id: v2p_c18_f8668f1ca169e9c1
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"region_2",
|
| 17 |
+
SUM(CASE WHEN "country" = 'US' THEN 1 ELSE 0 END) AS numerator_count,
|
| 18 |
+
SUM(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS denominator_count
|
| 19 |
+
FROM "c18"
|
| 20 |
+
WHERE "region_2" IS NOT NULL AND "region_2" <> ''
|
| 21 |
+
GROUP BY "region_2"
|
| 22 |
+
)
|
| 23 |
+
SELECT
|
| 24 |
+
"region_2",
|
| 25 |
+
CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio
|
| 26 |
+
FROM grouped
|
| 27 |
+
WHERE denominator_count >= 5
|
| 28 |
+
ORDER BY condition_ratio DESC
|
| 29 |
+
LIMIT 12;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3aba8fbcd891761d.sql
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: rare_extreme_view
|
| 9 |
+
-- template_id: tpl_m4_quantile_tail_slice
|
| 10 |
+
-- query_record_id: v2q_c18_3aba8fbcd891761d
|
| 11 |
+
-- problem_id: v2p_c18_7ec4c996f2a56b18
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "buckets" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
CAST("points" AS REAL) AS "points",
|
| 17 |
+
NTILE(10) OVER (ORDER BY CAST("points" AS REAL) DESC) AS "tail_bucket"
|
| 18 |
+
FROM "c18"
|
| 19 |
+
WHERE "points" IS NOT NULL AND "points" <> ""
|
| 20 |
+
)
|
| 21 |
+
SELECT "points"
|
| 22 |
+
FROM "buckets"
|
| 23 |
+
WHERE "tail_bucket" = 1
|
| 24 |
+
ORDER BY "points" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3b98eefd1e5bb298.sql
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_set_consistency
|
| 7 |
+
-- intended_facet_id: low_support_extremes
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_tail_low_support_group_count_v2
|
| 10 |
+
-- query_record_id: v2q_c18_3b98eefd1e5bb298
|
| 11 |
+
-- problem_id: v2p_c18_96bf32d7f402acd6
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"taster_twitter_handle",
|
| 16 |
+
COUNT(*) AS support
|
| 17 |
+
FROM "c18"
|
| 18 |
+
GROUP BY "taster_twitter_handle"
|
| 19 |
+
ORDER BY support ASC, "taster_twitter_handle"
|
| 20 |
+
LIMIT 19;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3bbcbffb2768fe5d.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_3bbcbffb2768fe5d
|
| 11 |
+
-- problem_id: v2p_c18_76aaa91d77c53997
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "taster_twitter_handle",
|
| 15 |
+
AVG(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS condition_rate
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "taster_twitter_handle"
|
| 18 |
+
ORDER BY condition_rate DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3c0ff000c65daf7a.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: co_missingness_pattern_consistency
|
| 7 |
+
-- intended_facet_id: missing_rate_by_subgroup
|
| 8 |
+
-- variant_semantic_role: missing_rate_by_subgroup
|
| 9 |
+
-- template_id: tpl_missing_rate_by_subgroup
|
| 10 |
+
-- query_record_id: v2q_c18_3c0ff000c65daf7a
|
| 11 |
+
-- problem_id: v2p_c18_54393c12f1e50a01
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"points",
|
| 16 |
+
COUNT(*) AS total_rows,
|
| 17 |
+
SUM(CASE WHEN "price" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 18 |
+
AVG(CASE WHEN "price" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "points"
|
| 21 |
+
ORDER BY missing_rate DESC, total_rows DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3ceeba8e3df6283c.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: subgroup_structure
|
| 6 |
+
-- canonical_subitem_id: internal_profile_stability
|
| 7 |
+
-- intended_facet_id: subgroup_rank_order
|
| 8 |
+
-- variant_semantic_role: collapsed_target_view
|
| 9 |
+
-- template_id: tpl_h2o_group_sum
|
| 10 |
+
-- query_record_id: v2q_c18_3ceeba8e3df6283c
|
| 11 |
+
-- problem_id: v2p_c18_2c147a4b4a5e6d59
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "taster_name", SUM(CAST("row_id" AS NUMERIC)) AS "total_measure"
|
| 15 |
+
FROM "c18"
|
| 16 |
+
GROUP BY "taster_name"
|
| 17 |
+
ORDER BY "total_measure" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3e91873b089aebd4.sql
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: tail_rarity_structure
|
| 6 |
+
-- canonical_subitem_id: tail_mass_similarity
|
| 7 |
+
-- intended_facet_id: tail_ranked_signal
|
| 8 |
+
-- variant_semantic_role: filtered_stable_view
|
| 9 |
+
-- template_id: tpl_tpch_relative_total_threshold
|
| 10 |
+
-- query_record_id: v2q_c18_3e91873b089aebd4
|
| 11 |
+
-- problem_id: v2p_c18_42f3b81e5a2c8217
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
WITH "filtered" AS (
|
| 15 |
+
SELECT
|
| 16 |
+
"points",
|
| 17 |
+
CAST(NULLIF("row_id", '') AS REAL) AS "row_id_num"
|
| 18 |
+
FROM "c18"
|
| 19 |
+
WHERE NULLIF("points", '') IS NOT NULL
|
| 20 |
+
AND NULLIF("row_id", '') IS NOT NULL
|
| 21 |
+
),
|
| 22 |
+
"grouped" AS (
|
| 23 |
+
SELECT
|
| 24 |
+
"points",
|
| 25 |
+
SUM("row_id_num") AS "group_value"
|
| 26 |
+
FROM "filtered"
|
| 27 |
+
GROUP BY "points"
|
| 28 |
+
),
|
| 29 |
+
"total" AS (
|
| 30 |
+
SELECT SUM("group_value") AS "total_value"
|
| 31 |
+
FROM "grouped"
|
| 32 |
+
)
|
| 33 |
+
SELECT
|
| 34 |
+
g."points",
|
| 35 |
+
g."group_value"
|
| 36 |
+
FROM "grouped" AS g
|
| 37 |
+
CROSS JOIN "total" AS t
|
| 38 |
+
WHERE g."group_value" > t."total_value" * 0.1
|
| 39 |
+
ORDER BY g."group_value" DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_3f06e9565005dd35.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: dependency_strength_similarity
|
| 7 |
+
-- intended_facet_id: pairwise_conditional_dependency
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_tpcds_within_group_share
|
| 10 |
+
-- query_record_id: v2q_c18_3f06e9565005dd35
|
| 11 |
+
-- problem_id: v2p_c18_a4b1cd09aaf06d57
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"points",
|
| 16 |
+
"variety",
|
| 17 |
+
SUM(CAST("row_id" AS REAL)) AS total_measure,
|
| 18 |
+
SUM(CAST("row_id" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST("row_id" AS REAL))) OVER (PARTITION BY "points"), 0) AS share_within_group
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "points", "variety"
|
| 21 |
+
ORDER BY share_within_group DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_40b02b0fef51d6e2.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: marginal_missing_rate_consistency
|
| 7 |
+
-- intended_facet_id: missing_indicator_distribution
|
| 8 |
+
-- variant_semantic_role: missing_indicator_view
|
| 9 |
+
-- template_id: tpl_missing_marginal_rate_profile
|
| 10 |
+
-- query_record_id: v2q_c18_40b02b0fef51d6e2
|
| 11 |
+
-- problem_id: v2p_c18_23205a0b870713c7
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
COUNT(*) AS total_rows,
|
| 16 |
+
SUM(CASE WHEN "region_1" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 17 |
+
AVG(CASE WHEN "region_1" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 18 |
+
FROM "c18";
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4173ae3af301c2bc.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: high_cardinality_response_stability
|
| 7 |
+
-- intended_facet_id: target_cardinality_cross_section
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_cardinality_high_card_response_stability
|
| 10 |
+
-- query_record_id: v2q_c18_4173ae3af301c2bc
|
| 11 |
+
-- problem_id: v2p_c18_c3870e9ea7a8a48f
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"province",
|
| 16 |
+
COUNT(*) AS support,
|
| 17 |
+
AVG("price") AS avg_response
|
| 18 |
+
FROM "c18"
|
| 19 |
+
GROUP BY "province"
|
| 20 |
+
HAVING COUNT(*) >= 5.0
|
| 21 |
+
ORDER BY support DESC, avg_response DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_45c17ddd428b4775.sql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: co_missingness_pattern_consistency
|
| 7 |
+
-- intended_facet_id: missing_target_interaction
|
| 8 |
+
-- variant_semantic_role: missing_target_interaction
|
| 9 |
+
-- template_id: tpl_missing_target_interaction
|
| 10 |
+
-- query_record_id: v2q_c18_45c17ddd428b4775
|
| 11 |
+
-- problem_id: v2p_c18_9c5d6be1c9ad33a5
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
"country",
|
| 16 |
+
COUNT(*) AS total_rows,
|
| 17 |
+
SUM(CASE WHEN "price" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 18 |
+
AVG(CASE WHEN "price" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 19 |
+
FROM "c18"
|
| 20 |
+
GROUP BY "country"
|
| 21 |
+
ORDER BY missing_rate DESC, total_rows DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_471a3e04406ad4c1.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: support_concentration
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_cardinality_support_rank_profile
|
| 10 |
+
-- query_record_id: v2q_c18_471a3e04406ad4c1
|
| 11 |
+
-- problem_id: v2p_c18_6b9a559765c83223
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "region_2" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "region_2"
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank
|
| 24 |
+
FROM grouped
|
| 25 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_47f9147387d93970.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: slice_level_consistency
|
| 7 |
+
-- intended_facet_id: conditional_interaction_hotspots
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_c2_filtered_group_count_2d
|
| 10 |
+
-- query_record_id: v2q_c18_47f9147387d93970
|
| 11 |
+
-- problem_id: v2p_c18_f9e524c188cf5518
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "taster_name", "taster_twitter_handle", COUNT(*) AS row_count
|
| 15 |
+
FROM "c18"
|
| 16 |
+
WHERE "country" = 'Chile'
|
| 17 |
+
GROUP BY "taster_name", "taster_twitter_handle"
|
| 18 |
+
ORDER BY row_count DESC;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_47fe1c8ab8593146.sql
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: value_imbalance_profile
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_cardinality_distinct_share_profile
|
| 10 |
+
-- query_record_id: v2q_c18_47fe1c8ab8593146
|
| 11 |
+
-- problem_id: v2p_c18_b2a15a2d1608f065
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "taster_name" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "taster_name"
|
| 18 |
+
), ranked AS (
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
|
| 24 |
+
FROM grouped
|
| 25 |
+
)
|
| 26 |
+
SELECT *
|
| 27 |
+
FROM ranked
|
| 28 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_491e04f8fee4f422.sql
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: support_concentration
|
| 8 |
+
-- variant_semantic_role: ranked_signal_view
|
| 9 |
+
-- template_id: tpl_cardinality_distinct_share_profile
|
| 10 |
+
-- query_record_id: v2q_c18_491e04f8fee4f422
|
| 11 |
+
-- problem_id: v2p_c18_68c74f6f8cb79206
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "taster_twitter_handle" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "taster_twitter_handle"
|
| 18 |
+
), ranked AS (
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
SUM(support) OVER (ORDER BY support DESC, value_label ROWS UNBOUNDED PRECEDING) AS cumulative_support
|
| 24 |
+
FROM grouped
|
| 25 |
+
)
|
| 26 |
+
SELECT *
|
| 27 |
+
FROM ranked
|
| 28 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_49b67bcb4099948a.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: missingness_structure
|
| 6 |
+
-- canonical_subitem_id: marginal_missing_rate_consistency
|
| 7 |
+
-- intended_facet_id: missing_indicator_distribution
|
| 8 |
+
-- variant_semantic_role: missing_indicator_view
|
| 9 |
+
-- template_id: tpl_missing_marginal_rate_profile
|
| 10 |
+
-- query_record_id: v2q_c18_49b67bcb4099948a
|
| 11 |
+
-- problem_id: v2p_c18_87575aafb368ba64
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
SELECT
|
| 15 |
+
COUNT(*) AS total_rows,
|
| 16 |
+
SUM(CASE WHEN "taster_name" IS NULL THEN 1 ELSE 0 END) AS missing_rows,
|
| 17 |
+
AVG(CASE WHEN "taster_name" IS NULL THEN 1.0 ELSE 0.0 END) AS missing_rate
|
| 18 |
+
FROM "c18";
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4a2e31075b86a214.sql
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: focused_target_view
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_4a2e31075b86a214
|
| 11 |
+
-- problem_id: v2p_c18_c84bbe15e7b5dc50
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT
|
| 15 |
+
"taster_twitter_handle",
|
| 16 |
+
AVG(CASE WHEN "country" = 'US' THEN 1.0 ELSE 0.0 END) AS "condition_rate"
|
| 17 |
+
FROM "c18"
|
| 18 |
+
WHERE "taster_twitter_handle" IS NOT NULL
|
| 19 |
+
AND "taster_twitter_handle" <> ''
|
| 20 |
+
GROUP BY "taster_twitter_handle"
|
| 21 |
+
HAVING COUNT(*) >= 5
|
| 22 |
+
ORDER BY "condition_rate" DESC, "taster_twitter_handle" ASC
|
| 23 |
+
LIMIT 14;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4a4bcfeb4d8ff3a4.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: cardinality_structure
|
| 6 |
+
-- canonical_subitem_id: support_rank_profile_consistency
|
| 7 |
+
-- intended_facet_id: support_concentration
|
| 8 |
+
-- variant_semantic_role: count_distribution
|
| 9 |
+
-- template_id: tpl_cardinality_support_rank_profile
|
| 10 |
+
-- query_record_id: v2q_c18_4a4bcfeb4d8ff3a4
|
| 11 |
+
-- problem_id: v2p_c18_d269e48a6e1d0950
|
| 12 |
+
-- realization_mode: deterministic
|
| 13 |
+
-- source_kind: deterministic
|
| 14 |
+
WITH grouped AS (
|
| 15 |
+
SELECT "taster_twitter_handle" AS value_label, COUNT(*) AS support
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "taster_twitter_handle"
|
| 18 |
+
)
|
| 19 |
+
SELECT
|
| 20 |
+
value_label,
|
| 21 |
+
support,
|
| 22 |
+
CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,
|
| 23 |
+
ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank
|
| 24 |
+
FROM grouped
|
| 25 |
+
ORDER BY support DESC, value_label;
|
Query/sql/v2/runs/v2_cli_20260502_081223_d/c18/sql/v2q_c18_4b397533b14751be.sql
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-- sql_source_version: v2
|
| 2 |
+
-- sql_source_label: v2_current
|
| 3 |
+
-- sql_source_run_id: v2_cli_20260502_081223_d
|
| 4 |
+
-- sql_source_dataset_id: c18
|
| 5 |
+
-- family_id: conditional_dependency_structure
|
| 6 |
+
-- canonical_subitem_id: direction_consistency
|
| 7 |
+
-- intended_facet_id: conditional_rate_shift
|
| 8 |
+
-- variant_semantic_role: within_group_proportion
|
| 9 |
+
-- template_id: tpl_m4_group_condition_rate
|
| 10 |
+
-- query_record_id: v2q_c18_4b397533b14751be
|
| 11 |
+
-- problem_id: v2p_c18_aa6969c6e90af7ea
|
| 12 |
+
-- realization_mode: agent
|
| 13 |
+
-- source_kind: agent
|
| 14 |
+
SELECT "region_2",
|
| 15 |
+
AVG(CASE WHEN "country" = 'Portugal' THEN 1 ELSE 0 END) AS "condition_rate"
|
| 16 |
+
FROM "c18"
|
| 17 |
+
GROUP BY "region_2"
|
| 18 |
+
ORDER BY "condition_rate" DESC;
|