Question
stringlengths
19
106
Query
stringlengths
48
390
Context
stringclasses
1 value
What are the user locations with the highest clicks today?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks FROM user_location_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 user locations had the most conversions last month?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.conversions FROM user_location_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'.
Which user locations generated the most engagement this week?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY
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 user locations with the highest revenue last week?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name FROM user_location_view WHERE segments.date DURING LAST_WEEK_SUN_SAT
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 user locations showed the highest growth in clicks this month?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks FROM user_location_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 are the top user locations by engagement yesterday?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name FROM user_location_view WHERE segments.date DURING YESTERDAY
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 user locations had the most impressions last 30 days?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.impressions FROM user_location_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 user locations (cities) had the highest impressions last 30 days?
SELECT user_location_view.resource_name, metrics.impressions FROM user_location_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'.
What are the top user locations generating clicks this month?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks FROM user_location_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'.
Show daily conversions by user location for the last 14 days.
SELECT user_location_view.country_criterion_id, segments.date, metrics.conversions FROM user_location_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 locations have the highest cost this week?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.cost_micros FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY 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 user locations showed the most activity yesterday?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks, metrics.impressions FROM user_location_view WHERE segments.date DURING YESTERDAY 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 user locations had the highest CTR last month?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.ctr FROM user_location_view WHERE segments.date DURING LAST_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'.
Are there any locations with zero conversions this month?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.conversions FROM user_location_view WHERE segments.date DURING THIS_MONTH AND metrics.conversions=0 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 user locations have the lowest average CPC last 30 days?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.average_cpc FROM user_location_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'.
Show top locations by clicks for the last 7 days.
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks FROM user_location_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'.
What locations are generating the most conversions this week?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.conversions FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_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 user locations had the highest impressions last week?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.impressions FROM user_location_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'.
Show locations with the highest cost per conversion this month.
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.cost_per_conversion FROM user_location_view WHERE segments.date DURING THIS_MONTH 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'.
What are the top countries by impressions in the last 30 days?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.impressions FROM user_location_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 regions have the highest clicks this month?
SELECT metrics.clicks FROM user_location_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 cost by country last week?
SELECT user_location_view.country_criterion_id, metrics.cost_micros FROM user_location_view WHERE segments.date DURING LAST_WEEK_SUN_SAT 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'.
Which countries had the most conversions yesterday?
SELECT user_location_view.country_criterion_id, metrics.conversions FROM user_location_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 top user locations by average CPC this week?
SELECT user_location_view.country_criterion_id, metrics.average_cpc FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY 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 clicks did we get from each region last month?
SELECT user_location_view.country_criterion_id,metrics.clicks FROM user_location_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'.
Which locations had the highest spend in the last 14 days?
SELECT user_location_view.country_criterion_id, metrics.cost_micros FROM user_location_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 were the top countries by conversions this month?
SELECT user_location_view.country_criterion_id, metrics.conversions FROM user_location_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 user locations generated the most clicks in the last 30 days?
SELECT user_location_view.country_criterion_id, metrics.clicks FROM user_location_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 conversion rates by country this week?
SELECT user_location_view.country_criterion_id, metrics.conversions, metrics.clicks FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_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 locations had no conversions but high impressions last week?
SELECT user_location_view.country_criterion_id, metrics.impressions FROM user_location_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'.
How many conversions did we get from each region today?
SELECT user_location_view.country_criterion_id,metrics.conversions FROM user_location_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 countries had the highest clicks last month?
SELECT user_location_view.country_criterion_id, metrics.clicks FROM user_location_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 is the conversion rate by country for the last 14 days?
SELECT user_location_view.country_criterion_id, metrics.conversions, metrics.clicks FROM user_location_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'.
List user locations with zero conversions this week.
SELECT user_location_view.country_criterion_id, metrics.conversions FROM user_location_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY AND metrics.conversions=0 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 locations are generating the most impressions today?
SELECT user_location_view.country_criterion_id, metrics.impressions FROM user_location_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 top 1 countries by cost last week.
SELECT user_location_view.country_criterion_id, metrics.cost_micros FROM user_location_view WHERE segments.date DURING LAST_WEEK_SUN_SAT 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 total clicks by country for this month?
SELECT user_location_view.country_criterion_id, metrics.clicks FROM user_location_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'.
Identify countries with high cost but low conversions in the last 30 days.
SELECT user_location_view.country_criterion_id, metrics.cost_micros, metrics.conversions FROM user_location_view WHERE segments.date DURING LAST_30_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'.
Which countries had the most conversions yesterday?
SELECT user_location_view.country_criterion_id, metrics.conversions FROM user_location_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'.
List user locations with the highest average CPC last month.
SELECT user_location_view.country_criterion_id, metrics.average_cpc FROM user_location_view WHERE segments.date DURING LAST_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 are the impressions and clicks by country for this week?
SELECT user_location_view.country_criterion_id, metrics.impressions, metrics.clicks FROM user_location_view 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'.
Which countries had the most conversions and clicks last 14 days?
SELECT user_location_view.country_criterion_id, metrics.conversions, metrics.clicks FROM user_location_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'.
Show the total cost by country for the last 7 days.
SELECT user_location_view.country_criterion_id, metrics.cost_micros FROM user_location_view 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'.
Which user locations generated the most clicks in the last 30 days?
SELECT user_location_view.country_criterion_id, user_location_view.resource_name, metrics.clicks FROM user_location_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 is the conversion rate by user location for the last 14 days?
SELECT user_location_view.country_criterion_id, metrics.conversions, metrics.clicks, metrics.conversions_from_interactions_rate FROM user_location_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 is the performance of each age range in terms of clicks last month?
SELECT ad_group_criterion.age_range.type,customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM age_range_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'.
Show impressions and clicks by age range this week.
SELECT ad_group_criterion.age_range.type,metrics.impressions, metrics.clicks FROM age_range_view 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 conversions did each age range achieve yesterday?
SELECT ad_group_criterion.age_range.type, metrics.conversions FROM age_range_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 cost per conversion by age range in the last 30 days?
SELECT ad_group_criterion.age_range.type, metrics.cost_per_conversion FROM age_range_view WHERE segments.date DURING LAST_30_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 the average CPC by age range for this month.
SELECT ad_group_criterion.age_range.type,metrics.average_cpc FROM age_range_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'.
Which age ranges had the highest impressions last week?
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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 is the CTR for each age range today?
SELECT ad_group_criterion.age_range.type,metrics.ctr FROM age_range_view WHERE segments.date DURING 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'.
Show clicks by age range for the last 14 days.
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_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'.
How do different age ranges perform in terms of cost this week?
SELECT ad_group_criterion.age_range.type, metrics.cost_micros FROM age_range_view WHERE segments.date DURING THIS_WEEK_SUN_TODAY 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 is the conversion rate by age range in the last 30 days?
SELECT ad_group_criterion.age_range.type,metrics.conversions, metrics.clicks FROM age_range_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'.
Which age ranges had the most clicks last week?
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_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'.
Show the performance of age ranges in terms of impressions today.
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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 impressions by age range this month.
SELECT ad_group_criterion.age_range.type, metrics.impressions FROM age_range_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'.
What is the average CPC by age range in the last 30 days?
SELECT ad_group_criterion.age_range.type,metrics.average_cpc FROM age_range_view WHERE segments.date DURING LAST_30_DAYS 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 clicks by age range today.
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_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'.
Show conversions by age range in the last 7 days.
SELECT ad_group_criterion.age_range.type, metrics.conversions FROM age_range_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'.
What is the CTR by age range this week?
SELECT ad_group_criterion.age_range.type,metrics.ctr FROM age_range_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'.
Show daily cost by age range in the last 14 days.
SELECT ad_group_criterion.age_range.type,, metrics.cost_micros FROM age_range_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'.
Which age ranges had the highest impressions last month?
SELECTad_group_criterion.age_range.type, metrics.impressions FROM age_range_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'.
Show clicks and conversions by age range this week.
SELECT ad_group_criterion.age_range.type, metrics.clicks, metrics.conversions FROM age_range_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'.
What are the total conversions by age range yesterday?
SELECT ad_group_criterion.age_range.type,metrics.conversions FROM age_range_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'.
Show age range performance metrics for the last week.
SELECT ad_group_criterion.age_range.type,customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM age_range_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 is the cost per conversion by age range this month?
SELECT ad_group_criterion.age_range.type, metrics.cost_per_conversion FROM age_range_view WHERE segments.date DURING THIS_MONTH 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 impressions and clicks by age range for today.
SELECT ad_group_criterion.age_range.type, metrics.impressions, metrics.clicks FROM age_range_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'.
What are the impressions by age range in the last 30 days?
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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 age range get yesterday?
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_view WHERE segments.date DURING YESTERDAY 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 age range this month?
SELECT ad_group_criterion.age_range.type,metrics.conversions, metrics.clicks FROM age_range_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'.
Show the cost by age range for the last 14 days.
SELECT ad_group_criterion.age_range.type, metrics.cost_micros FROM age_range_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'.
How does CTR vary by age range this week?
SELECT ad_group_criterion.age_range.type,metrics.ctr FROM age_range_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'.
What are the total conversions by age range last week?
SELECT ad_group_criterion.age_range.type,metrics.conversions FROM age_range_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'.
Show the average CPC for each age range this month.
SELECT ad_group_criterion.age_range.type,metrics.average_cpc FROM age_range_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 age ranges with the highest impressions today.
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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'.
What is the performance of age ranges in the last 7 days?
SELECT ad_group_criterion.age_range.type,customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM age_range_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'.
Show the clicks and impressions by age range last month.
SELECT ad_group_criterion.age_range.type,metrics.clicks, metrics.impressions FROM age_range_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'.
Which age ranges had the most conversions this week?
SELECT ad_group_criterion.age_range.type, metrics.conversions FROM age_range_view WHERE segments.date DURING THIS_WEEK_SUN_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'.
What are the impressions and clicks by age range today?
SELECT ad_group_criterion.age_range.type,metrics.impressions, metrics.clicks FROM age_range_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 age ranges had the highest conversions in the last 30 days?
SELECT ad_group_criterion.age_range.type,metrics.conversions FROM age_range_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 is the average CPC by age range this month?
SELECT ad_group_criterion.age_range.type,metrics.average_cpc FROM age_range_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'.
Show impressions and clicks by age range for today.
SELECT ad_group_criterion.age_range.type,metrics.impressions, metrics.clicks FROM age_range_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 age range had the most clicks in the last week?
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_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'.
How do age ranges perform in terms of CTR this month?
SELECT ad_group_criterion.age_range.type,metrics.ctr FROM age_range_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 clicks by age range for yesterday?
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_view WHERE segments.date DURING YESTERDAY 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 performance of age ranges in terms of impressions for the last 14 days.
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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 age ranges have the highest cost per conversion this month?
SELECT ad_group_criterion.age_range.type,metrics.cost_per_conversion FROM age_range_view WHERE segments.date DURING THIS_MONTH 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 conversions by age range in the last 30 days.
SELECT ad_group_criterion.age_range.type,metrics.conversions FROM age_range_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'.
Which age ranges had the highest impressions this week?
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_view 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'.
Show age range performance metrics for last month.
SELECT ad_group_criterion.age_range.type, customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM age_range_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'.
Show performance metrics by age range for today.
SELECT ad_group_criterion.age_range.type,customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM age_range_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 are the impressions by age range for yesterday?
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM age_range_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'.
List age ranges with their clicks in the last 30 days.
SELECT ad_group_criterion.age_range.type,metrics.clicks FROM age_range_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 by gender in the last 30 days?
SELECT ad_group_criterion.age_range.type,metrics.impressions FROM gender_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'.
Show clicks by gender for today.
SELECT ad_group_criterion.gender.type,metrics.clicks FROM gender_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'.
How did gender demographics perform yesterday?
SELECT ad_group_criterion.gender.type,metrics.conversions FROM gender_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 CTR for each gender segment this month?
SELECT ad_group_criterion.gender.type,metrics.ctr FROM gender_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'.
Show gender performance metrics for the last 14 days.
SELECT ad_group_criterion.gender.type,customer.currency_code, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM gender_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'.