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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.