Question
stringlengths 19
106
| Query
stringlengths 48
390
| Context
stringclasses 1
value |
|---|---|---|
What are the clicks and conversions by product type this month?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5, metrics.clicks, metrics.conversions FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List the top 1 products by conversion value last week.
|
SELECT segments.product_title, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the total conversion count for each product brand yesterday?
|
SELECT segments.product_brand, metrics.conversions FROM shopping_performance_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the total conversion value for the last 30 days by product category?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the total number of conversions and clicks by product category this month.
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.conversions, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which products had the highest clicks last week?
|
SELECT segments.product_title, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the CTR for product brands in the last 14 days?
|
SELECT segments.product_brand, metrics.ctr FROM shopping_performance_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List the top 1 products by conversion value this week.
|
SELECT segments.product_title, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many impressions did my products receive yesterday?
|
SELECT segments.product_title,metrics.impressions FROM shopping_performance_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show conversion metrics by product type for the last 30 days.
|
SELECT segments.product_type_l1,segments.product_type_l2,segments.product_type_l30,segments.product_type_l4,
segments.product_type_l5,metrics.conversions, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What were the clicks and cost per conversion for the last 7 days for all product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.clicks, metrics.cost_per_all_conversions FROM shopping_performance_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which products had the best ROAS in the last month?
|
SELECT segments.product_title FROM shopping_performance_view WHERE segments.date DURING LAST_MONTH
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the total sales value for the last 30 days by product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the performance of my best selling products this month.
|
SELECT segments.product_title, customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the cost per conversion last week for all product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.cost_per_all_conversions FROM shopping_performance_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.cost_per_all_conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks and impressions for the last 30 days for all product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.clicks, metrics.impressions FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the average cost per click (CPC) by product type this month.
|
SELECT segments.product_type_l1, metrics.average_cpc FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.average_cpc DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List out the top products by impressions in the last 14 days.
|
SELECT segments.product_title, metrics.impressions FROM shopping_performance_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the conversion rate feom interactions for our campaigns this week for all product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.conversions,metrics.conversions_from_interactions_rate, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.conversion_from_interaction_rate DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the impressions and clicks by device type for the last 30 days for all p[roduct categories.
|
SELECT segments.ad_network_type,segments.device, metrics.impressions, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which products had the highest conversion value last month?
|
SELECT segments.product_title, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the clicks and conversion value by product category this month?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.clicks, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the total conversion value for this week for all product categories?
|
SELECT segments.product_category_level1,segments.product_category_level2,segments.product_category_level30,segments.product_category_level4,segments.product_category_level5,metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the ROAS by product brand for the last 30 days.
|
SELECT segments.product_brand FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which products had the most clicks in the last 14 days?
|
SELECT segments.product_title, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the CTR for our campaigns this month by product type?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5,metrics.ctr FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks and impressions for the last 30 days by product type?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5, metrics.clicks, metrics.impressions FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List the best performing products by conversion value for this month.
|
SELECT segments.product_title, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the average cost per conversion for the last 14 days by product type.
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5,metrics.cost_per_all_conversions FROM shopping_performance_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.cost_per_all_conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did we get from each product brand last week?
|
SELECT segments.product_brand, metrics.conversions FROM shopping_performance_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the total cost for all products this month?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5,metrics.cost_micros FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.cost_micros DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Display clicks and conversions by product type for the last 7 days.
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5, metrics.clicks, metrics.conversions FROM shopping_performance_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which products had the highest CTR in the last 30 days?
|
SELECT segments.product_title, metrics.ctr FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the conversion metrics for the last month by product type?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5,metrics.conversions, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List product titles with their impressions and clicks for today.
|
SELECT segments.product_title, metrics.impressions, metrics.clicks FROM shopping_performance_view WHERE segments.date DURING TODAY ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the total conversion rate by product type for last month.
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5 FROM shopping_performance_view WHERE segments.date DURING LAST_MONTH
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the total revenue generated by products this week?
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5,metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the top products by revenue this month?
|
SELECT segments.product_title, metrics.conversions_value FROM shopping_performance_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show clicks and impressions by product type for the last 30 days.
|
SELECT shopping_performance_view.product_type_l1,
shopping_performance_view.product_type_l2,
shopping_performance_view.product_type_l30,
shopping_performance_view.product_type_l4,
shopping_performance_view.product_type_l5, metrics.clicks, metrics.impressions FROM shopping_performance_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks for each product group in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did each product group achieve yesterday?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the impressions by product group this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest conversion value last week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions_value FROM product_group_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the clicks for each product group this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show total impressions by product group for the last 7 days.
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the conversion rates for each product group this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions, metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How did product groups perform in terms of clicks last month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the conversions and clicks by product group for today?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions, metrics.clicks FROM product_group_view WHERE segments.date DURING TODAY ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest impressions last 14 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the clicks by product group for this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did each product group get last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks by product group in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest impressions yesterday?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the cost by product group this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.cost_micros FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.cost_micros DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did each product group generate last week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the clicks by product group for today?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest CTR in the last 7 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.ctr FROM product_group_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the average CPC by product group for this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.average_cpc FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.average_cpc DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many impressions did each product group receive last month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the conversions by product group for the last 14 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups generated the highest revenue this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions_value FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the performance of product groups by day in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, metrics.clicks, metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY segments.date
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How do clicks and impressions compare for product groups this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks, metrics.impressions FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest impressions in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many clicks did each product group receive this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the conversion rate by product group for the last 7 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions, metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups have the highest average CPC this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.average_cpc FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.average_cpc DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What were the total conversions by product group last month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How do product groups perform in terms of CTR this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.ctr FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups have the lowest conversion rates this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, metrics.conversions, metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions ASC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the performance by product group on the last day?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions, metrics.clicks, metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the highest cost in the last 14 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.cost_micros FROM product_group_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.cost_micros DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the clicks and impressions by product group this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks, metrics.impressions FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did each product group achieve yesterday?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the daily performance of product groups for the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups generated the highest revenue in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions_value FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the click-through rate (CTR) by product group this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.ctr FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many impressions did each product group receive last week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, metrics.impressions FROM product_group_view WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks by product group this week?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name, metrics.clicks FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the most conversions yesterday?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING YESTERDAY ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the performance of product groups in terms of clicks for the last 7 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many conversions did product groups achieve in the last 14 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.conversions FROM product_group_view WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.conversions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the impressions by product group this month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING THIS_MONTH ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which product groups had the best average CPC in the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.average_cpc FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.average_cpc ASC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What was the total cost for product groups last month?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.cost_micros FROM product_group_view WHERE segments.date DURING LAST_MONTH ORDER BY metrics.cost_micros DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many clicks did each product group receive today?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING TODAY ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the conversion rate for product groups this week?
|
SELECT campaign.name, ad_group.name,product_group_view.resource_name, metrics.conversions_from_interactions_rate FROM product_group_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.conversions_from_interactions_rate DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the total clicks by product group for the last 30 days?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.clicks FROM product_group_view WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What are the impressions for each product group today?
|
SELECT campaign.name,
ad_group.name,
product_group_view.resource_name,metrics.impressions FROM product_group_view WHERE segments.date DURING TODAY ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which asset groups have the highest impressions in the last 30 days?
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.impressions FROM asset_group WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show the average CPC for asset groups this month.
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.average_cpc FROM asset_group WHERE segments.date DURING THIS_MONTH ORDER BY metrics.average_cpc DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which asset groups had the most clicks last week?
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.clicks FROM asset_group WHERE segments.date DURING LAST_WEEK_SUN_SAT ORDER BY metrics.clicks DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
List asset groups with zero conversions this month.
|
SELECT campaign.name, asset_group.id, asset_group.name,metrics.conversions FROM asset_group WHERE segments.date DURING THIS_MONTH AND metrics.conversions=0
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many asset groups are currently enabled?
|
SELECT campaign.name,asset_group.id, asset_group.name FROM asset_group WHERE segments.date DURING LAST_30_DAYS AND asset_group.status = 'ENABLED'
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show asset groups with the highest conversion value this month.
|
SELECT campaign.name, asset_group.id, asset_group.name, metrics.conversions_value FROM asset_group WHERE segments.date DURING THIS_MONTH ORDER BY metrics.conversions_value DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which asset groups have the highest cost per conversion in the last 14 days?
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.cost_per_conversion FROM asset_group WHERE segments.date DURING LAST_14_DAYS ORDER BY metrics.cost_per_conversion DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Show daily performance metrics for asset groups this week.
|
SELECT campaign.name,asset_group.id, asset_group.name, customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM asset_group WHERE segments.date DURING THIS_WEEK_SUN_TODAY ORDER BY metrics.impressions DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
How many new asset groups were created last month?
|
SELECT campaign.name,sset_group.id, asset_group.name FROM asset_group WHERE segments.date DURING LAST_MONTH
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Which asset groups have the highest CTR this month?
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.ctr FROM asset_group WHERE segments.date DURING THIS_MONTH ORDER BY metrics.ctr DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
What is the total cost of all asset groups last 7 days?
|
SELECT campaign.name,asset_group.id, asset_group.name, metrics.cost_micros FROM asset_group WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.cost_micros DESC
|
You are a Google Ads (GAQL) expert. Given a natural-language question, output exactly one valid GAQL query. Output format: single line only, no newlines, no extra spaces, no commentary. Rules: (1) Choose the correct resource from the NLQ. (2) Add ORDER BY only if the field is also in SELECT. (3) Add segments.date only if metrics are selected. (4) If the NLQ mentions status (paused, enabled, active, running ads/campaigns/ad groups), include the correct status filter. Example NLQ: "How many ad groups are currently paused?" β SELECT ad_group.id, ad_group.name, campaign.name FROM ad_group WHERE ad_group.status = 'PAUSED'.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.