id stringclasses 122
values | question stringlengths 62 237 | gold_sql stringlengths 66 507 | expected_answer unknown | answer_type stringclasses 3
values | tags listlengths 2 5 | source unknown | round_decimals int64 2 4 ⌀ | question_original stringlengths 140 251 | instance stringlengths 13 23 | family stringclasses 7
values | db_path stringlengths 30 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
q001 | What is the total spend recorded in the campaign_days table within January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 362400 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:1"
} | 2 | In the campaign_days table, what is the total of spend during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q002 | Across campaign_days, what is the aggregate spend during February 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 264819.85 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:2"
} | 2 | In the campaign_days table, what is the total of spend during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q003 | Across campaign_days, what is the aggregate spend during March 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 251618.72 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:3"
} | 2 | In the campaign_days table, what is the total of spend during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q004 | How much spend does the campaign_days table account for during April 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 238417.58 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:4"
} | 2 | In the campaign_days table, what is the total of spend during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q005 | How much spend does the campaign_days table account for over May 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 225216.45 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:5"
} | 2 | In the campaign_days table, what is the total of spend during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q006 | Looking only at campaign_days rows during June 2021, what do the spend values sum to? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:6"
} | 2 | In the campaign_days table, what is the total of spend during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q007 | What is the total spend recorded in the campaign_days table in July 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:7"
} | 2 | In the campaign_days table, what is the total of spend during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q008 | Across campaign_days, what is the aggregate spend during August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:8"
} | 2 | In the campaign_days table, what is the total of spend during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q009 | Sum spend in campaign_days, restricted to during September 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:9"
} | 2 | In the campaign_days table, what is the total of spend during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q010 | Add up spend across all campaign_days rows over October 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:10"
} | 2 | In the campaign_days table, what is the total of spend during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q011 | Across campaign_days, what is the aggregate spend for the month of November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:11"
} | 2 | In the campaign_days table, what is the total of spend during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q012 | How much spend does the campaign_days table account for during December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 212015.32 | number | [
"aggregation",
"temporal_window",
"single_table"
] | {
"kind": "outcome_curve_period",
"table": "campaign_days",
"column": "spend",
"period": "month:12"
} | 2 | In the campaign_days table, what is the total of spend during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q013 | Taking all of campaign_days in the window starting 2021-01-01 and ending just before 2022-01-01, what is the overall spend? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 2826579.84 | number | [
"aggregation",
"single_table"
] | {
"kind": "outcome_curve_total",
"table": "campaign_days",
"column": "spend"
} | 2 | In the campaign_days table, what is the total of spend across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q014 | What is the row count for campaign_days during January 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 1888 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:1"
} | null | How many rows does the campaign_days table contain during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q015 | How many records appear in campaign_days in February 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 1380 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:2"
} | null | How many rows does the campaign_days table contain during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q016 | How many campaign_days rows fall over March 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 1311 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:3"
} | null | How many rows does the campaign_days table contain during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q017 | Count the campaign_days rows for the month of April 2021. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 1242 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:4"
} | null | How many rows does the campaign_days table contain during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q018 | How many records appear in campaign_days over May 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 1174 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:5"
} | null | How many rows does the campaign_days table contain during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q019 | Tally the entries in campaign_days over June 2021. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:6"
} | null | How many rows does the campaign_days table contain during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q020 | How many records appear in campaign_days during July 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:7"
} | null | How many rows does the campaign_days table contain during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q021 | Count the campaign_days rows over August 2021. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:8"
} | null | How many rows does the campaign_days table contain during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q022 | How many rows does campaign_days hold during September 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:9"
} | null | How many rows does the campaign_days table contain during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q023 | Tally the entries in campaign_days during October 2021. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:10"
} | null | How many rows does the campaign_days table contain during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q024 | Count the campaign_days rows within November 2021. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:11"
} | null | How many rows does the campaign_days table contain during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q025 | What is the row count for campaign_days within December 2021? Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 1105 | integer | [
"count",
"temporal_window",
"single_table"
] | {
"kind": "plan_row_count",
"table": "campaign_days",
"period": "month:12"
} | null | How many rows does the campaign_days table contain during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q026 | In campaign_days, which month (YYYY-MM) tops the ranking by total spend? Break ties by choosing the earliest. | SELECT strftime(date_trunc('month', "spend_date"), '%Y-%m') AS period FROM "campaign_days" GROUP BY 1 ORDER BY SUM("spend") DESC, 1 ASC LIMIT 1 | "2021-01" | string | [
"aggregation",
"argmax",
"group_by",
"single_table"
] | {
"kind": "outcome_curve_argmax",
"table": "campaign_days",
"column": "spend"
} | null | Which calendar month (format YYYY-MM) has the highest total of spend in the campaign_days table? If several months tie, answer the earliest one. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q030 | Among campaign_days rows over April 2021, what fraction have is_paused set to True? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 0.10550000000000001 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-04"
} | 4 | In the campaign_days table, what fraction of rows during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q032 | Of the campaign_days rows during June 2021, what share carry is_paused = True? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-06"
} | 4 | In the campaign_days table, what fraction of rows during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q033 | Compute the rate at which is_paused is True in campaign_days during July 2021. Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-07"
} | 4 | In the campaign_days table, what fraction of rows during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q034 | What proportion of campaign_days rows in August 2021 have is_paused true? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-08"
} | 4 | In the campaign_days table, what fraction of rows during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q035 | Compute the rate at which is_paused is True in campaign_days within September 2021. Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-09"
} | 4 | In the campaign_days table, what fraction of rows during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q036 | Of the campaign_days rows during October 2021, what share carry is_paused = True? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-10"
} | 4 | In the campaign_days table, what fraction of rows during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q037 | What proportion of campaign_days rows over November 2021 have is_paused true? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-11"
} | 4 | In the campaign_days table, what fraction of rows during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q038 | Among campaign_days rows during December 2021, what fraction have is_paused set to True? Give a number rounded to 4 decimal places. | SELECT ROUND(AVG(CASE WHEN "is_paused" = TRUE THEN 1.0 ELSE 0.0 END), 4) FROM "campaign_days" WHERE "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 0.076 | number | [
"rate",
"temporal_window",
"single_table"
] | {
"kind": "rate_curve_anchor",
"table": "campaign_days",
"column": "is_paused",
"period": "2021-12"
} | 4 | In the campaign_days table, what fraction of rows during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01) have is_paused equal to True? Give a number rounded to 4 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q039 | Count orphaned rows in campaign_days: those whose advertiser_id is absent from advertisers.advertiser_id. NULLs do not count as orphans. Answer with an integer. | SELECT COUNT(*) FROM "campaign_days" c LEFT JOIN "advertisers" p ON c."advertiser_id" = p."advertiser_id" WHERE p."advertiser_id" IS NULL AND c."advertiser_id" IS NOT NULL | 0 | integer | [
"join",
"integrity",
"multi_table"
] | {
"kind": "fk_integrity",
"relationship": "campaign_days.advertiser_id -> advertisers.advertiser_id"
} | null | How many rows in the campaign_days table have a advertiser_id value that does not appear in the advertiser_id column of the advertisers table? Count NULL advertiser_id values as matching. Give an integer. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q040 | Within campaign_days, what is the total spend for rows whose placement is 'search' for the month of January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 46024.8 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q041 | What spend total belongs to placement 'display' in campaign_days in January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 75016.8 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q042 | Within campaign_days, what is the total spend for rows whose placement is 'video' in January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 77191.2 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q043 | Within campaign_days, what is the total spend for rows whose placement is 'social' within January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 86613.6 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q044 | For campaign_days rows tagged placement 'native', what is the summed spend over January 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-02-01 00:00:00' | 77553.6 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during January 2021 (rows whose timestamp is on or after 2021-01-01 and strictly before 2021-02-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q045 | Considering only 'search' under placement, total the spend in campaign_days in February 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 33632.12 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q046 | What spend total belongs to placement 'display' in campaign_days within February 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 54817.71 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q047 | What spend total belongs to placement 'video' in campaign_days within February 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 56406.63 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q048 | How much spend does the 'social' placement account for in campaign_days during February 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 63291.94 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q049 | How much spend does the 'native' placement account for in campaign_days over February 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-02-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-03-01 00:00:00' | 56671.45 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during February 2021 (rows whose timestamp is on or after 2021-02-01 and strictly before 2021-03-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q050 | Restricting to placement = 'search', sum the spend in campaign_days during March 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 31955.58 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q051 | How much spend does the 'display' placement account for in campaign_days in March 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 52085.08 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q052 | Within campaign_days, what is the total spend for rows whose placement is 'video' in March 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 53594.79 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q053 | How much spend does the 'social' placement account for in campaign_days over March 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 60136.86 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q054 | What spend total belongs to placement 'native' in campaign_days in March 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-03-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-04-01 00:00:00' | 53846.41 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during March 2021 (rows whose timestamp is on or after 2021-03-01 and strictly before 2021-04-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q055 | What spend total belongs to placement 'search' in campaign_days during April 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 30279.03 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q056 | What spend total belongs to placement 'display' in campaign_days in April 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 49352.44 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q057 | Restricting to placement = 'video', sum the spend in campaign_days during April 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 50782.94 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q058 | Considering only 'social' under placement, total the spend in campaign_days in April 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 56981.81 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q059 | Considering only 'native' under placement, total the spend in campaign_days during April 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-04-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-05-01 00:00:00' | 51021.36 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during April 2021 (rows whose timestamp is on or after 2021-04-01 and strictly before 2021-05-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q060 | Restricting to placement = 'search', sum the spend in campaign_days for the month of May 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 28602.49 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q061 | What spend total belongs to placement 'display' in campaign_days over May 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 46619.81 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q062 | Within campaign_days, what is the total spend for rows whose placement is 'video' in May 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 47971.1 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q063 | For campaign_days rows tagged placement 'social', what is the summed spend within May 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 53826.73 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q064 | Restricting to placement = 'native', sum the spend in campaign_days over May 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-05-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-06-01 00:00:00' | 48196.32 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during May 2021 (rows whose timestamp is on or after 2021-05-01 and strictly before 2021-06-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q065 | Within campaign_days, what is the total spend for rows whose placement is 'search' for the month of June 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q066 | For campaign_days rows tagged placement 'display', what is the summed spend for the month of June 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q067 | Within campaign_days, what is the total spend for rows whose placement is 'video' for the month of June 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q068 | Considering only 'social' under placement, total the spend in campaign_days within June 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q069 | Restricting to placement = 'native', sum the spend in campaign_days within June 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-06-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-07-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during June 2021 (rows whose timestamp is on or after 2021-06-01 and strictly before 2021-07-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q070 | Within campaign_days, what is the total spend for rows whose placement is 'search' during July 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q071 | Restricting to placement = 'display', sum the spend in campaign_days for the month of July 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q072 | How much spend does the 'video' placement account for in campaign_days in July 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q073 | How much spend does the 'social' placement account for in campaign_days within July 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q074 | What spend total belongs to placement 'native' in campaign_days in July 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-07-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-08-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during July 2021 (rows whose timestamp is on or after 2021-07-01 and strictly before 2021-08-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q075 | How much spend does the 'search' placement account for in campaign_days over August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q076 | How much spend does the 'display' placement account for in campaign_days in August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q077 | Within campaign_days, what is the total spend for rows whose placement is 'video' in August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q078 | For campaign_days rows tagged placement 'social', what is the summed spend for the month of August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q079 | For campaign_days rows tagged placement 'native', what is the summed spend in August 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-08-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-09-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during August 2021 (rows whose timestamp is on or after 2021-08-01 and strictly before 2021-09-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q080 | Restricting to placement = 'search', sum the spend in campaign_days over September 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q081 | Within campaign_days, what is the total spend for rows whose placement is 'display' during September 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q082 | How much spend does the 'video' placement account for in campaign_days within September 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q083 | Considering only 'social' under placement, total the spend in campaign_days over September 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q084 | Restricting to placement = 'native', sum the spend in campaign_days during September 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-09-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-10-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during September 2021 (rows whose timestamp is on or after 2021-09-01 and strictly before 2021-10-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q085 | Considering only 'search' under placement, total the spend in campaign_days in October 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q086 | Within campaign_days, what is the total spend for rows whose placement is 'display' within October 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q087 | Considering only 'video' under placement, total the spend in campaign_days in October 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q088 | For campaign_days rows tagged placement 'social', what is the summed spend in October 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q089 | Considering only 'native' under placement, total the spend in campaign_days during October 2021. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-10-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-11-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during October 2021 (rows whose timestamp is on or after 2021-10-01 and strictly before 2021-11-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q090 | How much spend does the 'search' placement account for in campaign_days within November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q091 | What spend total belongs to placement 'display' in campaign_days during November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q092 | For campaign_days rows tagged placement 'video', what is the summed spend in November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q093 | Within campaign_days, what is the total spend for rows whose placement is 'social' within November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q094 | Within campaign_days, what is the total spend for rows whose placement is 'native' within November 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-11-01 00:00:00' AND "spend_date" < TIMESTAMP '2021-12-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during November 2021 (rows whose timestamp is on or after 2021-11-01 and strictly before 2021-12-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q095 | What spend total belongs to placement 'search' in campaign_days within December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 26925.95 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q096 | For campaign_days rows tagged placement 'display', what is the summed spend in December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 43887.17 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q097 | What spend total belongs to placement 'video' in campaign_days during December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 45159.26 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q098 | How much spend does the 'social' placement account for in campaign_days within December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 50671.66 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q099 | Within campaign_days, what is the total spend for rows whose placement is 'native' for the month of December 2021? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-12-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 45371.28 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_period",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' during December 2021 (rows whose timestamp is on or after 2021-12-01 and strictly before 2022-01-01)? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q100 | What spend total belongs to placement 'search' in campaign_days on or after 2021-01-01 and strictly before 2022-01-01? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'search' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 358975.67 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_total",
"table": "campaign_days",
"measure": "spend",
"group": "search"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'search' across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q101 | Restricting to placement = 'display', sum the spend in campaign_days between 2021-01-01 and 2022-01-01 (exclusive of 2022-01-01). Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'display' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 585102.03 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_total",
"table": "campaign_days",
"measure": "spend",
"group": "display"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'display' across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q102 | Restricting to placement = 'video', sum the spend in campaign_days between 2021-01-01 and 2022-01-01 (exclusive of 2022-01-01). Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'video' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 602061.48 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_total",
"table": "campaign_days",
"measure": "spend",
"group": "video"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'video' across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q103 | Within campaign_days, what is the total spend for rows whose placement is 'social' from 2021-01-01 up to but not including 2022-01-01? Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'social' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 675552.56 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_total",
"table": "campaign_days",
"measure": "spend",
"group": "social"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'social' across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
q104 | Considering only 'native' under placement, total the spend in campaign_days from 2021-01-01 up to but not including 2022-01-01. Give the answer rounded to 2 decimal places. | SELECT ROUND(SUM("spend"), 2) FROM "campaign_days" WHERE "placement" = 'native' AND "spend_date" >= TIMESTAMP '2021-01-01 00:00:00' AND "spend_date" < TIMESTAMP '2022-01-01 00:00:00' | 604888.1 | number | [
"group_by",
"filtered_aggregation",
"single_table"
] | {
"kind": "group_share_total",
"table": "campaign_days",
"measure": "spend",
"group": "native"
} | 2 | In the campaign_days table, what is the total of spend for rows where placement is 'native' across all rows whose spend_date is on or after 2021-01-01 and strictly before 2022-01-01? Give a number rounded to 2 decimal places. | ad_spend__000 | ad_spend | databases/ad_spend__000/tables |
YAML Metadata Warning:The task_categories "text2sql" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
Verified SQL Rewards
A text-to-SQL corpus where every reward carries a machine-checkable proof that it is correct.
| Questions, all independently verified | 109,306 |
| Databases | 1,400 across 7 schema families |
| Tables / data rows | 4,400 / ~19.6 million |
| Unique (question, answer) pairs | 102,764 |
| Candidates refused and published | 12,150 |
| Verification pass rate | 90.00% |
Trivial baseline (always answer 0) |
1.83% |
Each item is a natural-language question, a gold SQL query, and an expected answer over a multi-table database. What makes it different is the direction it was built in: the answer is declared first, and the database is solved backward to satisfy it exactly. No one read a database and guessed what a query should return.
from grader import load_questions, reward, schema_text
for q in load_questions("questions.jsonl"):
sql = my_model(q["question"], schema_text(q))
r = reward(q, sql) # 1.0 or 0.0, exact match against a declared answer
That is the entire integration surface. One function, one dependency (duckdb).
Why this exists
Reward signal for SQL reasoning is measurably corrupted, and the corruption is documented rather than suspected:
| Corpus | Ground truth from | Measured error |
|---|---|---|
| BIRD Mini-Dev | human annotation | 52.8% of annotations wrong |
| Spider 2.0-Snow | human annotation | 66.1% wrong |
| SynSQL-2.5M | LLM generation | 86% fully correct, so ~14% wrong |
Sources: Jin, Choi, Zhu and Kang, Text-to-SQL Benchmarks are Broken, CIDR 2026 (expanded at VLDB 2026); OmniSQL / SynSQL-2.5M, VLDB 2025, per their own human evaluation.
Correcting those annotations moves leaderboard positions by up to nine places, so the errors are large enough to invert published conclusions. The same group separately showed that noisy data is destructive to RLVR (Zhu and Kang, arXiv:2603.16140); to get clean training data for that paper they hand-corrected 600 BIRD instances one at a time.
The most common single error class in the audit, 57.8%, is E2: the annotator misunderstood the schema or the data they were querying. That class cannot occur here, because nobody reads the data to produce an answer. The answer exists before the data does.
What is guaranteed, and how it was checked
1. Every shipped answer is independently verified. The generator writes files. DuckDB, which shares no code with the generator, loads those files and executes each gold SQL against them. A question ships only if the result matches the declared answer exactly. Everything else is dropped and logged.
The check is not cosmetic. Adding one cent to a single row of a fact table containing thousands breaks it:
Declared : 1411500.0
Clean run : 1411500.0 match
After +$0.01, one row: 1411500.01 no match
2. The answers are engine-independent, not DuckDB artifacts. 1,450 aggregate answers were recomputed in pandas, a different language with no SQL involved: 1,450 / 1,450 agreed.
3. The gold SQL reproduces, end to end, from the shipped files.
grader.py re-runs every gold query through the public loading path and
refuses to pass if any question fails to reproduce.
4. Financial invariants hold exactly.
general_ledger instances satisfy double-entry accounting: within every journal
entry total debits equal total credits, the global trial balance nets to zero,
and no line carries both a debit and a credit. Verified in both DuckDB and
pandas across every instance.
5. It is not gameable by a constant.
Always answering 0 scores 1.83%. Numeric answers are not suspiciously
round: 76.8% carry real cents, and only 0.48% end in 000.00.
6. It is reproducible.
Specification seeds are SHA-256 derived (not Python's hash(), which is salted
per process), verified identical across runs. Both the spec seed and the
generation seed are recorded in every instance manifest.
What is NOT claimed
This section matters more than the one above.
- E1 errors are closed by audit, not by construction. Question text and gold SQL derive from the same template, which prevents per-instance drift. But a wrong template would make every question from it wrong identically, and the verifier would never catch it, because it only checks SQL against data, never English against SQL. All templates were therefore audited by hand, English against SQL, one at a time. That is a weaker guarantee than E2 and is stated as such deliberately.
- This is not a BIRD or Spider replacement. Questions are generated, so they probe a narrower band of reasoning than human-authored ones. The contribution is a clean reward signal, not harder questions.
- Ambiguity is mitigated, not eliminated. Templated phrasing removes most wording ambiguity. Wording is still wording.
- Free text is not realistic and is not the point. Names and labels are grammar-generated placeholders. Nothing here tests language realism, and it should not be used to.
- Phrasing repeats. Each question kind draws from a hand-written bank of paraphrases, giving 1,055 distinct phrasings (up from 188 before the paraphrase layer). Across 109,306 questions that still means a given phrasing recurs roughly 100 times. The linguistic surface is far wider than a single template per kind, and still far narrower than a human-authored benchmark. Train on this for SQL construction against a clean reward, not for breadth of natural-language understanding.
- Entities are fictional by construction. No real company, person, or transaction appears.
Composition
Seven schema families, each a financially coherent domain:
| Family | Tables | Declared invariants |
|---|---|---|
saas_subscriptions |
customers, subscriptions, invoices | revenue curve, past-due rate, billing-period split |
marketplace_orders |
buyers, orders | GMV curve, refund rate, channel split |
payments_processor |
merchants, transactions | volume curve, dispute rate, card-brand split |
lending_book |
borrowers, loans | origination curve, default rate, purpose split |
ad_spend |
advertisers, campaign_days | spend curve, pause rate, placement split |
insurance_book |
policyholders, policies | premium curve, claim rate, line-of-business split |
general_ledger |
accounts, journal_entries, journal_lines | double-entry balance, zero trial balance |
Specifications are randomised per instance (anchor values, time window, row counts, rates, share splits, category vocabularies), so instances carry genuinely different correct answers rather than one answer set over many data realisations.
Question kinds
Single-table aggregates. Period totals, grand totals, row counts, argmax month, group shares, rate anchors.
Identity checks. Foreign-key orphan counts, per-entry ledger balance, trial balance.
Composed — harder SQL whose answers are still declared, because declared facts compose:
-- running total first crossing a threshold: CTE + window
WITH m AS (SELECT date_trunc('month', "captured_at") AS mo,
SUM("captured_amount") AS tot
FROM "transactions" WHERE ... GROUP BY 1),
c AS (SELECT mo, SUM(tot) OVER (ORDER BY mo) AS running FROM m)
SELECT strftime(mo, '%Y-%m') FROM c WHERE running > 4042555.42
ORDER BY mo LIMIT 1
Also: month-over-month deltas, percentage growth, quarter totals, Nth-highest
month (ROW_NUMBER), months above the mean, max-minus-min spread, peak share.
Joined — multi-table analytical SQL against a dimension table, where the declared per-category totals carry through the join:
SELECT ROUND(SUM(f."captured_amount"), 2)
FROM "transactions" f
JOIN "card_brand_dim" d ON f."card_brand" = d."card_brand"
WHERE d."network_origin" = 'global' AND f."captured_at" >= ... AND ...
Layout
<instance>/
tables/*.parquet the database (DuckDB reads these natively)
questions.jsonl shipped, verified questions
certificate.json independent DuckDB execution results
manifest.json dropped_questions, spec_seed, gen_seed
verify.py re-run the verification yourself
questions.jsonl every question, consolidated, with db_path
dropped.jsonl every refused candidate, with declared vs observed
grader.py reward(question, predicted_sql) -> 1.0 | 0.0
STATS.md corpus statistics
Each record carries question, gold_sql, expected_answer, answer_type,
round_decimals, tags, source, db_path, and question_original (the
pre-paraphrase phrasing, kept for traceability).
The refused questions ship too
dropped.jsonl lists every candidate that was generated and then refused, with
its declared answer, the observed answer, and the reason. Almost all are rate
anchors, where a declared rate such as 2% is not exactly reachable over an
integer number of rows.
This is published rather than hidden because a corpus claiming verified answers should show what its verifier rejected. None of the four corpora in the table above report a rejection set.
Generated with
Misata, an open-source declarative
synthetic data engine. pip install 'misata[evalpack]'
Citation
@misc{verified_sql_rewards_2026,
title = {Verified SQL Rewards: a text-to-SQL corpus with certified answer keys},
author = {Muhammed Rasin},
year = {2026},
url = {https://huggingface.co/datasets/rasinmuhammed/verified-sql-rewards}
}
- Downloads last month
- 291