{"id": "q001", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q002", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 2925.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2} {"id": "q003", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1575.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2} {"id": "q004", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1050.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2} {"id": "q005", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 450.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2} {"id": "q006", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'acme'", "expected_answer": 53000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q007", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q008", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 2983.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2} {"id": "q009", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1606.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2} {"id": "q010", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1113.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2} {"id": "q011", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 477.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2} {"id": "q012", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'acme'", "expected_answer": 56000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q013", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q014", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3042.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2} {"id": "q015", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1638.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2} {"id": "q016", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1176.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2} {"id": "q017", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 504.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2} {"id": "q018", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'acme'", "expected_answer": 59000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q019", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q020", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3100.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2} {"id": "q021", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1669.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2} {"id": "q022", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1239.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2} {"id": "q023", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 531.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2} {"id": "q024", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'acme'", "expected_answer": 62000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q025", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q026", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3159.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2} {"id": "q027", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1701.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2} {"id": "q028", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1302.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2} {"id": "q029", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 558.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2} {"id": "q030", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'acme'", "expected_answer": 65000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q031", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2} {"id": "q032", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3217.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2} {"id": "q033", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1732.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2} {"id": "q034", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1365.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2} {"id": "q035", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 585.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2} {"id": "q036", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'acme'", "expected_answer": 68000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2} {"id": "q037", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q038", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1365.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2} {"id": "q039", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 735.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2} {"id": "q040", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2520.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2} {"id": "q041", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1080.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2} {"id": "q042", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'globex'", "expected_answer": 118500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q043", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q044", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1335.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2} {"id": "q045", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 719.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2} {"id": "q046", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2488.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2} {"id": "q047", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1066.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2} {"id": "q048", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'globex'", "expected_answer": 117000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q049", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q050", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1306.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2} {"id": "q051", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 703.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2} {"id": "q052", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2457.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2} {"id": "q053", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1053.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2} {"id": "q054", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'globex'", "expected_answer": 115500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q055", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q056", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1277.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2} {"id": "q057", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 687.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2} {"id": "q058", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2425.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2} {"id": "q059", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1039.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2} {"id": "q060", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'globex'", "expected_answer": 114000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q061", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q062", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1248.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2} {"id": "q063", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 672.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2} {"id": "q064", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2394.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2} {"id": "q065", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1026.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2} {"id": "q066", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'globex'", "expected_answer": 112500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q067", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2} {"id": "q068", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1218.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2} {"id": "q069", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 656.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2} {"id": "q070", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2362.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2} {"id": "q071", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1012.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2} {"id": "q072", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'globex'", "expected_answer": 111000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2} {"id": "q073", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q074", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 910.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2} {"id": "q075", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 490.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2} {"id": "q076", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 420.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2} {"id": "q077", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 180.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2} {"id": "q078", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'initech'", "expected_answer": 20800.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2} {"id": "q079", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q080", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 925.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2} {"id": "q081", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 498.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2} {"id": "q082", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 436.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2} {"id": "q083", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 187.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2} {"id": "q084", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'initech'", "expected_answer": 21600.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2} {"id": "q085", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q086", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 941.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2} {"id": "q087", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 506.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2} {"id": "q088", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 453.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2} {"id": "q089", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 194.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2} {"id": "q090", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'initech'", "expected_answer": 22400.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2} {"id": "q091", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q092", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 956.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2} {"id": "q093", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 515.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2} {"id": "q094", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 470.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2} {"id": "q095", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 201.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2} {"id": "q096", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'initech'", "expected_answer": 23200.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2} {"id": "q097", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q098", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 972.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2} {"id": "q099", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 523.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2} {"id": "q100", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 487.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2} {"id": "q101", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 208.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2} {"id": "q102", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'initech'", "expected_answer": 24000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2} {"id": "q103", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2} {"id": "q104", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 988.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2} {"id": "q105", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 532.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2} {"id": "q106", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 504.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2} {"id": "q107", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 216.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2} {"id": "q108", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'initech'", "expected_answer": 24800.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}