args: {'query': "SELECT 'resting_hr', AVG(resting_hr), STDDEV(resting_hr) FROM daily UNION ALL SELECT 'hrv', AVG(hrv), STDDEV(hrv) FROM daily UNION ALL SELECT 'sleep_hours', AVG(sleep_hours), STDDEV(sleep_hours) FROM daily UNION ALL SELECT 'glucose_mean', AVG(glucose_mean), STDDEV(glucose_mean) FROM daily UNION ALL SELECT 'steps', AVG(steps), STDDEV(steps)"}


args: {'query': 'SELECT * FROM daily LIMIT 10;'}


args: {'query': 'SELECT \n    MIN(resting_hr), MAX(resting_hr), AVG(resting_hr) FROM daily UNION ALL\n    SELECT MIN(hrv), MAX(hrv), AVG(hrv) FROM daily UNION ALL\n    SELECT MIN(sleep_hours), MAX(sleep_hours), AVG(sleep_hours) FROM daily UNION ALL\n    SELECT MIN(glucose_mean), MAX(glucose_mean), AVG(glucose_mean) FROM daily UNION ALL\n    SELECT MIN(steps), MAX(steps), AVG(steps) FROM daily;'}


args: {'query': 'SELECT COUNT(*) FROM daily;'}


args: {'query': 'SELECT date, hrv FROM daily ORDER BY date;'}


args: {'query': "SELECT * FROM daily WHERE date BETWEEN '2026-06-01' AND '2026-06-30';"}


args: {'query': 'SELECT metric, COUNT(*) FROM samples GROUP BY metric;'}


args: {'query': 'SELECT metric, AVG(value), MIN(value), MAX(value) FROM samples GROUP BY metric;'}


args: {'query': 'SELECT MIN(ts), MAX(ts) FROM samples;'}


args: {'query': 'SELECT \n    AVG(resting_hr) as avg_hr, MIN(resting_hr) as min_hr, MAX(resting_hr) as max_hr,\n    AVG(hrv) as avg_hrv, MIN(hrv) as min_hrv, MAX(hrv) as max_hrv,\n    AVG(sleep_hours) as avg_sleep, MIN(sleep_hours) as min_sleep, MAX(sleep_hours) as max_sleep,\n    AVG(glucose_mean) as avg_gluc, MIN(glucose_mean) as min_gluc, MAX(glucose_mean) as max_gluc,\n    AVG(steps) as avg_steps, MIN(steps) as min_steps, MAX(steps) as max_steps\nFROM daily;'}


args: {'query': 'SELECT date, hrv FROM daily WHERE hrv < 50 ORDER BY date;'}


args: {'query': "SELECT date, hrv FROM daily WHERE date BETWEEN '2026-06-20' AND '2026-07-05' ORDER BY date;"}


args: {'query': 'SELECT metric, COUNT(*) as count FROM samples GROUP BY metric;'}


args: {'query': 'SELECT date, steps FROM daily ORDER BY date;'}


args: {'query': 'SELECT metric, AVG(value) as avg_v, MIN(value) as min_v, MAX(value) as max_v FROM samples GROUP BY metric;'}


args: {'query': 'SELECT date, sleep_hours FROM daily WHERE sleep_hours < 5 ORDER BY date;'}


args: {'query': 'SELECT ts, metric, value FROM samples LIMIT 10;'}


args: {'query': "SELECT * FROM daily WHERE date BETWEEN '2026-06-10' AND '2026-07-05';"}


args: {'query': 'SELECT date, glucose_mean FROM daily WHERE glucose_mean > 120 ORDER BY date;'}


args: {'query': "SELECT ts, metric, value FROM samples WHERE metric = 'glucose' ORDER BY ts LIMIT 20;"}


args: {'query': "SELECT 'resting_hr' as metric, MIN(resting_hr) as val, date FROM daily GROUP BY 1 ORDER BY 2 ASC LIMIT 1 UNION ALL SELECT 'hrv', MIN(hrv), date FROM daily GROUP BY 1 ORDER BY 2 ASC LIMIT 1 UNION ALL SELECT 'sleep_hours', MIN(sleep_hours), date FROM daily GROUP BY 1 ORDER BY 2 ASC LIMIT 1 UNION ALL SELECT 'glucose_mean', MIN(glucose_mean), date FROM daily GROUP BY 1 ORDER BY 2 ASC LIMIT 1 UNION ALL SELECT 'steps', MIN(steps), date FROM daily GROUP BY 1 ORDER BY 2 ASC LIMIT 1;"}


args: {'query': 'SELECT \n    MIN(resting_hr) as min_hr, MAX(resting_hr) as max_hr, AVG(resting_hr) as avg_hr,\n    MIN(hrv) as min_hrv, MAX(hrv) as max_hrv, AVG(hrv) as avg_hrv,\n    MIN(sleep_hours) as min_sleep, MAX(sleep_hours) as max_sleep, AVG(sleep_hours) as avg_sleep,\n    MIN(glucose_mean) as min_glc, MAX(glucose_mean) as max_glc, AVG(glucose_mean) as avg_glc,\n    MIN(steps) as min_steps, MAX(steps) as max_steps, AVG(steps) as avg_steps\nFROM daily;'}


args: {'query': 'SELECT * FROM daily ORDER BY date DESC LIMIT 20;'}


args: {'query': "SELECT 'resting_hr' as metric, MIN(resting_hr) as val, date FROM daily GROUP BY 1 HAVING val = (SELECT MIN(resting_hr) FROM daily)\nUNION ALL\nSELECT 'hrv', MIN(hrv), date FROM daily GROUP BY 1 HAVING val = (SELECT MIN(hrv) FROM daily)\nUNION ALL\nSELECT 'sleep_hours', MIN(sleep_hours), date FROM daily GROUP BY 1 HAVING val = (SELECT MIN(sleep_hours) FROM daily)\nUNION ALL\nSELECT 'glucose_mean', MIN(glucose_mean), date FROM daily GROUP BY 1 HAVING val = (SELECT MIN(glucose_mean) FROM


args: {'query': "SELECT \n    'resting_hr' as metric, ABS(MIN(resting_hr) - AVG(resting_hr))/AVG(resting_hr) as rel_diff FROM daily\nUNION ALL\nSELECT 'hrv', ABS(MIN(hrv) - AVG(hrv))/AVG(hrv) FROM daily\nUNION ALL\nSELECT 'sleep_hours', ABS(MIN(sleep_hours) - AVG(sleep_hours))/AVG(sleep_hours) FROM daily\nUNION ALL\nSELECT 'glucose_mean', ABS(MIN(glucose_mean) - AVG(glucose_mean))/AVG(glucose_mean) FROM daily\nUNION ALL\nSELECT 'steps', ABS(MIN(steps) - AVG(steps))/AVG(steps) FROM daily;"}


args: {'query': 'SELECT * FROM daily ORDER BY resting_hr DESC LIMIT 1;'}


args: {'query': "SELECT 'resting_hr' as metric, ABS(val - avg_val)/stddev_val as zscore, date FROM (SELECT resting_hr as val, AVG(resting_hr) OVER() as avg_val, STDDEV(resting_hr) OVER() as stddev_val, date FROM daily) WHERE ABS(val - avg_val)/stddev_val > 2 ORDER BY zscore DESC LIMIT 1\nUNION ALL\nSELECT 'hrv', ABS(hrv - avg_hrv)/stddev_hrv, date FROM (SELECT hrv, AVG(hrv) OVER() as avg_hrv, STDDEV(hrv) OVER() as stddev_hrv, date FROM daily) WHERE ABS(hrv - avg_hrv)/stddev_hrv > 2 ORDER BY zscore DES


args: {'query': 'SELECT \n    AVG(resting_hr) as avg_hr, STDDEV(resting_hr) as std_hr,\n    AVG(hrv) as avg_hrv, STDDEV(hrv) as std_hrv,\n    AVG(sleep_hours) as avg_slp, STDDEV(sleep_hours) as std_slp,\n    AVG(glucose_mean) as avg_glc, STDDEV(glucose_mean) as std_glc,\n    AVG(steps) as avg_st, STDDEV(steps) as std_st\nFROM daily;'}


args: {'query': 'SELECT date FROM daily WHERE steps = 19833;'}


args: {'query': "SELECT * FROM daily WHERE date >= '2026-05-01' ORDER BY date ASC;"}


args: {'query': 'SELECT * FROM daily WHERE resting_hr = 85.7;'}


args: {'query': "SELECT 'resting_hr' as m, MAX(resting_hr) as v, MIN(date) as d FROM daily UNION SELECT 'hrv', MAX(hrv), MIN(date) FROM daily UNION SELECT 'sleep_hours', MAX(sleep_hours), MIN(date) FROM daily UNION SELECT 'glucose_mean', MAX(glucose_mean), MIN(date) FROM daily UNION SELECT 'steps', MAX(steps), MIN(date) FROM daily;"}


args: {'query': 'SELECT date, glucose_mean FROM daily ORDER BY glucose_mean DESC LIMIT 1;'}


args: {'query': "SELECT 'resting_hr' as m, MIN(resting_hr) as v, MIN(date) as d FROM daily UNION SELECT 'resting_hr', MAX(resting_hr), date FROM daily WHERE resting_hr = (SELECT MAX(resting_hr) FROM daily) LIMIT 1;"}


args: {'query': "SELECT * FROM daily WHERE date BETWEEN '2026-03-10' AND '2026-03-15';"}


args: {'query': "SELECT * FROM daily WHERE date BETWEEN '2026-01-15' AND '2026-01-25';"}


args: {'query': 'SELECT date, resting_hr, hrv, sleep_hours, glucose_mean, steps FROM daily WHERE resting_hr > 75 OR hrv < 40 OR sleep_hours < 5 OR glucose_mean > 120 OR steps < 5000;'}


args: {'metric': 'resting_hr', 'start_date': '2026-03-10', 'magnitude': 24.0}


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # Extract Date\n    iso = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us = re.search(r\'(\\d{2})/(\\d{2})/(\\d{2})\', line)\n    if iso:\n        dt, dr = iso.group(), iso.span()\n    elif us:\n        m, d, y = us.groups()\n        dt, dr = f"20{y}-{m}-{d}", us.span()\n    else:\n        return None\n\n    # Extract Metric\n    mapping = {\n        \'steps\': \'steps\', \'step count\': \'steps\',\n        \'resting hr\'


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # Extract Date\n    iso = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us = re.search(r\'(\\d{2})/(\\d{2})/(\\d{2})\', line)\n    \n    date_spans = []\n    dt = None\n\n    if iso:\n        dt = iso.group()\n        date_spans.append(iso.span())\n    elif us:\n        m, d, y = us.groups()\n        dt = f"20{y}-{m}-{d}"\n        date_spans.append(us.span())\n    else:\n        return None\n\n    # Extract Metric\n    map


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Find Date (ISO or US slash)\n    iso_match = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us_match = re.search(r\'(\\d{2})/(\\d{2})/(\\d{2})\', line)\n\n    if iso_match:\n        dt = iso_match.group()\n        date_span = iso_match.span()\n    elif us_match:\n        m, d, y = us_match.groups()\n        dt = f"20{y}-{m}-{d}"\n        date_span = us_match.span()\n    else:\n        return None\n\n    # 2. Find Metri


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Date extraction (ISO or US)\n    iso_match = re.search(r\'(\\d{4}-\\d{2}-\\d{2})\', line)\n    us_match = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n\n    if iso_match:\n        date_str = iso_match.group()\n        date_span = iso_match.span()\n    elif us_match:\n        m, d, y = us_match.groups()\n        date_str = f"20{y}-{m.zfill(2)}-{d.zfill(2)}"\n        date_span = us_match.span()\n    else:\n


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    iso = re.search(r\'(\\d{4}-\\d{2}-\\d{2})\', line)\n    us = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n    if iso:\n        dt, d_span = iso.group(), iso.span()\n    elif us:\n        m, d, y = us.groups()\n        dt, d_span = f"20{y}-{m.zfill(2)}-{d.zfill(2)}", us.span()\n    else: return None\n\n    metrics = [\n        (r\'avg glucose|glucose\', \'glucose_mean\'),\n        (r\'resting heart rate|resting hr|rh


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Find Date\n    iso = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n\n    if iso:\n        dt_str = iso.group()\n        d_start, d_end = iso.span()\n    elif us:\n        m, d, y = us.groups()\n        dt_str = f"20{y}-{m.zfill(2)}-{d.zfill(2)}"\n        d_start, d_end = us.span()\n    else:\n        return None\n\n    # 2. Create stripped version to avoid mat


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Find Date (ISO or US slash format)\n    iso = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n\n    if iso:\n        dt_str = iso.group()\n        d_start, d_end = iso.span()\n    elif us:\n        m, d, y = us.groups()\n        dt_str = f"20{y}-{m.zfill(2)}-{d.zfill(2)}"'}


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Date extraction (ISO or US slash)\n    iso_match = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us_match = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n\n    dt_str = None\n    date_span = (0, 0)\n\n    if iso_match:\n        dt_str = iso_match.group()\n        date_span = iso_match.span()\n    elif us_match:\n        m, d, y = us_match.groups()\n        # Assume 20YY for 2-digit years\n        dt_str = f"20


args: {'source': 'import re\n\ndef parse_line(line: str) -> dict | None:\n    # 1. Date extraction (ISO or US slash)\n    iso = re.search(r\'\\d{4}-\\d{2}-\\d{2}\', line)\n    us = re.search(r\'(\\d{1,2})/(\\d{1,2})/(\\d{2})\', line)\n\n    if iso:\n        dt_str = iso.group()\n        d_span = iso.span()\n    elif us:\n        m, d, y = us.groups()\n        dt_str = f"20{y}-{m.zfill(2)}-{d.zfill(2)}"\n        d_span = us.span()\n    else:\n        return None\n\n    # 2. Metric mapping (aliases to c


args: {'line': '[2026-04-29] heart rate variability 59'}


args: {'line': '[2026-04/29] heart rate variability 59'}