TabQueryBench commited on
Commit
ecf1eea
·
verified ·
1 Parent(s): c6cbf9a

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/conversation.jsonl +2 -0
  2. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/session_summary.json +25 -0
  3. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_attempt_1.metadata.json +45 -0
  4. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_prompt_attempt_1.txt +790 -0
  5. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_response_attempt_1.raw.txt +9 -0
  6. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_response_attempt_1.txt +1 -0
  7. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_stderr_attempt_1.txt +0 -0
  8. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_attempt_1.metadata.json +43 -0
  9. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_attempt_2.metadata.json +43 -0
  10. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_prompt_attempt_1.txt +790 -0
  11. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_prompt_attempt_2.txt +790 -0
  12. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_1.raw.txt +4 -0
  13. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_1.txt +4 -0
  14. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_2.raw.txt +4 -0
  15. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_2.txt +4 -0
  16. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_stderr_attempt_1.txt +0 -0
  17. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_stderr_attempt_2.txt +0 -0
  18. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/run_manifest.json +67 -0
  19. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/trace.jsonl +2 -0
  20. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/conversation.jsonl +4 -0
  21. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/session_summary.json +25 -0
  22. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_attempt_1.metadata.json +43 -0
  23. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_attempt_2.metadata.json +45 -0
  24. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_prompt_attempt_1.txt +792 -0
  25. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_prompt_attempt_2.txt +792 -0
  26. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_1.raw.txt +4 -0
  27. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_1.txt +4 -0
  28. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_2.raw.txt +4 -0
  29. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_2.txt +1 -0
  30. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_stderr_attempt_1.txt +0 -0
  31. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_stderr_attempt_2.txt +0 -0
  32. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/final_answer.txt +2 -0
  33. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/generated_sql.sql +18 -0
  34. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/query_results.jsonl +1 -0
  35. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/run_manifest.json +89 -0
  36. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/trace.jsonl +1 -0
  37. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/usage_summary.json +20 -0
  38. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/final_answer.txt +2 -0
  39. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/generated_sql.sql +19 -0
  40. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/query_results.jsonl +1 -0
  41. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/run_manifest.json +89 -0
  42. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/trace.jsonl +1 -0
  43. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/usage_summary.json +20 -0
  44. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/conversation.jsonl +2 -0
  45. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/session_summary.json +25 -0
  46. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_attempt_1.metadata.json +45 -0
  47. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_prompt_attempt_1.txt +794 -0
  48. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_response_attempt_1.raw.txt +6 -0
  49. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_response_attempt_1.txt +1 -0
  50. Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_stderr_attempt_1.txt +0 -0
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/conversation.jsonl ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 29253, "bytes_utf8": 29253, "lines": 790, "estimated_tokens": null}}
2
+ {"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 237, "bytes_utf8": 237, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 20286, "cached_input_tokens": 19840, "output_tokens": 220, "reasoning_output_tokens": 154}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/session_summary.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "v2-cli:codex",
3
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
4
+ "ai_cli_calls": 1,
5
+ "usage_summary": {
6
+ "dataset_id": "n1",
7
+ "model": "v2-cli:codex",
8
+ "run_id": "v2q_n1_01bf1c58a49bee59",
9
+ "api_calls": 0,
10
+ "input_tokens": 20286,
11
+ "cached_input_tokens": 19840,
12
+ "output_tokens": 220,
13
+ "total_tokens": 20506,
14
+ "cost_usd": 0.0,
15
+ "ai_cli_calls": 1,
16
+ "estimated_input_tokens": 0,
17
+ "estimated_output_tokens": 0,
18
+ "estimated_total_tokens": 0,
19
+ "usage_source": "ai_cli_json_usage",
20
+ "cli_elapsed_ms_total": 26288.86,
21
+ "sql_execution_elapsed_ms_total": 2.48,
22
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/conversation.jsonl",
23
+ "note": "Executed through a local AI CLI with structured usage metadata."
24
+ }
25
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_attempt_1.metadata.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 1,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T15:33:11.419557+00:00",
6
+ "ended_at": "2026-05-19T15:33:37.708461+00:00",
7
+ "elapsed_ms": 26288.86,
8
+ "prompt_metrics": {
9
+ "chars": 29253,
10
+ "bytes_utf8": 29253,
11
+ "lines": 790,
12
+ "estimated_tokens": null
13
+ },
14
+ "stdout_metrics": {
15
+ "chars": 2248,
16
+ "bytes_utf8": 2248,
17
+ "lines": 9,
18
+ "estimated_tokens": null
19
+ },
20
+ "stderr_metrics": {
21
+ "chars": 0,
22
+ "bytes_utf8": 0,
23
+ "lines": 0,
24
+ "estimated_tokens": null
25
+ },
26
+ "parsed_output": {
27
+ "format": "jsonl_events",
28
+ "text_metrics": {
29
+ "chars": 237,
30
+ "bytes_utf8": 237,
31
+ "lines": 1,
32
+ "estimated_tokens": null
33
+ },
34
+ "usage": {
35
+ "input_tokens": 20286,
36
+ "cached_input_tokens": 19840,
37
+ "output_tokens": 220,
38
+ "reasoning_output_tokens": 154
39
+ }
40
+ },
41
+ "prompt_path": "cli/sql_prompt_attempt_1.txt",
42
+ "response_path": "cli/sql_response_attempt_1.txt",
43
+ "raw_response_path": "cli/sql_response_attempt_1.raw.txt",
44
+ "stderr_path": "cli/sql_stderr_attempt_1.txt"
45
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_prompt_attempt_1.txt ADDED
@@ -0,0 +1,790 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_clickbench_group_count",
748
+ "template_name": "Grouped Count by Category",
749
+ "primary_family": "subgroup_structure",
750
+ "portability": "yes",
751
+ "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;",
752
+ "required_roles": [
753
+ "group_col"
754
+ ]
755
+ }
756
+ ]
757
+
758
+ Problem instance:
759
+ {
760
+ "dataset_id": "n1",
761
+ "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=class.",
762
+ "planned_template_id": "tpl_clickbench_group_count",
763
+ "bindings": {
764
+ "group_col": "class",
765
+ "top_k": 12,
766
+ "top_n": 4,
767
+ "num_tiles": 10,
768
+ "percentile_value": 0.9,
769
+ "z_threshold": 2.0,
770
+ "fraction_threshold": 0.1,
771
+ "baseline_multiplier": 1.5,
772
+ "baseline_fraction": 0.1,
773
+ "min_group_size": 5,
774
+ "min_support": 5,
775
+ "measure_threshold": 0.0,
776
+ "time_grain": "month",
777
+ "lookback_rows": 3,
778
+ "current_period_start": "'2024-01-01'",
779
+ "current_period_end": "'2024-04-01'",
780
+ "previous_period_start": "'2023-10-01'",
781
+ "previous_period_end": "'2024-01-01'",
782
+ "drift_ratio_threshold": 0.8
783
+ },
784
+ "can_vary": [],
785
+ "must_fix": [],
786
+ "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;"
787
+ }
788
+
789
+ Repair context:
790
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_response_attempt_1.raw.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40de-9d8c-7c12-9ecd-04623ca51b1d"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 20921. Please try again in 627ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
4
+ {"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1997605, Requested 20921. Please try again in 555ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
5
+ {"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 20921. Please try again in 627ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
6
+ {"type":"error","message":"Reconnecting... 5/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 20921. Please try again in 627ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
7
+ {"type":"error","message":"Reconnecting... 1/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1990463, Requested 20921. Please try again in 341ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
8
+ {"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"class\\\", COUNT(*) AS row_count\\nFROM \\\"n1\\\"\\nGROUP BY \\\"class\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Counts rows for each value of \\\"class\\\" to inspect the class distribution.\"}"}}
9
+ {"type":"turn.completed","usage":{"input_tokens":20286,"cached_input_tokens":19840,"output_tokens":220,"reasoning_output_tokens":154}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_response_attempt_1.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"class\", COUNT(*) AS row_count\nFROM \"n1\"\nGROUP BY \"class\"\nORDER BY row_count DESC;","notes":"Counts rows for each value of \"class\" to inspect the class distribution."}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_01bf1c58a49bee59/cli/sql_stderr_attempt_1.txt ADDED
File without changes
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_attempt_1.metadata.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 1,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T16:01:30.469248+00:00",
6
+ "ended_at": "2026-05-19T16:01:33.417284+00:00",
7
+ "elapsed_ms": 2948.01,
8
+ "returncode": 1,
9
+ "prompt_metrics": {
10
+ "chars": 29304,
11
+ "bytes_utf8": 29304,
12
+ "lines": 790,
13
+ "estimated_tokens": null
14
+ },
15
+ "stdout_metrics": {
16
+ "chars": 281,
17
+ "bytes_utf8": 281,
18
+ "lines": 4,
19
+ "estimated_tokens": null
20
+ },
21
+ "stderr_metrics": {
22
+ "chars": 0,
23
+ "bytes_utf8": 0,
24
+ "lines": 0,
25
+ "estimated_tokens": null
26
+ },
27
+ "parsed_output": {
28
+ "format": "jsonl_events",
29
+ "text_metrics": {
30
+ "chars": 280,
31
+ "bytes_utf8": 280,
32
+ "lines": 4,
33
+ "estimated_tokens": null
34
+ },
35
+ "usage": {}
36
+ },
37
+ "status": "failed",
38
+ "error": "AI CLI command failed with exit code 1: ",
39
+ "prompt_path": "cli/sql_prompt_attempt_1.txt",
40
+ "response_path": "cli/sql_response_attempt_1.txt",
41
+ "raw_response_path": "cli/sql_response_attempt_1.raw.txt",
42
+ "stderr_path": "cli/sql_stderr_attempt_1.txt"
43
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_attempt_2.metadata.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 2,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T16:01:34.420466+00:00",
6
+ "ended_at": "2026-05-19T16:01:37.616337+00:00",
7
+ "elapsed_ms": 3195.82,
8
+ "returncode": 1,
9
+ "prompt_metrics": {
10
+ "chars": 29304,
11
+ "bytes_utf8": 29304,
12
+ "lines": 790,
13
+ "estimated_tokens": null
14
+ },
15
+ "stdout_metrics": {
16
+ "chars": 281,
17
+ "bytes_utf8": 281,
18
+ "lines": 4,
19
+ "estimated_tokens": null
20
+ },
21
+ "stderr_metrics": {
22
+ "chars": 0,
23
+ "bytes_utf8": 0,
24
+ "lines": 0,
25
+ "estimated_tokens": null
26
+ },
27
+ "parsed_output": {
28
+ "format": "jsonl_events",
29
+ "text_metrics": {
30
+ "chars": 280,
31
+ "bytes_utf8": 280,
32
+ "lines": 4,
33
+ "estimated_tokens": null
34
+ },
35
+ "usage": {}
36
+ },
37
+ "status": "failed",
38
+ "error": "AI CLI command failed with exit code 1: ",
39
+ "prompt_path": "cli/sql_prompt_attempt_2.txt",
40
+ "response_path": "cli/sql_response_attempt_2.txt",
41
+ "raw_response_path": "cli/sql_response_attempt_2.raw.txt",
42
+ "stderr_path": "cli/sql_stderr_attempt_2.txt"
43
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_prompt_attempt_1.txt ADDED
@@ -0,0 +1,790 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_threshold_rarity_cdf",
748
+ "template_name": "Threshold Rarity CDF",
749
+ "primary_family": "tail_rarity_structure",
750
+ "portability": "yes",
751
+ "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};",
752
+ "required_roles": [
753
+ "measure_col"
754
+ ]
755
+ }
756
+ ]
757
+
758
+ Problem instance:
759
+ {
760
+ "dataset_id": "n1",
761
+ "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=word_freq_address.",
762
+ "planned_template_id": "tpl_threshold_rarity_cdf",
763
+ "bindings": {
764
+ "measure_col": "word_freq_address",
765
+ "top_k": 10,
766
+ "top_n": 6,
767
+ "num_tiles": 10,
768
+ "percentile_value": 0.9,
769
+ "z_threshold": 2.0,
770
+ "fraction_threshold": 0.1,
771
+ "baseline_multiplier": 1.5,
772
+ "baseline_fraction": 0.1,
773
+ "min_group_size": 5,
774
+ "min_support": 5,
775
+ "measure_threshold": 0.0,
776
+ "time_grain": "month",
777
+ "lookback_rows": 3,
778
+ "current_period_start": "'2024-01-01'",
779
+ "current_period_end": "'2024-04-01'",
780
+ "previous_period_start": "'2023-10-01'",
781
+ "previous_period_end": "'2024-01-01'",
782
+ "drift_ratio_threshold": 0.8
783
+ },
784
+ "can_vary": [],
785
+ "must_fix": [],
786
+ "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};"
787
+ }
788
+
789
+ Repair context:
790
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_prompt_attempt_2.txt ADDED
@@ -0,0 +1,790 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_threshold_rarity_cdf",
748
+ "template_name": "Threshold Rarity CDF",
749
+ "primary_family": "tail_rarity_structure",
750
+ "portability": "yes",
751
+ "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};",
752
+ "required_roles": [
753
+ "measure_col"
754
+ ]
755
+ }
756
+ ]
757
+
758
+ Problem instance:
759
+ {
760
+ "dataset_id": "n1",
761
+ "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=word_freq_address.",
762
+ "planned_template_id": "tpl_threshold_rarity_cdf",
763
+ "bindings": {
764
+ "measure_col": "word_freq_address",
765
+ "top_k": 10,
766
+ "top_n": 6,
767
+ "num_tiles": 10,
768
+ "percentile_value": 0.9,
769
+ "z_threshold": 2.0,
770
+ "fraction_threshold": 0.1,
771
+ "baseline_multiplier": 1.5,
772
+ "baseline_fraction": 0.1,
773
+ "min_group_size": 5,
774
+ "min_support": 5,
775
+ "measure_threshold": 0.0,
776
+ "time_grain": "month",
777
+ "lookback_rows": 3,
778
+ "current_period_start": "'2024-01-01'",
779
+ "current_period_end": "'2024-04-01'",
780
+ "previous_period_start": "'2023-10-01'",
781
+ "previous_period_end": "'2024-01-01'",
782
+ "drift_ratio_threshold": 0.8
783
+ },
784
+ "can_vary": [],
785
+ "must_fix": [],
786
+ "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};"
787
+ }
788
+
789
+ Repair context:
790
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_1.raw.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40f8-8a61-75f3-92fd-c0829756a48e"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_1.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40f8-8a61-75f3-92fd-c0829756a48e"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_2.raw.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40f8-99d2-75b1-a421-a886202b5193"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_response_attempt_2.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40f8-99d2-75b1-a421-a886202b5193"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_stderr_attempt_1.txt ADDED
File without changes
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/cli/sql_stderr_attempt_2.txt ADDED
File without changes
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/run_manifest.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "v2_cli_20260502_081223_d",
3
+ "dataset_id": "n1",
4
+ "started_at": "2026-05-19T16:01:30.467285+00:00",
5
+ "ended_at": "2026-05-19T16:01:37.617251+00:00",
6
+ "status": "failed",
7
+ "engine": "cli",
8
+ "question_record": {
9
+ "query_record_id": "v2q_n1_03957dab4b318bed",
10
+ "problem_id": "v2p_n1_e25e5b5ae21d3cf2",
11
+ "dataset_id": "n1",
12
+ "template_id": "tpl_threshold_rarity_cdf",
13
+ "template_name": "Threshold Rarity CDF",
14
+ "family_id": "tail_rarity_structure",
15
+ "canonical_subitem_id": "tail_set_consistency",
16
+ "intended_facet_id": "low_support_extremes",
17
+ "variant_semantic_role": "rare_extreme_view",
18
+ "subitem_assignment_source": "planner_selected",
19
+ "source_kind": "agent",
20
+ "realization_mode": "agent",
21
+ "gate_priority": "primary",
22
+ "extended_family": false,
23
+ "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=word_freq_address.",
24
+ "bindings": {
25
+ "measure_col": "word_freq_address",
26
+ "top_k": 10,
27
+ "top_n": 6,
28
+ "num_tiles": 10,
29
+ "percentile_value": 0.9,
30
+ "z_threshold": 2.0,
31
+ "fraction_threshold": 0.1,
32
+ "baseline_multiplier": 1.5,
33
+ "baseline_fraction": 0.1,
34
+ "min_group_size": 5,
35
+ "min_support": 5,
36
+ "measure_threshold": 0.0,
37
+ "time_grain": "month",
38
+ "lookback_rows": 3,
39
+ "current_period_start": "'2024-01-01'",
40
+ "current_period_end": "'2024-04-01'",
41
+ "previous_period_start": "'2023-10-01'",
42
+ "previous_period_end": "'2024-01-01'",
43
+ "drift_ratio_threshold": 0.8
44
+ },
45
+ "binding_roles": [
46
+ "measure_col"
47
+ ],
48
+ "coverage_target_min": "5",
49
+ "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};",
50
+ "notes": [
51
+ "default_facets=low_support_extremes",
52
+ "template_selection_mode=rule",
53
+ "problem_index_within_template=8",
54
+ "sql_variant_index=1/1",
55
+ "binding_index=115"
56
+ ],
57
+ "template_selection_mode": "rule",
58
+ "selected_template_rank": 10,
59
+ "problem_index_within_template": 8,
60
+ "sql_variant_index": 1,
61
+ "sql_variant_total": 1
62
+ },
63
+ "mode": "subitem_workload_v2",
64
+ "sql_source_version": "v2",
65
+ "sql_source_label": "v2_current",
66
+ "error": "AI CLI command failed with exit code 1: "
67
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_03957dab4b318bed/trace.jsonl ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {"timestamp": "2026-05-19T16:01:33.418088+00:00", "event_type": "ai_cli_sql_generation_error", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 1, "elapsed_ms": 2948.01, "started_at": "2026-05-19T16:01:30.469248+00:00", "ended_at": "2026-05-19T16:01:33.417284+00:00", "prompt_metrics": {"chars": 29304, "bytes_utf8": 29304, "lines": 790, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40f8-8a61-75f3-92fd-c0829756a48e\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
2
+ {"timestamp": "2026-05-19T16:01:37.617154+00:00", "event_type": "ai_cli_sql_generation_error", "engine": "v2-cli:codex", "attempt": 2, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 1, "elapsed_ms": 3195.82, "started_at": "2026-05-19T16:01:34.420466+00:00", "ended_at": "2026-05-19T16:01:37.616337+00:00", "prompt_metrics": {"chars": 29304, "bytes_utf8": 29304, "lines": 790, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40f8-99d2-75b1-a421-a886202b5193\"}\n{\"type\":\"turn.started\"}\n{\"type\":\"error\",\"message\":\"Quota exceeded. Check your plan and billing details.\"}\n{\"type\":\"turn.failed\",\"error\":{\"message\":\"Quota exceeded. Check your plan and billing details.\"}}", "error": "AI CLI command failed with exit code 1: "}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/conversation.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 29525, "bytes_utf8": 29525, "lines": 792, "estimated_tokens": null}}
2
+ {"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "}
3
+ {"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 29525, "bytes_utf8": 29525, "lines": 792, "estimated_tokens": null}}
4
+ {"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 450, "bytes_utf8": 450, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 20359, "cached_input_tokens": 12032, "output_tokens": 329, "reasoning_output_tokens": 207}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/session_summary.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "v2-cli:codex",
3
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
4
+ "ai_cli_calls": 2,
5
+ "usage_summary": {
6
+ "dataset_id": "n1",
7
+ "model": "v2-cli:codex",
8
+ "run_id": "v2q_n1_05786dfc8dc90728",
9
+ "api_calls": 0,
10
+ "input_tokens": 20359,
11
+ "cached_input_tokens": 12032,
12
+ "output_tokens": 329,
13
+ "total_tokens": 20688,
14
+ "cost_usd": 0.0,
15
+ "ai_cli_calls": 2,
16
+ "estimated_input_tokens": 0,
17
+ "estimated_output_tokens": 0,
18
+ "estimated_total_tokens": 0,
19
+ "usage_source": "ai_cli_json_usage",
20
+ "cli_elapsed_ms_total": 11670.96,
21
+ "sql_execution_elapsed_ms_total": 7.25,
22
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/conversation.jsonl",
23
+ "note": "Executed through a local AI CLI with structured usage metadata."
24
+ }
25
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_attempt_1.metadata.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 1,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T16:04:51.033297+00:00",
6
+ "ended_at": "2026-05-19T16:04:53.995292+00:00",
7
+ "elapsed_ms": 2961.97,
8
+ "returncode": 1,
9
+ "prompt_metrics": {
10
+ "chars": 29525,
11
+ "bytes_utf8": 29525,
12
+ "lines": 792,
13
+ "estimated_tokens": null
14
+ },
15
+ "stdout_metrics": {
16
+ "chars": 281,
17
+ "bytes_utf8": 281,
18
+ "lines": 4,
19
+ "estimated_tokens": null
20
+ },
21
+ "stderr_metrics": {
22
+ "chars": 0,
23
+ "bytes_utf8": 0,
24
+ "lines": 0,
25
+ "estimated_tokens": null
26
+ },
27
+ "parsed_output": {
28
+ "format": "jsonl_events",
29
+ "text_metrics": {
30
+ "chars": 280,
31
+ "bytes_utf8": 280,
32
+ "lines": 4,
33
+ "estimated_tokens": null
34
+ },
35
+ "usage": {}
36
+ },
37
+ "status": "failed",
38
+ "error": "AI CLI command failed with exit code 1: ",
39
+ "prompt_path": "cli/sql_prompt_attempt_1.txt",
40
+ "response_path": "cli/sql_response_attempt_1.txt",
41
+ "raw_response_path": "cli/sql_response_attempt_1.raw.txt",
42
+ "stderr_path": "cli/sql_stderr_attempt_1.txt"
43
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_attempt_2.metadata.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 2,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T16:04:54.997365+00:00",
6
+ "ended_at": "2026-05-19T16:05:03.706403+00:00",
7
+ "elapsed_ms": 8708.99,
8
+ "prompt_metrics": {
9
+ "chars": 29525,
10
+ "bytes_utf8": 29525,
11
+ "lines": 792,
12
+ "estimated_tokens": null
13
+ },
14
+ "stdout_metrics": {
15
+ "chars": 810,
16
+ "bytes_utf8": 810,
17
+ "lines": 4,
18
+ "estimated_tokens": null
19
+ },
20
+ "stderr_metrics": {
21
+ "chars": 0,
22
+ "bytes_utf8": 0,
23
+ "lines": 0,
24
+ "estimated_tokens": null
25
+ },
26
+ "parsed_output": {
27
+ "format": "jsonl_events",
28
+ "text_metrics": {
29
+ "chars": 450,
30
+ "bytes_utf8": 450,
31
+ "lines": 1,
32
+ "estimated_tokens": null
33
+ },
34
+ "usage": {
35
+ "input_tokens": 20359,
36
+ "cached_input_tokens": 12032,
37
+ "output_tokens": 329,
38
+ "reasoning_output_tokens": 207
39
+ }
40
+ },
41
+ "prompt_path": "cli/sql_prompt_attempt_2.txt",
42
+ "response_path": "cli/sql_response_attempt_2.txt",
43
+ "raw_response_path": "cli/sql_response_attempt_2.raw.txt",
44
+ "stderr_path": "cli/sql_stderr_attempt_2.txt"
45
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_prompt_attempt_1.txt ADDED
@@ -0,0 +1,792 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_tpch_thresholded_group_ranking",
748
+ "template_name": "Thresholded Group Ranking",
749
+ "primary_family": "tail_rarity_structure",
750
+ "portability": "partial",
751
+ "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};",
752
+ "required_roles": [
753
+ "group_col",
754
+ "measure_col"
755
+ ]
756
+ }
757
+ ]
758
+
759
+ Problem instance:
760
+ {
761
+ "dataset_id": "n1",
762
+ "question": "Use template Thresholded Group Ranking to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=class, measure_col=word_freq_font.",
763
+ "planned_template_id": "tpl_tpch_thresholded_group_ranking",
764
+ "bindings": {
765
+ "group_col": "class",
766
+ "measure_col": "word_freq_font",
767
+ "top_k": 15,
768
+ "top_n": 7,
769
+ "num_tiles": 10,
770
+ "percentile_value": 0.95,
771
+ "z_threshold": 2.0,
772
+ "fraction_threshold": 0.05,
773
+ "baseline_multiplier": 1.75,
774
+ "baseline_fraction": 0.1,
775
+ "min_group_size": 5,
776
+ "min_support": 4,
777
+ "measure_threshold": 0.0,
778
+ "time_grain": "month",
779
+ "lookback_rows": 3,
780
+ "current_period_start": "'2024-01-01'",
781
+ "current_period_end": "'2024-04-01'",
782
+ "previous_period_start": "'2023-10-01'",
783
+ "previous_period_end": "'2024-01-01'",
784
+ "drift_ratio_threshold": 0.8
785
+ },
786
+ "can_vary": [],
787
+ "must_fix": [],
788
+ "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};"
789
+ }
790
+
791
+ Repair context:
792
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_prompt_attempt_2.txt ADDED
@@ -0,0 +1,792 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_tpch_thresholded_group_ranking",
748
+ "template_name": "Thresholded Group Ranking",
749
+ "primary_family": "tail_rarity_structure",
750
+ "portability": "partial",
751
+ "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};",
752
+ "required_roles": [
753
+ "group_col",
754
+ "measure_col"
755
+ ]
756
+ }
757
+ ]
758
+
759
+ Problem instance:
760
+ {
761
+ "dataset_id": "n1",
762
+ "question": "Use template Thresholded Group Ranking to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=class, measure_col=word_freq_font.",
763
+ "planned_template_id": "tpl_tpch_thresholded_group_ranking",
764
+ "bindings": {
765
+ "group_col": "class",
766
+ "measure_col": "word_freq_font",
767
+ "top_k": 15,
768
+ "top_n": 7,
769
+ "num_tiles": 10,
770
+ "percentile_value": 0.95,
771
+ "z_threshold": 2.0,
772
+ "fraction_threshold": 0.05,
773
+ "baseline_multiplier": 1.75,
774
+ "baseline_fraction": 0.1,
775
+ "min_group_size": 5,
776
+ "min_support": 4,
777
+ "measure_threshold": 0.0,
778
+ "time_grain": "month",
779
+ "lookback_rows": 3,
780
+ "current_period_start": "'2024-01-01'",
781
+ "current_period_end": "'2024-04-01'",
782
+ "previous_period_start": "'2023-10-01'",
783
+ "previous_period_end": "'2024-01-01'",
784
+ "drift_ratio_threshold": 0.8
785
+ },
786
+ "can_vary": [],
787
+ "must_fix": [],
788
+ "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};"
789
+ }
790
+
791
+ Repair context:
792
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_1.raw.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40fb-99fd-7642-b681-b4ddb8fde85a"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_1.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40fb-99fd-7642-b681-b4ddb8fde85a"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Quota exceeded. Check your plan and billing details."}
4
+ {"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_2.raw.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40fb-a979-7543-afd3-3440f83bdb76"}
2
+ {"type":"turn.started"}
3
+ {"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_thresholded_group_ranking\\nSELECT \\\"class\\\", SUM(CAST(\\\"word_freq_font\\\" AS REAL)) AS total_measure\\nFROM \\\"n1\\\"\\nGROUP BY \\\"class\\\"\\nHAVING SUM(CAST(\\\"word_freq_font\\\" AS REAL)) > 0.0\\nORDER BY total_measure DESC\\nLIMIT 15;\",\"notes\":\"Used the required template with group_col=\\\"class\\\" and measure_col=\\\"word_freq_font\\\". CAST to REAL is included because the schema stores these numeric features as TEXT in SQLite.\"}"}}
4
+ {"type":"turn.completed","usage":{"input_tokens":20359,"cached_input_tokens":12032,"output_tokens":329,"reasoning_output_tokens":207}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_response_attempt_2.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"sql":"-- template_id: tpl_tpch_thresholded_group_ranking\nSELECT \"class\", SUM(CAST(\"word_freq_font\" AS REAL)) AS total_measure\nFROM \"n1\"\nGROUP BY \"class\"\nHAVING SUM(CAST(\"word_freq_font\" AS REAL)) > 0.0\nORDER BY total_measure DESC\nLIMIT 15;","notes":"Used the required template with group_col=\"class\" and measure_col=\"word_freq_font\". CAST to REAL is included because the schema stores these numeric features as TEXT in SQLite."}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_stderr_attempt_1.txt ADDED
File without changes
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_05786dfc8dc90728/cli/sql_stderr_attempt_2.txt ADDED
File without changes
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/final_answer.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ SQL executed successfully for: Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=class, measure_col=char_freq_%3B.
2
+ Result preview: [{"class": "0", "avg_measure": 0.050280846484935436}, {"class": "1", "avg_measure": 0.020573083287369003}]
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/generated_sql.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: n1
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_n1_06a5b861b6b26a1c
11
+ -- problem_id: v2p_n1_4f1bfaf50ec0d80a
12
+ -- realization_mode: agent
13
+ -- source_kind: agent
14
+ SELECT DISTINCT
15
+ "class",
16
+ AVG(CAST("char_freq_%3B" AS REAL)) OVER (PARTITION BY "class") AS "avg_measure"
17
+ FROM "n1"
18
+ ORDER BY "avg_measure" DESC;
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/query_results.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_m4_window_partition_avg\nSELECT DISTINCT\n \"class\",\n AVG(CAST(\"char_freq_%3B\" AS REAL)) OVER (PARTITION BY \"class\") AS \"avg_measure\"\nFROM \"n1\"\nORDER BY \"avg_measure\" DESC;", "result": "{\"query\": \"-- template_id: tpl_m4_window_partition_avg\\nSELECT DISTINCT\\n \\\"class\\\",\\n AVG(CAST(\\\"char_freq_%3B\\\" AS REAL)) OVER (PARTITION BY \\\"class\\\") AS \\\"avg_measure\\\"\\nFROM \\\"n1\\\"\\nORDER BY \\\"avg_measure\\\" DESC;\", \"columns\": [\"class\", \"avg_measure\"], \"rows\": [{\"class\": \"0\", \"avg_measure\": 0.050280846484935436}, {\"class\": \"1\", \"avg_measure\": 0.020573083287369003}], \"row_count_returned\": 2, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 8.27}"}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/run_manifest.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "v2_cli_20260502_081223_d",
3
+ "dataset_id": "n1",
4
+ "started_at": "2026-05-19T15:41:15.530686+00:00",
5
+ "ended_at": "2026-05-19T15:41:26.750416+00:00",
6
+ "status": "completed",
7
+ "engine": "cli",
8
+ "question_record": {
9
+ "query_record_id": "v2q_n1_06a5b861b6b26a1c",
10
+ "problem_id": "v2p_n1_4f1bfaf50ec0d80a",
11
+ "dataset_id": "n1",
12
+ "template_id": "tpl_m4_window_partition_avg",
13
+ "template_name": "Window Partition Average",
14
+ "family_id": "conditional_dependency_structure",
15
+ "canonical_subitem_id": "slice_level_consistency",
16
+ "intended_facet_id": "conditional_interaction_hotspots",
17
+ "variant_semantic_role": "filtered_stable_view",
18
+ "subitem_assignment_source": "planner_selected",
19
+ "source_kind": "agent",
20
+ "realization_mode": "agent",
21
+ "gate_priority": "primary",
22
+ "extended_family": false,
23
+ "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=class, measure_col=char_freq_%3B.",
24
+ "bindings": {
25
+ "group_col": "class",
26
+ "measure_col": "char_freq_%3B",
27
+ "top_k": 13,
28
+ "top_n": 3,
29
+ "num_tiles": 10,
30
+ "percentile_value": 0.95,
31
+ "z_threshold": 2.0,
32
+ "fraction_threshold": 0.1,
33
+ "baseline_multiplier": 1.5,
34
+ "baseline_fraction": 0.1,
35
+ "min_group_size": 5,
36
+ "min_support": 5,
37
+ "measure_threshold": 0.0,
38
+ "time_grain": "month",
39
+ "lookback_rows": 3,
40
+ "current_period_start": "'2024-01-01'",
41
+ "current_period_end": "'2024-04-01'",
42
+ "previous_period_start": "'2023-10-01'",
43
+ "previous_period_end": "'2024-01-01'",
44
+ "drift_ratio_threshold": 0.8
45
+ },
46
+ "binding_roles": [
47
+ "group_col",
48
+ "measure_col"
49
+ ],
50
+ "coverage_target_min": "5",
51
+ "runtime_sql_skeleton": "SELECT DISTINCT {group_col},\n AVG({measure_col}) OVER (PARTITION BY {group_col}) AS avg_measure\nFROM {table}\nORDER BY avg_measure DESC;",
52
+ "notes": [
53
+ "default_facets=conditional_interaction_hotspots",
54
+ "template_selection_mode=rule",
55
+ "problem_index_within_template=1",
56
+ "sql_variant_index=1/2",
57
+ "binding_index=48"
58
+ ],
59
+ "template_selection_mode": "rule",
60
+ "selected_template_rank": 5,
61
+ "problem_index_within_template": 1,
62
+ "sql_variant_index": 1,
63
+ "sql_variant_total": 2
64
+ },
65
+ "mode": "subitem_workload_v2",
66
+ "sql_source_version": "v2",
67
+ "sql_source_label": "v2_current",
68
+ "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/sql/v2q_n1_06a5b861b6b26a1c.sql",
69
+ "usage_summary": {
70
+ "dataset_id": "n1",
71
+ "model": "v2-cli:codex",
72
+ "run_id": "v2q_n1_06a5b861b6b26a1c",
73
+ "api_calls": 0,
74
+ "input_tokens": 20331,
75
+ "cached_input_tokens": 19840,
76
+ "output_tokens": 505,
77
+ "total_tokens": 20836,
78
+ "cost_usd": 0.0,
79
+ "ai_cli_calls": 1,
80
+ "estimated_input_tokens": 0,
81
+ "estimated_output_tokens": 0,
82
+ "estimated_total_tokens": 0,
83
+ "usage_source": "ai_cli_json_usage",
84
+ "cli_elapsed_ms_total": 11207.34,
85
+ "sql_execution_elapsed_ms_total": 8.27,
86
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/cli/conversation.jsonl",
87
+ "note": "Executed through a local AI CLI with structured usage metadata."
88
+ }
89
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/trace.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"timestamp": "2026-05-19T15:41:26.740799+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 11207.34, "started_at": "2026-05-19T15:41:15.532632+00:00", "ended_at": "2026-05-19T15:41:26.740024+00:00", "prompt_metrics": {"chars": 29440, "bytes_utf8": 29440, "lines": 792, "estimated_tokens": null}, "response_metrics": {"chars": 430, "bytes_utf8": 430, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 20331, "cached_input_tokens": 19840, "output_tokens": 505, "reasoning_output_tokens": 390}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_m4_window_partition_avg\\nSELECT DISTINCT\\n \\\"class\\\",\\n AVG(CAST(\\\"char_freq_%3B\\\" AS REAL)) OVER (PARTITION BY \\\"class\\\") AS \\\"avg_measure\\\"\\nFROM \\\"n1\\\"\\nORDER BY \\\"avg_measure\\\" DESC;\",\"notes\":\"Uses the planned Window Partition Average template with group_col=\\\"class\\\" and measure_col=\\\"char_freq_%3B\\\". CAST to REAL is added because the schema snapshot shows the measure column stored as TEXT.\"}"}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/usage_summary.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "n1",
3
+ "model": "v2-cli:codex",
4
+ "run_id": "v2q_n1_06a5b861b6b26a1c",
5
+ "api_calls": 0,
6
+ "input_tokens": 20331,
7
+ "cached_input_tokens": 19840,
8
+ "output_tokens": 505,
9
+ "total_tokens": 20836,
10
+ "cost_usd": 0.0,
11
+ "ai_cli_calls": 1,
12
+ "estimated_input_tokens": 0,
13
+ "estimated_output_tokens": 0,
14
+ "estimated_total_tokens": 0,
15
+ "usage_source": "ai_cli_json_usage",
16
+ "cli_elapsed_ms_total": 11207.34,
17
+ "sql_execution_elapsed_ms_total": 8.27,
18
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06a5b861b6b26a1c/cli/conversation.jsonl",
19
+ "note": "Executed through a local AI CLI with structured usage metadata."
20
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/final_answer.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ SQL executed successfully for: Use template Thresholded Group Ranking to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=class, measure_col=word_freq_you.
2
+ Result preview: [{"class": "1", "total_measure": 4105.61}, {"class": "0", "total_measure": 3541.71}]
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/generated_sql.sql ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: n1
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_tpch_thresholded_group_ranking
10
+ -- query_record_id: v2q_n1_06f410de776111c5
11
+ -- problem_id: v2p_n1_8b35fa14b920400b
12
+ -- realization_mode: agent
13
+ -- source_kind: agent
14
+ SELECT "class", SUM(CAST("word_freq_you" AS REAL)) AS total_measure
15
+ FROM "n1"
16
+ GROUP BY "class"
17
+ HAVING SUM(CAST("word_freq_you" AS REAL)) > 2.64
18
+ ORDER BY total_measure DESC
19
+ LIMIT 12;
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/query_results.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_tpch_thresholded_group_ranking\nSELECT \"class\", SUM(CAST(\"word_freq_you\" AS REAL)) AS total_measure\nFROM \"n1\"\nGROUP BY \"class\"\nHAVING SUM(CAST(\"word_freq_you\" AS REAL)) > 2.64\nORDER BY total_measure DESC\nLIMIT 12;", "result": "{\"query\": \"-- template_id: tpl_tpch_thresholded_group_ranking\\nSELECT \\\"class\\\", SUM(CAST(\\\"word_freq_you\\\" AS REAL)) AS total_measure\\nFROM \\\"n1\\\"\\nGROUP BY \\\"class\\\"\\nHAVING SUM(CAST(\\\"word_freq_you\\\" AS REAL)) > 2.64\\nORDER BY total_measure DESC\\nLIMIT 12;\", \"columns\": [\"class\", \"total_measure\"], \"rows\": [{\"class\": \"1\", \"total_measure\": 4105.61}, {\"class\": \"0\", \"total_measure\": 3541.71}], \"row_count_returned\": 2, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 3.25}"}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/run_manifest.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "v2_cli_20260502_081223_d",
3
+ "dataset_id": "n1",
4
+ "started_at": "2026-05-19T16:03:47.788513+00:00",
5
+ "ended_at": "2026-05-19T16:03:59.776060+00:00",
6
+ "status": "completed",
7
+ "engine": "cli",
8
+ "question_record": {
9
+ "query_record_id": "v2q_n1_06f410de776111c5",
10
+ "problem_id": "v2p_n1_8b35fa14b920400b",
11
+ "dataset_id": "n1",
12
+ "template_id": "tpl_tpch_thresholded_group_ranking",
13
+ "template_name": "Thresholded Group Ranking",
14
+ "family_id": "tail_rarity_structure",
15
+ "canonical_subitem_id": "tail_set_consistency",
16
+ "intended_facet_id": "low_support_extremes",
17
+ "variant_semantic_role": "rare_extreme_view",
18
+ "subitem_assignment_source": "planner_selected",
19
+ "source_kind": "agent",
20
+ "realization_mode": "agent",
21
+ "gate_priority": "primary",
22
+ "extended_family": false,
23
+ "question": "Use template Thresholded Group Ranking to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=class, measure_col=word_freq_you.",
24
+ "bindings": {
25
+ "group_col": "class",
26
+ "measure_col": "word_freq_you",
27
+ "top_k": 12,
28
+ "top_n": 3,
29
+ "num_tiles": 10,
30
+ "percentile_value": 0.95,
31
+ "z_threshold": 2.0,
32
+ "fraction_threshold": 0.1,
33
+ "baseline_multiplier": 1.5,
34
+ "baseline_fraction": 0.1,
35
+ "min_group_size": 5,
36
+ "min_support": 5,
37
+ "measure_threshold": 2.64,
38
+ "time_grain": "month",
39
+ "lookback_rows": 3,
40
+ "current_period_start": "'2024-01-01'",
41
+ "current_period_end": "'2024-04-01'",
42
+ "previous_period_start": "'2023-10-01'",
43
+ "previous_period_end": "'2024-01-01'",
44
+ "drift_ratio_threshold": 0.8
45
+ },
46
+ "binding_roles": [
47
+ "group_col",
48
+ "measure_col"
49
+ ],
50
+ "coverage_target_min": "5",
51
+ "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nHAVING SUM({measure_col}) > {measure_threshold}\nORDER BY total_measure DESC\nLIMIT {top_k};",
52
+ "notes": [
53
+ "default_facets=low_support_extremes",
54
+ "template_selection_mode=rule",
55
+ "problem_index_within_template=1",
56
+ "sql_variant_index=1/2",
57
+ "binding_index=132"
58
+ ],
59
+ "template_selection_mode": "rule",
60
+ "selected_template_rank": 12,
61
+ "problem_index_within_template": 1,
62
+ "sql_variant_index": 1,
63
+ "sql_variant_total": 2
64
+ },
65
+ "mode": "subitem_workload_v2",
66
+ "sql_source_version": "v2",
67
+ "sql_source_label": "v2_current",
68
+ "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/sql/v2q_n1_06f410de776111c5.sql",
69
+ "usage_summary": {
70
+ "dataset_id": "n1",
71
+ "model": "v2-cli:codex",
72
+ "run_id": "v2q_n1_06f410de776111c5",
73
+ "api_calls": 0,
74
+ "input_tokens": 20360,
75
+ "cached_input_tokens": 12032,
76
+ "output_tokens": 544,
77
+ "total_tokens": 20904,
78
+ "cost_usd": 0.0,
79
+ "ai_cli_calls": 1,
80
+ "estimated_input_tokens": 0,
81
+ "estimated_output_tokens": 0,
82
+ "estimated_total_tokens": 0,
83
+ "usage_source": "ai_cli_json_usage",
84
+ "cli_elapsed_ms_total": 11979.35,
85
+ "sql_execution_elapsed_ms_total": 3.25,
86
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/cli/conversation.jsonl",
87
+ "note": "Executed through a local AI CLI with structured usage metadata."
88
+ }
89
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/trace.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"timestamp": "2026-05-19T16:03:59.771043+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 11979.35, "started_at": "2026-05-19T16:03:47.790570+00:00", "ended_at": "2026-05-19T16:03:59.769951+00:00", "prompt_metrics": {"chars": 29522, "bytes_utf8": 29522, "lines": 792, "estimated_tokens": null}, "response_metrics": {"chars": 470, "bytes_utf8": 470, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 20360, "cached_input_tokens": 12032, "output_tokens": 544, "reasoning_output_tokens": 419}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_tpch_thresholded_group_ranking\\nSELECT \\\"class\\\", SUM(CAST(\\\"word_freq_you\\\" AS REAL)) AS total_measure\\nFROM \\\"n1\\\"\\nGROUP BY \\\"class\\\"\\nHAVING SUM(CAST(\\\"word_freq_you\\\" AS REAL)) > 2.64\\nORDER BY total_measure DESC\\nLIMIT 12;\",\"notes\":\"Used the required Thresholded Group Ranking template with group_col=\\\"class\\\" and measure_col=\\\"word_freq_you\\\". CAST to REAL is included because the schema snapshot shows these columns stored as TEXT.\"}"}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/usage_summary.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "n1",
3
+ "model": "v2-cli:codex",
4
+ "run_id": "v2q_n1_06f410de776111c5",
5
+ "api_calls": 0,
6
+ "input_tokens": 20360,
7
+ "cached_input_tokens": 12032,
8
+ "output_tokens": 544,
9
+ "total_tokens": 20904,
10
+ "cost_usd": 0.0,
11
+ "ai_cli_calls": 1,
12
+ "estimated_input_tokens": 0,
13
+ "estimated_output_tokens": 0,
14
+ "estimated_total_tokens": 0,
15
+ "usage_source": "ai_cli_json_usage",
16
+ "cli_elapsed_ms_total": 11979.35,
17
+ "sql_execution_elapsed_ms_total": 3.25,
18
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_06f410de776111c5/cli/conversation.jsonl",
19
+ "note": "Executed through a local AI CLI with structured usage metadata."
20
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/conversation.jsonl ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 29767, "bytes_utf8": 29767, "lines": 794, "estimated_tokens": null}}
2
+ {"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 621, "bytes_utf8": 621, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 20437, "cached_input_tokens": 12032, "output_tokens": 461, "reasoning_output_tokens": 288}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/session_summary.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "v2-cli:codex",
3
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
4
+ "ai_cli_calls": 1,
5
+ "usage_summary": {
6
+ "dataset_id": "n1",
7
+ "model": "v2-cli:codex",
8
+ "run_id": "v2q_n1_0846f22fe82fa8a6",
9
+ "api_calls": 0,
10
+ "input_tokens": 20437,
11
+ "cached_input_tokens": 12032,
12
+ "output_tokens": 461,
13
+ "total_tokens": 20898,
14
+ "cost_usd": 0.0,
15
+ "ai_cli_calls": 1,
16
+ "estimated_input_tokens": 0,
17
+ "estimated_output_tokens": 0,
18
+ "estimated_total_tokens": 0,
19
+ "usage_source": "ai_cli_json_usage",
20
+ "cli_elapsed_ms_total": 18779.78,
21
+ "sql_execution_elapsed_ms_total": 4.41,
22
+ "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/conversation.jsonl",
23
+ "note": "Executed through a local AI CLI with structured usage metadata."
24
+ }
25
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_attempt_1.metadata.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attempt": 1,
3
+ "phase": "sql_generation",
4
+ "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
5
+ "started_at": "2026-05-19T15:34:21.443511+00:00",
6
+ "ended_at": "2026-05-19T15:34:40.223317+00:00",
7
+ "elapsed_ms": 18779.78,
8
+ "prompt_metrics": {
9
+ "chars": 29767,
10
+ "bytes_utf8": 29767,
11
+ "lines": 794,
12
+ "estimated_tokens": null
13
+ },
14
+ "stdout_metrics": {
15
+ "chars": 1667,
16
+ "bytes_utf8": 1667,
17
+ "lines": 6,
18
+ "estimated_tokens": null
19
+ },
20
+ "stderr_metrics": {
21
+ "chars": 0,
22
+ "bytes_utf8": 0,
23
+ "lines": 0,
24
+ "estimated_tokens": null
25
+ },
26
+ "parsed_output": {
27
+ "format": "jsonl_events",
28
+ "text_metrics": {
29
+ "chars": 621,
30
+ "bytes_utf8": 621,
31
+ "lines": 1,
32
+ "estimated_tokens": null
33
+ },
34
+ "usage": {
35
+ "input_tokens": 20437,
36
+ "cached_input_tokens": 12032,
37
+ "output_tokens": 461,
38
+ "reasoning_output_tokens": 288
39
+ }
40
+ },
41
+ "prompt_path": "cli/sql_prompt_attempt_1.txt",
42
+ "response_path": "cli/sql_response_attempt_1.txt",
43
+ "raw_response_path": "cli/sql_response_attempt_1.raw.txt",
44
+ "stderr_path": "cli/sql_stderr_attempt_1.txt"
45
+ }
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_prompt_attempt_1.txt ADDED
@@ -0,0 +1,794 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are generating one SQLite SELECT query for a single-table SQL QA task.
2
+ Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
3
+ Rules:
4
+ - Use only the provided table and columns.
5
+ - Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
6
+ - Prefer the planned template and bound roles when provided.
7
+ - Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
8
+ - Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
9
+ - Quote identifiers with double quotes.
10
+ - Return no markdown and no extra prose.
11
+
12
+ Dataset context:
13
+ Dataset context for SQL QA:
14
+ - dataset_id: n1
15
+ - dataset_name: Spambase
16
+ - table_name: n1
17
+ - table_layout: single-table dataset (do not assume joins).
18
+ - row_semantics: One row is one email represented by engineered token/character frequency and capitalization-run features.
19
+ - task_type: classification
20
+ - target_column: class
21
+ - main_row_count: 4601
22
+ - important_fields:
23
+ - word_freq_make: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'make' in an email message.
24
+ - word_freq_address: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'address' in an email message.
25
+ - word_freq_all: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'all' in an email message.
26
+ - word_freq_3d: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '3d' in an email message.
27
+ - word_freq_our: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'our' in an email message.
28
+ - word_freq_over: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'over' in an email message.
29
+ - word_freq_remove: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'remove' in an email message.
30
+ - word_freq_internet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'internet' in an email message.
31
+ - word_freq_order: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'order' in an email message.
32
+ - word_freq_mail: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'mail' in an email message.
33
+ - word_freq_receive: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'receive' in an email message.
34
+ - word_freq_will: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'will' in an email message.
35
+ - word_freq_people: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'people' in an email message.
36
+ - word_freq_report: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'report' in an email message.
37
+ - word_freq_addresses: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'addresses' in an email message.
38
+ - word_freq_free: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'free' in an email message.
39
+ - word_freq_business: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'business' in an email message.
40
+ - word_freq_email: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'email' in an email message.
41
+ - word_freq_you: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'you' in an email message.
42
+ - word_freq_credit: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'credit' in an email message.
43
+ - word_freq_your: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'your' in an email message.
44
+ - word_freq_font: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'font' in an email message.
45
+ - word_freq_000: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '000' in an email message.
46
+ - word_freq_money: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'money' in an email message.
47
+ - word_freq_hp: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hp' in an email message.
48
+ - word_freq_hpl: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'hpl' in an email message.
49
+ - word_freq_george: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'george' in an email message.
50
+ - word_freq_650: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '650' in an email message.
51
+ - word_freq_lab: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'lab' in an email message.
52
+ - word_freq_labs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'labs' in an email message.
53
+ - word_freq_telnet: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'telnet' in an email message.
54
+ - word_freq_857: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '857' in an email message.
55
+ - word_freq_data: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'data' in an email message.
56
+ - word_freq_415: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '415' in an email message.
57
+ - word_freq_85: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '85' in an email message.
58
+ - word_freq_technology: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'technology' in an email message.
59
+ - word_freq_1999: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token '1999' in an email message.
60
+ - word_freq_parts: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'parts' in an email message.
61
+ - word_freq_pm: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'pm' in an email message.
62
+ - word_freq_direct: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'direct' in an email message.
63
+ - word_freq_cs: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'cs' in an email message.
64
+ - word_freq_meeting: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'meeting' in an email message.
65
+ - word_freq_original: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'original' in an email message.
66
+ - word_freq_project: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'project' in an email message.
67
+ - word_freq_re: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 're' in an email message.
68
+ - word_freq_edu: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'edu' in an email message.
69
+ - word_freq_table: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'table' in an email message.
70
+ - word_freq_conference: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Frequency feature for token 'conference' in an email message.
71
+ - char_freq_%3B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol ';'.
72
+ - char_freq_%28: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '('.
73
+ - char_freq_%5B: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '['.
74
+ - char_freq_%21: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '!'.
75
+ - char_freq_%24: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '$'.
76
+ - char_freq_%23: role=feature, type=numeric_sparse_frequency. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Character frequency feature for symbol '#'.
77
+ - capital_run_length_average: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Average length of uninterrupted capital-letter runs.
78
+ - capital_run_length_longest: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Longest uninterrupted capital-letter run.
79
+ - capital_run_length_total: role=feature, type=numeric_heavy_tail. tags=['condition_candidate', 'measure', 'rare_pattern_candidate'] desc=Total number of capital letters in runs.
80
+ - class: role=target, type=binary_target. tags=['target_candidate'] desc=Binary spam label (1=spam, 0=non-spam).
81
+ - useful_field_combinations: [['word_freq_free', 'word_freq_you', 'class'], ['char_freq_%21', 'capital_run_length_longest', 'class'], ['word_freq_remove', 'word_freq_money', 'class']]
82
+ - fields_requiring_caution: ['capital_run_length_average', 'capital_run_length_longest', 'capital_run_length_total']
83
+ - source_url: https://www.openml.org/d/44
84
+
85
+ SQLite schema snapshot:
86
+ {
87
+ "table_name": "n1",
88
+ "quoted_table_name": "\"n1\"",
89
+ "row_count": 4601,
90
+ "columns": [
91
+ {
92
+ "name": "word_freq_make",
93
+ "type": "TEXT",
94
+ "notnull": false,
95
+ "pk": false
96
+ },
97
+ {
98
+ "name": "word_freq_address",
99
+ "type": "TEXT",
100
+ "notnull": false,
101
+ "pk": false
102
+ },
103
+ {
104
+ "name": "word_freq_all",
105
+ "type": "TEXT",
106
+ "notnull": false,
107
+ "pk": false
108
+ },
109
+ {
110
+ "name": "word_freq_3d",
111
+ "type": "TEXT",
112
+ "notnull": false,
113
+ "pk": false
114
+ },
115
+ {
116
+ "name": "word_freq_our",
117
+ "type": "TEXT",
118
+ "notnull": false,
119
+ "pk": false
120
+ },
121
+ {
122
+ "name": "word_freq_over",
123
+ "type": "TEXT",
124
+ "notnull": false,
125
+ "pk": false
126
+ },
127
+ {
128
+ "name": "word_freq_remove",
129
+ "type": "TEXT",
130
+ "notnull": false,
131
+ "pk": false
132
+ },
133
+ {
134
+ "name": "word_freq_internet",
135
+ "type": "TEXT",
136
+ "notnull": false,
137
+ "pk": false
138
+ },
139
+ {
140
+ "name": "word_freq_order",
141
+ "type": "TEXT",
142
+ "notnull": false,
143
+ "pk": false
144
+ },
145
+ {
146
+ "name": "word_freq_mail",
147
+ "type": "TEXT",
148
+ "notnull": false,
149
+ "pk": false
150
+ },
151
+ {
152
+ "name": "word_freq_receive",
153
+ "type": "TEXT",
154
+ "notnull": false,
155
+ "pk": false
156
+ },
157
+ {
158
+ "name": "word_freq_will",
159
+ "type": "TEXT",
160
+ "notnull": false,
161
+ "pk": false
162
+ },
163
+ {
164
+ "name": "word_freq_people",
165
+ "type": "TEXT",
166
+ "notnull": false,
167
+ "pk": false
168
+ },
169
+ {
170
+ "name": "word_freq_report",
171
+ "type": "TEXT",
172
+ "notnull": false,
173
+ "pk": false
174
+ },
175
+ {
176
+ "name": "word_freq_addresses",
177
+ "type": "TEXT",
178
+ "notnull": false,
179
+ "pk": false
180
+ },
181
+ {
182
+ "name": "word_freq_free",
183
+ "type": "TEXT",
184
+ "notnull": false,
185
+ "pk": false
186
+ },
187
+ {
188
+ "name": "word_freq_business",
189
+ "type": "TEXT",
190
+ "notnull": false,
191
+ "pk": false
192
+ },
193
+ {
194
+ "name": "word_freq_email",
195
+ "type": "TEXT",
196
+ "notnull": false,
197
+ "pk": false
198
+ },
199
+ {
200
+ "name": "word_freq_you",
201
+ "type": "TEXT",
202
+ "notnull": false,
203
+ "pk": false
204
+ },
205
+ {
206
+ "name": "word_freq_credit",
207
+ "type": "TEXT",
208
+ "notnull": false,
209
+ "pk": false
210
+ },
211
+ {
212
+ "name": "word_freq_your",
213
+ "type": "TEXT",
214
+ "notnull": false,
215
+ "pk": false
216
+ },
217
+ {
218
+ "name": "word_freq_font",
219
+ "type": "TEXT",
220
+ "notnull": false,
221
+ "pk": false
222
+ },
223
+ {
224
+ "name": "word_freq_000",
225
+ "type": "TEXT",
226
+ "notnull": false,
227
+ "pk": false
228
+ },
229
+ {
230
+ "name": "word_freq_money",
231
+ "type": "TEXT",
232
+ "notnull": false,
233
+ "pk": false
234
+ },
235
+ {
236
+ "name": "word_freq_hp",
237
+ "type": "TEXT",
238
+ "notnull": false,
239
+ "pk": false
240
+ },
241
+ {
242
+ "name": "word_freq_hpl",
243
+ "type": "TEXT",
244
+ "notnull": false,
245
+ "pk": false
246
+ },
247
+ {
248
+ "name": "word_freq_george",
249
+ "type": "TEXT",
250
+ "notnull": false,
251
+ "pk": false
252
+ },
253
+ {
254
+ "name": "word_freq_650",
255
+ "type": "TEXT",
256
+ "notnull": false,
257
+ "pk": false
258
+ },
259
+ {
260
+ "name": "word_freq_lab",
261
+ "type": "TEXT",
262
+ "notnull": false,
263
+ "pk": false
264
+ },
265
+ {
266
+ "name": "word_freq_labs",
267
+ "type": "TEXT",
268
+ "notnull": false,
269
+ "pk": false
270
+ },
271
+ {
272
+ "name": "word_freq_telnet",
273
+ "type": "TEXT",
274
+ "notnull": false,
275
+ "pk": false
276
+ },
277
+ {
278
+ "name": "word_freq_857",
279
+ "type": "TEXT",
280
+ "notnull": false,
281
+ "pk": false
282
+ },
283
+ {
284
+ "name": "word_freq_data",
285
+ "type": "TEXT",
286
+ "notnull": false,
287
+ "pk": false
288
+ },
289
+ {
290
+ "name": "word_freq_415",
291
+ "type": "TEXT",
292
+ "notnull": false,
293
+ "pk": false
294
+ },
295
+ {
296
+ "name": "word_freq_85",
297
+ "type": "TEXT",
298
+ "notnull": false,
299
+ "pk": false
300
+ },
301
+ {
302
+ "name": "word_freq_technology",
303
+ "type": "TEXT",
304
+ "notnull": false,
305
+ "pk": false
306
+ },
307
+ {
308
+ "name": "word_freq_1999",
309
+ "type": "TEXT",
310
+ "notnull": false,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "word_freq_parts",
315
+ "type": "TEXT",
316
+ "notnull": false,
317
+ "pk": false
318
+ },
319
+ {
320
+ "name": "word_freq_pm",
321
+ "type": "TEXT",
322
+ "notnull": false,
323
+ "pk": false
324
+ },
325
+ {
326
+ "name": "word_freq_direct",
327
+ "type": "TEXT",
328
+ "notnull": false,
329
+ "pk": false
330
+ },
331
+ {
332
+ "name": "word_freq_cs",
333
+ "type": "TEXT",
334
+ "notnull": false,
335
+ "pk": false
336
+ },
337
+ {
338
+ "name": "word_freq_meeting",
339
+ "type": "TEXT",
340
+ "notnull": false,
341
+ "pk": false
342
+ },
343
+ {
344
+ "name": "word_freq_original",
345
+ "type": "TEXT",
346
+ "notnull": false,
347
+ "pk": false
348
+ },
349
+ {
350
+ "name": "word_freq_project",
351
+ "type": "TEXT",
352
+ "notnull": false,
353
+ "pk": false
354
+ },
355
+ {
356
+ "name": "word_freq_re",
357
+ "type": "TEXT",
358
+ "notnull": false,
359
+ "pk": false
360
+ },
361
+ {
362
+ "name": "word_freq_edu",
363
+ "type": "TEXT",
364
+ "notnull": false,
365
+ "pk": false
366
+ },
367
+ {
368
+ "name": "word_freq_table",
369
+ "type": "TEXT",
370
+ "notnull": false,
371
+ "pk": false
372
+ },
373
+ {
374
+ "name": "word_freq_conference",
375
+ "type": "TEXT",
376
+ "notnull": false,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "char_freq_%3B",
381
+ "type": "TEXT",
382
+ "notnull": false,
383
+ "pk": false
384
+ },
385
+ {
386
+ "name": "char_freq_%28",
387
+ "type": "TEXT",
388
+ "notnull": false,
389
+ "pk": false
390
+ },
391
+ {
392
+ "name": "char_freq_%5B",
393
+ "type": "TEXT",
394
+ "notnull": false,
395
+ "pk": false
396
+ },
397
+ {
398
+ "name": "char_freq_%21",
399
+ "type": "TEXT",
400
+ "notnull": false,
401
+ "pk": false
402
+ },
403
+ {
404
+ "name": "char_freq_%24",
405
+ "type": "TEXT",
406
+ "notnull": false,
407
+ "pk": false
408
+ },
409
+ {
410
+ "name": "char_freq_%23",
411
+ "type": "TEXT",
412
+ "notnull": false,
413
+ "pk": false
414
+ },
415
+ {
416
+ "name": "capital_run_length_average",
417
+ "type": "TEXT",
418
+ "notnull": false,
419
+ "pk": false
420
+ },
421
+ {
422
+ "name": "capital_run_length_longest",
423
+ "type": "TEXT",
424
+ "notnull": false,
425
+ "pk": false
426
+ },
427
+ {
428
+ "name": "capital_run_length_total",
429
+ "type": "TEXT",
430
+ "notnull": false,
431
+ "pk": false
432
+ },
433
+ {
434
+ "name": "class",
435
+ "type": "TEXT",
436
+ "notnull": false,
437
+ "pk": false
438
+ }
439
+ ],
440
+ "sample_rows": [
441
+ {
442
+ "word_freq_make": "0",
443
+ "word_freq_address": "0.64",
444
+ "word_freq_all": "0.64",
445
+ "word_freq_3d": "0",
446
+ "word_freq_our": "0.32",
447
+ "word_freq_over": "0",
448
+ "word_freq_remove": "0",
449
+ "word_freq_internet": "0",
450
+ "word_freq_order": "0",
451
+ "word_freq_mail": "0",
452
+ "word_freq_receive": "0",
453
+ "word_freq_will": "0.64",
454
+ "word_freq_people": "0",
455
+ "word_freq_report": "0",
456
+ "word_freq_addresses": "0",
457
+ "word_freq_free": "0.32",
458
+ "word_freq_business": "0",
459
+ "word_freq_email": "1.29",
460
+ "word_freq_you": "1.93",
461
+ "word_freq_credit": "0",
462
+ "word_freq_your": "0.96",
463
+ "word_freq_font": "0",
464
+ "word_freq_000": "0",
465
+ "word_freq_money": "0",
466
+ "word_freq_hp": "0",
467
+ "word_freq_hpl": "0",
468
+ "word_freq_george": "0",
469
+ "word_freq_650": "0",
470
+ "word_freq_lab": "0",
471
+ "word_freq_labs": "0",
472
+ "word_freq_telnet": "0",
473
+ "word_freq_857": "0",
474
+ "word_freq_data": "0",
475
+ "word_freq_415": "0",
476
+ "word_freq_85": "0",
477
+ "word_freq_technology": "0",
478
+ "word_freq_1999": "0",
479
+ "word_freq_parts": "0",
480
+ "word_freq_pm": "0",
481
+ "word_freq_direct": "0",
482
+ "word_freq_cs": "0",
483
+ "word_freq_meeting": "0",
484
+ "word_freq_original": "0",
485
+ "word_freq_project": "0",
486
+ "word_freq_re": "0",
487
+ "word_freq_edu": "0",
488
+ "word_freq_table": "0",
489
+ "word_freq_conference": "0",
490
+ "char_freq_%3B": "0",
491
+ "char_freq_%28": "0",
492
+ "char_freq_%5B": "0",
493
+ "char_freq_%21": "0.778",
494
+ "char_freq_%24": "0",
495
+ "char_freq_%23": "0",
496
+ "capital_run_length_average": "3.756",
497
+ "capital_run_length_longest": "61",
498
+ "capital_run_length_total": "278",
499
+ "class": "1"
500
+ },
501
+ {
502
+ "word_freq_make": "0.21",
503
+ "word_freq_address": "0.28",
504
+ "word_freq_all": "0.5",
505
+ "word_freq_3d": "0",
506
+ "word_freq_our": "0.14",
507
+ "word_freq_over": "0.28",
508
+ "word_freq_remove": "0.21",
509
+ "word_freq_internet": "0.07",
510
+ "word_freq_order": "0",
511
+ "word_freq_mail": "0.94",
512
+ "word_freq_receive": "0.21",
513
+ "word_freq_will": "0.79",
514
+ "word_freq_people": "0.65",
515
+ "word_freq_report": "0.21",
516
+ "word_freq_addresses": "0.14",
517
+ "word_freq_free": "0.14",
518
+ "word_freq_business": "0.07",
519
+ "word_freq_email": "0.28",
520
+ "word_freq_you": "3.47",
521
+ "word_freq_credit": "0",
522
+ "word_freq_your": "1.59",
523
+ "word_freq_font": "0",
524
+ "word_freq_000": "0.43",
525
+ "word_freq_money": "0.43",
526
+ "word_freq_hp": "0",
527
+ "word_freq_hpl": "0",
528
+ "word_freq_george": "0",
529
+ "word_freq_650": "0",
530
+ "word_freq_lab": "0",
531
+ "word_freq_labs": "0",
532
+ "word_freq_telnet": "0",
533
+ "word_freq_857": "0",
534
+ "word_freq_data": "0",
535
+ "word_freq_415": "0",
536
+ "word_freq_85": "0",
537
+ "word_freq_technology": "0",
538
+ "word_freq_1999": "0.07",
539
+ "word_freq_parts": "0",
540
+ "word_freq_pm": "0",
541
+ "word_freq_direct": "0",
542
+ "word_freq_cs": "0",
543
+ "word_freq_meeting": "0",
544
+ "word_freq_original": "0",
545
+ "word_freq_project": "0",
546
+ "word_freq_re": "0",
547
+ "word_freq_edu": "0",
548
+ "word_freq_table": "0",
549
+ "word_freq_conference": "0",
550
+ "char_freq_%3B": "0",
551
+ "char_freq_%28": "0.132",
552
+ "char_freq_%5B": "0",
553
+ "char_freq_%21": "0.372",
554
+ "char_freq_%24": "0.18",
555
+ "char_freq_%23": "0.048",
556
+ "capital_run_length_average": "5.114",
557
+ "capital_run_length_longest": "101",
558
+ "capital_run_length_total": "1028",
559
+ "class": "1"
560
+ },
561
+ {
562
+ "word_freq_make": "0.06",
563
+ "word_freq_address": "0",
564
+ "word_freq_all": "0.71",
565
+ "word_freq_3d": "0",
566
+ "word_freq_our": "1.23",
567
+ "word_freq_over": "0.19",
568
+ "word_freq_remove": "0.19",
569
+ "word_freq_internet": "0.12",
570
+ "word_freq_order": "0.64",
571
+ "word_freq_mail": "0.25",
572
+ "word_freq_receive": "0.38",
573
+ "word_freq_will": "0.45",
574
+ "word_freq_people": "0.12",
575
+ "word_freq_report": "0",
576
+ "word_freq_addresses": "1.75",
577
+ "word_freq_free": "0.06",
578
+ "word_freq_business": "0.06",
579
+ "word_freq_email": "1.03",
580
+ "word_freq_you": "1.36",
581
+ "word_freq_credit": "0.32",
582
+ "word_freq_your": "0.51",
583
+ "word_freq_font": "0",
584
+ "word_freq_000": "1.16",
585
+ "word_freq_money": "0.06",
586
+ "word_freq_hp": "0",
587
+ "word_freq_hpl": "0",
588
+ "word_freq_george": "0",
589
+ "word_freq_650": "0",
590
+ "word_freq_lab": "0",
591
+ "word_freq_labs": "0",
592
+ "word_freq_telnet": "0",
593
+ "word_freq_857": "0",
594
+ "word_freq_data": "0",
595
+ "word_freq_415": "0",
596
+ "word_freq_85": "0",
597
+ "word_freq_technology": "0",
598
+ "word_freq_1999": "0",
599
+ "word_freq_parts": "0",
600
+ "word_freq_pm": "0",
601
+ "word_freq_direct": "0.06",
602
+ "word_freq_cs": "0",
603
+ "word_freq_meeting": "0",
604
+ "word_freq_original": "0.12",
605
+ "word_freq_project": "0",
606
+ "word_freq_re": "0.06",
607
+ "word_freq_edu": "0.06",
608
+ "word_freq_table": "0",
609
+ "word_freq_conference": "0",
610
+ "char_freq_%3B": "0.01",
611
+ "char_freq_%28": "0.143",
612
+ "char_freq_%5B": "0",
613
+ "char_freq_%21": "0.276",
614
+ "char_freq_%24": "0.184",
615
+ "char_freq_%23": "0.01",
616
+ "capital_run_length_average": "9.821",
617
+ "capital_run_length_longest": "485",
618
+ "capital_run_length_total": "2259",
619
+ "class": "1"
620
+ },
621
+ {
622
+ "word_freq_make": "0",
623
+ "word_freq_address": "0",
624
+ "word_freq_all": "0",
625
+ "word_freq_3d": "0",
626
+ "word_freq_our": "0.63",
627
+ "word_freq_over": "0",
628
+ "word_freq_remove": "0.31",
629
+ "word_freq_internet": "0.63",
630
+ "word_freq_order": "0.31",
631
+ "word_freq_mail": "0.63",
632
+ "word_freq_receive": "0.31",
633
+ "word_freq_will": "0.31",
634
+ "word_freq_people": "0.31",
635
+ "word_freq_report": "0",
636
+ "word_freq_addresses": "0",
637
+ "word_freq_free": "0.31",
638
+ "word_freq_business": "0",
639
+ "word_freq_email": "0",
640
+ "word_freq_you": "3.18",
641
+ "word_freq_credit": "0",
642
+ "word_freq_your": "0.31",
643
+ "word_freq_font": "0",
644
+ "word_freq_000": "0",
645
+ "word_freq_money": "0",
646
+ "word_freq_hp": "0",
647
+ "word_freq_hpl": "0",
648
+ "word_freq_george": "0",
649
+ "word_freq_650": "0",
650
+ "word_freq_lab": "0",
651
+ "word_freq_labs": "0",
652
+ "word_freq_telnet": "0",
653
+ "word_freq_857": "0",
654
+ "word_freq_data": "0",
655
+ "word_freq_415": "0",
656
+ "word_freq_85": "0",
657
+ "word_freq_technology": "0",
658
+ "word_freq_1999": "0",
659
+ "word_freq_parts": "0",
660
+ "word_freq_pm": "0",
661
+ "word_freq_direct": "0",
662
+ "word_freq_cs": "0",
663
+ "word_freq_meeting": "0",
664
+ "word_freq_original": "0",
665
+ "word_freq_project": "0",
666
+ "word_freq_re": "0",
667
+ "word_freq_edu": "0",
668
+ "word_freq_table": "0",
669
+ "word_freq_conference": "0",
670
+ "char_freq_%3B": "0",
671
+ "char_freq_%28": "0.137",
672
+ "char_freq_%5B": "0",
673
+ "char_freq_%21": "0.137",
674
+ "char_freq_%24": "0",
675
+ "char_freq_%23": "0",
676
+ "capital_run_length_average": "3.537",
677
+ "capital_run_length_longest": "40",
678
+ "capital_run_length_total": "191",
679
+ "class": "1"
680
+ },
681
+ {
682
+ "word_freq_make": "0",
683
+ "word_freq_address": "0",
684
+ "word_freq_all": "0",
685
+ "word_freq_3d": "0",
686
+ "word_freq_our": "0.63",
687
+ "word_freq_over": "0",
688
+ "word_freq_remove": "0.31",
689
+ "word_freq_internet": "0.63",
690
+ "word_freq_order": "0.31",
691
+ "word_freq_mail": "0.63",
692
+ "word_freq_receive": "0.31",
693
+ "word_freq_will": "0.31",
694
+ "word_freq_people": "0.31",
695
+ "word_freq_report": "0",
696
+ "word_freq_addresses": "0",
697
+ "word_freq_free": "0.31",
698
+ "word_freq_business": "0",
699
+ "word_freq_email": "0",
700
+ "word_freq_you": "3.18",
701
+ "word_freq_credit": "0",
702
+ "word_freq_your": "0.31",
703
+ "word_freq_font": "0",
704
+ "word_freq_000": "0",
705
+ "word_freq_money": "0",
706
+ "word_freq_hp": "0",
707
+ "word_freq_hpl": "0",
708
+ "word_freq_george": "0",
709
+ "word_freq_650": "0",
710
+ "word_freq_lab": "0",
711
+ "word_freq_labs": "0",
712
+ "word_freq_telnet": "0",
713
+ "word_freq_857": "0",
714
+ "word_freq_data": "0",
715
+ "word_freq_415": "0",
716
+ "word_freq_85": "0",
717
+ "word_freq_technology": "0",
718
+ "word_freq_1999": "0",
719
+ "word_freq_parts": "0",
720
+ "word_freq_pm": "0",
721
+ "word_freq_direct": "0",
722
+ "word_freq_cs": "0",
723
+ "word_freq_meeting": "0",
724
+ "word_freq_original": "0",
725
+ "word_freq_project": "0",
726
+ "word_freq_re": "0",
727
+ "word_freq_edu": "0",
728
+ "word_freq_table": "0",
729
+ "word_freq_conference": "0",
730
+ "char_freq_%3B": "0",
731
+ "char_freq_%28": "0.135",
732
+ "char_freq_%5B": "0",
733
+ "char_freq_%21": "0.135",
734
+ "char_freq_%24": "0",
735
+ "char_freq_%23": "0",
736
+ "capital_run_length_average": "3.537",
737
+ "capital_run_length_longest": "40",
738
+ "capital_run_length_total": "191",
739
+ "class": "1"
740
+ }
741
+ ]
742
+ }
743
+
744
+ Shortlisted templates:
745
+ [
746
+ {
747
+ "template_id": "tpl_tpcds_within_group_share",
748
+ "template_name": "Within-Group Share of Total",
749
+ "primary_family": "conditional_dependency_structure",
750
+ "portability": "partial",
751
+ "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;",
752
+ "required_roles": [
753
+ "group_col",
754
+ "item_col",
755
+ "measure_col"
756
+ ]
757
+ }
758
+ ]
759
+
760
+ Problem instance:
761
+ {
762
+ "dataset_id": "n1",
763
+ "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=class, measure_col=word_freq_hpl.",
764
+ "planned_template_id": "tpl_tpcds_within_group_share",
765
+ "bindings": {
766
+ "group_col": "class",
767
+ "measure_col": "word_freq_hpl",
768
+ "item_col": "word_freq_george",
769
+ "top_k": 10,
770
+ "top_n": 4,
771
+ "num_tiles": 10,
772
+ "percentile_value": 0.9,
773
+ "z_threshold": 2.0,
774
+ "fraction_threshold": 0.1,
775
+ "baseline_multiplier": 1.5,
776
+ "baseline_fraction": 0.1,
777
+ "min_group_size": 5,
778
+ "min_support": 5,
779
+ "measure_threshold": 0.0,
780
+ "time_grain": "month",
781
+ "lookback_rows": 3,
782
+ "current_period_start": "'2024-01-01'",
783
+ "current_period_end": "'2024-04-01'",
784
+ "previous_period_start": "'2023-10-01'",
785
+ "previous_period_end": "'2024-01-01'",
786
+ "drift_ratio_threshold": 0.8
787
+ },
788
+ "can_vary": [],
789
+ "must_fix": [],
790
+ "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;"
791
+ }
792
+
793
+ Repair context:
794
+ {}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_response_attempt_1.raw.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {"type":"thread.started","thread_id":"019e40df-af2d-7722-8d75-c068294916c5"}
2
+ {"type":"turn.started"}
3
+ {"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1985816, Requested 21072. Please try again in 206ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
4
+ {"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1993331, Requested 21072. Please try again in 432ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"}
5
+ {"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"class\\\", \\\"word_freq_george\\\",\\n SUM(CAST(\\\"word_freq_hpl\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"word_freq_hpl\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"word_freq_hpl\\\" AS REAL))) OVER (PARTITION BY \\\"class\\\") AS share_within_group\\nFROM \\\"n1\\\"\\nGROUP BY \\\"class\\\", \\\"word_freq_george\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the provided template with group_col=\\\"class\\\", item_col=\\\"word_freq_george\\\", and measure_col=\\\"word_freq_hpl\\\". Cast the measure column to REAL because the schema stores feature values as TEXT in SQLite.\"}"}}
6
+ {"type":"turn.completed","usage":{"input_tokens":20437,"cached_input_tokens":12032,"output_tokens":461,"reasoning_output_tokens":288}}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_response_attempt_1.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"class\", \"word_freq_george\",\n SUM(CAST(\"word_freq_hpl\" AS REAL)) AS total_measure,\n SUM(CAST(\"word_freq_hpl\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"word_freq_hpl\" AS REAL))) OVER (PARTITION BY \"class\") AS share_within_group\nFROM \"n1\"\nGROUP BY \"class\", \"word_freq_george\"\nORDER BY share_within_group DESC;","notes":"Applied the provided template with group_col=\"class\", item_col=\"word_freq_george\", and measure_col=\"word_freq_hpl\". Cast the measure column to REAL because the schema stores feature values as TEXT in SQLite."}
Query/sql/v2/runs/v2_cli_20260502_081223_d/n1/artifacts/v2q_n1_0846f22fe82fa8a6/cli/sql_stderr_attempt_1.txt ADDED
File without changes