Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
8
15
db_id
stringlengths
2
28
variant
stringclasses
2 values
instruction
stringlengths
212
4.23k
ai_functions
listlengths
1
3
external_knowledge
stringclasses
42 values
eval_config
dict
sf_bq003
GA360
main
For sessions between April 1 and July 31, 2017, first identify distinct marketing channels (channelGrouping), then filter to only channels where the condition 'The marketing channel "{channelGrouping}" indicates high commercial purchase intent: ' (with the channel name substituted) evaluates to true. For the remaining ...
[ "AI_CLASSIFY", "AI_FILTER" ]
google_analytics_sample.ga_sessions.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq004
GA360
main
In July 2017, among all visitors who purchased any YouTube-related product (identified by containing 'YouTube' in the product name), which non-YouTube product had the highest total quantity purchased, where the product must be classified into one of ['Apparel', 'Bags & Accessories', 'Electronics', 'Drinkware', 'Office ...
[ "AI_CLASSIFY", "AI_FILTER" ]
google_analytics_sample.ga_sessions.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq005
CRYPTO
main
For Bitcoin blocks in 2023, calculate the daily average block interval in seconds by joining consecutive blocks via timestamp ordering (including cross-day intervals, excluding the genesis block). Filter to include only days where the condition 'Bitcoin mining statistics: Average block interval was {interval} seconds o...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq006
AUSTIN
main
For Austin 2016 incidents, identify those where the condition 'This incident description indicates alcohol-related public disturbance or intoxication' concatenated as 'This incident description indicates alcohol-related public disturbance or intoxication: {description}' evaluates to true. Calculate the Z-score for dail...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq008_div
GA360
diversity
In January 2017, among visitors whose campaign name contains 'Data Share' and who accessed any page starting with '/home', extract the product category from the immediately consecutive page they visited next (that doesn't start with '/home') using the extraction question 'What is the main product category from this URL...
[ "AI_EXTRACT" ]
google_analytics_sample.ga_sessions.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq010
GA360
main
Among customers who completed a transaction including the product 'YouTube Men's Vintage Henley' (matched using pattern '%youtube%henley%' case-insensitive) during July 2017 (July 1-31, across all daily session tables), find the top 10 other products they purchased by total quantity sold that are NOT semantically relat...
[ "AI_CLASSIFY", "AI_FILTER" ]
google_analytics_sample.ga_sessions.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq010_div
GA360
diversity
Among customers who completed transactions including 'YouTube Men's Vintage Henley' (matched using case-insensitive pattern '%youtube%henley%') during the entire month of July 2017 (dates 20170701 through 20170731), identify all other products they purchased in transactions during that same month. For the top-selling p...
[ "AI_EXTRACT" ]
google_analytics_sample.ga_sessions.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq011
GA4
main
Among users who had positive engagement time (engagement_time_msec > 0) in the 7-day period from January 1-7, 2021 but no positive engagement time in the final 2 days (January 6-7, 2021), assign each user to exactly one traffic acquisition channel. For each churned user, determine their traffic source from their record...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
ga4_obfuscated_sample_ecommerce.events.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq015_div
STACKOVERFLOW_PLUS
diversity
From Hacker News comments posted on or after January 1, 2014 (Unix timestamp >= 1388534400) that reference Stack Overflow questions via URLs matching 'stackoverflow.com/questions/{id}' or 'stackoverflow.com/q/{id}', identify the top 10 tags by total mention count. For each tag, split the question's tag string by '|' (l...
[ "AI_AGG" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq016
DEPS_DEV_V1
main
Among the highest release versions of NPM packages, find the most frequently used dependency (counting distinct root packages that depend on it, where the dependency is also an NPM package). From the top 30 most frequent dependencies, keep only those whose package names have semantic similarity above 0.2 to 'essential ...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq017
GEO_OPENSTREETMAP
main
What are the five longest types of highways within the multipolygon boundary of Denmark (as defined by Wikidata ID 'Q35') by total length, where each highway type is classified into exactly one of ['Major Vehicle Roads', 'Minor Vehicle Roads', 'Pedestrian/Cycling Paths', 'Service/Utility Roads', 'Other'] based on the h...
[ "AI_CLASSIFY", "AI_FILTER" ]
functions_st_dwithin.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq018
COVID19_OPEN_DATA
main
Among days in March and April 2020 in the United States at the national level, which day had the highest COVID-19 cumulative confirmed case growth rate while being classified as 'Explosive Growth' from ['Explosive Growth', 'Rapid Growth', 'Moderate Growth', 'Slow Growth', 'Decline'] based on a description formatted as ...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq024_div
USFS_FIA
diversity
For the year 2012 (filtering where inventory_year equals 2012, evaluation_group contains '2012', and proportion_basis is 'SUBP'), identify the top 10 evaluation groups with the largest subplot acres, considering only the condition with the largest subplot acres within each group. When multiple conditions have the same ...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1, 2, 4, 5, 6, 7 ] }
sf_bq028
DEPS_DEV_V1
main
What are the top 8 most popular NPM packages (by GitHub stars) that are frontend UI or CSS frameworks? Consider only the latest release version of each package, where "latest" is determined by the highest version ordinal. Filter to packages whose names have semantic similarity above 0.3 to 'frontend UI component librar...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq028_div
DEPS_DEV_V1
diversity
Among NPM packages that have an associated GitHub project (based on any version of the package being linked to a GitHub project), considering only the latest release version determined by the highest version ordinal, which are the top 8 most popular based on GitHub star count? For each package, also extract its primary...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq032
NOAA_DATA
main
What is the final latitude of the second longest-traveling North Atlantic hurricane in 2020, considering only hurricanes classified as 'Severe' or 'Devastating' based on their peak characteristics? Classify each hurricane into exactly one of ['Devastating', 'Severe', 'Moderate', 'Minor'] based on a description formatte...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
functions_st_distance.md
{ "ignore_order": true, "condition_cols": [ 0 ] }
sf_bq033
PATENTS
main
For each month from January 2008 through December 2022, count how many distinct U.S. patent publications were filed that are semantically related to IoT technology. First, pre-filter to abstracts containing any of the keywords 'IoT', 'Internet of Things', 'smart device', 'connected device', 'sensor network', 'machine-t...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq034
GHCN_D
main
Among weather stations within 50 km straight-line distance from the center of Chicago (41.8319°N, 87.6847°W), find those classified as 'Airport' or 'Urban' from the categories ['Airport', 'Urban', 'Suburban', 'Research/Industrial', 'Other'] based on station name, then return the top 15 stations most semantically simila...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq036
GITHUB_REPOS
main
For repositories containing Python code (case-insensitive match on language name), what was the average number of substantive GitHub commits made per month in 2016, broken down by commit type? First, filter to only commits where the condition 'This commit message represents a substantive code change (not a merge, ver...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq037
HUMAN_GENOME_VARIANTS
main
For refined human genetic variations collected in phase 3 on 2015-02-20 with reference bases 'AT' and 'TA', filter to only those variants where the condition 'This ancestral allele annotation indicates a structural genetic change involving insertion or deletion of base pairs: ' concatenated with the ancestral allele de...
[ "AI_AGG", "AI_FILTER" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq038_div
NEW_YORK
diversity
What are the top 10 Citibike stations by highest proportion of group rides, what area or landmark is each station near, and what is each station's group ride proportion (rounded to 6 decimal places)? Group rides are defined as round trips (trips that start and end at the same station) where, during the same 2-minute ti...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq042
NOAA_DATA
main
For LaGuardia Airport (station ID '725030') on June 12 for each year from 2011 through 2020, retrieve the year, average temperature (rounded to 1 decimal place), average wind speed (rounded to 1 decimal place), and average precipitation (rounded to 2 decimal places). Additionally, classify each year's weather quality i...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq043_div
TCGA
diversity
For bladder cancer patients in the TCGA-BLCA project who have CDKN2A mutations (identified from the MC3 somatic mutation dataset SOMATIC_MUTATION_HG19_MC3_2017_02), retrieve their RNA expression levels for genes MDM2, TP53, CDKN1A, and CCNE1 (from RNASEQ_HG19_GDC_2017_02, pivoted as separate columns per gene) along wit...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq045
NOAA_DATA
main
Among Washington State weather stations that recorded more than 150 rainy days in 2023 but fewer rainy days compared to 2022 (where a rainy day is defined as having precipitation greater than 0 mm and not equal to 99.99), classify each station into exactly one of ['Airport', 'Mountain/Pass', 'Urban', 'Rural/Remote'] ba...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq045_div
NOAA_DATA
diversity
Which airport or mountain pass weather stations in Washington State recorded more than 150 rainy days in 2023 but fewer rainy days compared to 2022? A rainy day is defined as having precipitation greater than zero millimeters and not equal to 99.99. Extract the facility type from each station name into a field named 'f...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq046
TCGA_BIOCLIN_V0
main
Find case barcodes and their corresponding GDC file URLs for female patients aged 30 or younger diagnosed with breast cancer (BRCA) in the TCGA database. First identify patients from the Annotations table where entity_type is "Patient" and either category is "History of unacceptable prior treatment related to a prior/o...
[ "AI_FILTER", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq046_div
TCGA_BIOCLIN_V0
diversity
For female breast cancer (BRCA) patients aged 30 or younger from the TCGA database who do not have disqualifying annotations (where "disqualifying" means entity_type is 'Patient' AND either category equals 'History of unacceptable prior treatment related to a prior/other malignancy' OR classification equals 'Redaction'...
[ "AI_AGG" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq047
NEW_YORK_NOAA
main
Analyze the relationship between complaint types and daily temperature in New York City using temperature data from LaGuardia (STN=725030) and JFK (STN=744860) airports for 2008-2017, where daily temperature is computed only on days when BOTH airports have valid readings (excluding 9999.9). For each complaint type with...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq048
NEW_YORK_NOAA
main
Among complaint types with more than 3000 total requests from 2011-01-01 through 2020-12-31 (treating days with no complaints of a given type as having zero complaints for proportion calculations), which show the strongest positive and strongest negative Pearson correlations between daily complaint proportion (type-spe...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq052
PATENTSVIEW
main
For U.S. patents in CPC subsection 'C05' or group 'A01G', retrieve the patent ID, title, application date (using the earliest application date if multiple exist), the number of backward citations (patents cited by the current patent whose application date is within 1 month before the current patent's application date, ...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq053
NEW_YORK
main
Calculate the change in the number of living trees for each fall color in New York City from 1995 to 2015. For 1995, count trees where status is not 'Dead'; for 2015, count trees where status is 'Alive'. Match species between census data and the tree_species table using the uppercase form of their scientific names (wit...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq054_div
NEW_YORK
diversity
For the top 10 tree species in New York ranked by total tree count growth from 1995 to 2015 (with ties broken alphabetically by Latin name), provide their uppercase Latin names (excluding empty Latin names), common names, total tree counts for 1995, 2005, and 2015, alive and dead counts for each year (where 'alive' mea...
[ "AI_AGG", "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }
sf_bq055
GOOGLE_DEI
main
For the top 3 races with the largest absolute percentage point differences between Google's 2021 overall hiring rates and the average 2021 BLS percentages for technology sectors (subsectors 'Internet publishing and broadcasting and web search portals', 'Software publishers', 'Data processing, hosting, and related servi...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1, 2, 3, 4 ] }
sf_bq055_div
GOOGLE_DEI
diversity
Summarize the representation gaps between Google's 2021 overall hiring data (from the non-intersectional hiring table) and the 2021 BLS technology sector simple averages (unweighted average of percentages across subsectors 'Internet publishing and broadcasting and web search portals', 'Software publishers', 'Data proce...
[ "AI_AGG" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq057
CRYPTO
main
Which month in 2021 had Bitcoin CoinJoin activity most similar to 'Strong privacy adoption characterized by high CoinJoin volume percentage and significant UTXO involvement in privacy transactions'? CoinJoin transactions are defined as non-coinbase transactions with more than 2 outputs, output value less than or equal ...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq059
SAN_FRANCISCO_PLUS
main
What is the highest average speed of any single bike trip (rounded to 1 decimal place, in m/s) starting from the top 10 Berkeley stations most semantically similar to 'park, plaza, or recreational outdoor area', where the trip distance is greater than 1000 meters? Calculate average speed for each trip as distance divid...
[ "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq060
CENSUS_BUREAU_INTERNATIONAL
main
Among countries with an area greater than 500 square kilometers in 2017, classify each country into exactly one of ['Economic Hub', 'Conflict/Displacement', 'Regional Gateway', 'Other'] based on the country name. Then, filter to only countries classified as 'Economic Hub' or 'Conflict/Displacement' to focus on the most...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq061
CENSUS_BUREAU_ACS_1
main
Which California census tract code (tract_ce) experienced the largest absolute median income increase between 2015 and 2018, among tracts where the condition 'The income change from $[2015_income] to $[2018_income] represents exceptional economic transformation and significant upward mobility: ' evaluates to true? The ...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq063_div
DEPS_DEV_V1
diversity
Find the GitHub URL (returned as stored, without modification) of the latest released version of the NPM package that has the highest number of dependencies in its latest released version. Exclude packages whose names contain the character '@' and only consider URLs where the link label is 'SOURCE_REPO' and the URL con...
[ "AI_EXTRACT" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq071
NOAA_DATA_PLUS
main
For named Atlantic hurricanes (basin 'NA', excluding names 'NOT_NAMED' and 'UNNAMED') with maximum wind speed of at least 100 knots, find the top 20 unique hurricane names with characteristic profiles most similar to 'Category 5 hurricane with maximum winds exceeding 150 knots, minimum pressure below 920 mb, causing ca...
[ "AI_SIMILARITY" ]
functions_st_within.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq071_div
NOAA_DATA_PLUS
diversity
For each city and its associated zip code where hurricanes have fallen within the zip code boundaries, provide the count of distinct hurricanes and an AI-aggregated list of hurricane names. The hurricane names should be pre-sorted alphabetically in SQL, then passed to AI aggregation with the instruction: 'Return the pr...
[ "AI_AGG" ]
functions_st_within.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq072_div
DEATH
diversity
For each age from 12 through 18 (inclusive, where AgeType = 1), provide in a single row per age: the total number of vehicle-related deaths, the number of vehicle-related deaths among individuals identified as Black (race description containing 'black'), the total number of firearm-related deaths, and the number of fir...
[ "AI_AGG" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1, 2, 3, 4 ] }
sf_bq077
CHICAGO
main
For each year from 2010 to 2016, which location type had the highest monthly motor vehicle theft count, considering only automobile thefts? Filter to thefts where the condition 'This vehicle theft description refers to a standard automobile or car (not motorcycle, truck, or bus): ' concatenated with the description fie...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq078
OPEN_TARGETS_PLATFORM_2
main
First, identify all target genes that are associated with disease 'EFO_0000676' from the data source 'IMPC'. From these genes, select the top 20 by their overall association score for the same disease. Then, filter to only those where the condition 'The following gene is involved in immune system or inflammatory proces...
[ "AI_FILTER", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq079
USFS_FIA
main
Using the latest evaluation group per state for the 'EXPCURR' evaluation type, identify which state has the highest total timberland acreage and which has the highest total forestland acreage. Calculate total acres by summing macroplot and subplot acres from the pre-aggregated timberland and forestland estimate tables....
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq080
CRYPTO
main
Provide daily cumulative counts of sophisticated smart contract deployments on Ethereum between August 30, 2018 and September 30, 2018. A deployment is considered sophisticated if filtering with the phrase 'This deployment represents a sophisticated smart contract with substantial computational requirements: ' concaten...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq081
SAN_FRANCISCO_PLUS
main
Find the latest ride for each region between 2014 and 2017, and classify each starting station into one of ['Business District', 'Residential Area', 'Transit Hub', 'Parks/Recreation', 'Other'] based on the station name. Only include rides where the station is classified as 'Business District' or 'Transit Hub', and wher...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq084
GOOG_BLOCKCHAIN
main
For each month in 2023 that recorded at least one transaction on the Polygon blockchain, what were the total transaction count and transactions per second (calculated by dividing the monthly count by the exact number of seconds in that month, rounded to 4 decimal places)? Rank the results by how closely each month's pe...
[ "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq087
COVID19_SYMPTOM_SEARCH
main
Calculate the overall percentage change in average weekly search frequency for the symptom 'Anosmia' across the five NYC counties (Bronx County, Queens County, Kings County, New York County, Richmond County) by taking a single pooled average of all county-week observations from January 1, 2019 through December 31, 2019...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq088
COVID19_SYMPTOM_SEARCH
main
For the United States (filtering where country_region equals 'United States'), calculate the average anxiety and depression symptom search levels from weekly country data for two periods: January 1, 2019 to January 1, 2020 (pre-pandemic, using date >= '2019-01-01' AND date < '2020-01-01') and January 1, 2020 to January...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq090
CYMBAL_INVESTMENTS
main
What is the signed difference in average intrinsic value between trades using the 'Feeling-Lucky' strategy (PartyID starting with 'LUCKY') and those using the 'Momentum' strategy (PartyID starting with 'MOMO'), for long-side trades only? Calculate intrinsic value as the greater of zero or (LastPx minus StrikePrice). R...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq091_div
PATENTS
diversity
For the assignee with the most distinct patent applications in category 'A61' (identified from either CPC or IPC classification codes starting with 'A61', using harmonized assignee names with fallback to raw assignee when harmonized is unavailable, normalized to uppercase), determine the year in which they filed the mo...
[ "AI_AGG", "AI_CLASSIFY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq092
CRYPTO
main
In April 2023, among Dash addresses with extreme balance activity, identify those semantically similar to 'Major cryptocurrency market participant with extreme balance indicating whale-level accumulation or distribution activity' (similarity threshold above 0.3). For the similarity comparison, format each address's des...
[ "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq095
OPEN_TARGETS_PLATFORM_1
main
For drugs that have completed clinical trials for pancreatic endocrine carcinoma (disease ID EFO_0007416), filter to those whose mechanism of action semantically indicates targeted molecular therapy by evaluating the condition 'This drug mechanism involves targeted molecular therapy: ' concatenated with the mechanism o...
[ "AI_FILTER", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq095_div
OPEN_TARGETS_PLATFORM_1
diversity
For drugs with completed clinical trials for pancreatic endocrine carcinoma (disease ID EFO_0007416), first filter to only those drugs whose mechanism of action involves inhibiting or blocking biological activity, using the filter condition 'This drug mechanism involves inhibiting or blocking biological activity: ' con...
[ "AI_EXTRACT", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq097
SDOH
main
For Massachusetts regions (where GeoName ends with ', MA'), calculate the increase in average earnings per job between 2012 and 2017 (computed as the 2017 value minus the 2012 value of Earnings_per_job_avg). Classify each region into exactly one of ['Urban', 'Suburban', 'Rural', 'Coastal'] based on the GeoName. Filter ...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq098
NEW_YORK_PLUS
main
For NYC yellow taxi trips where both pickup and dropoff occurred between January 1, 2016 00:00:00 UTC and January 8, 2016 00:00:00 UTC (i.e., the full week of January 1-7 inclusive), calculate the no-tip percentage for each pickup borough, rounded to 2 decimal places. Apply data quality filters: dropoff must occur afte...
[ "AI_CLASSIFY", "AI_FILTER" ]
taxi_tip_rate.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq099
PATENTS
main
For patent class A01B3, analyze the top 3 corporate assignees based on total number of distinct applications. First, classify each assignee into exactly one of ['Corporation', 'Research Institution', 'Government Agency', 'Individual', 'Other'] based on the assignee name, and only consider those classified as 'Corporati...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq102
GNOMAD
main
Identify which start positions are associated with missense variants in the BRCA1 gene on chromosome 17, where the reference base is 'C' and the alternate base is 'T', using gnomAD v2.1.1 data from both exomes and genomes tables. For matching, split the Consequence field by '&' and require an exact match to 'missense_v...
[ "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq103
GNOMAD
main
Generate summary statistics on genetic variants in the genomic region chr1:55039447-55064852 from gnomAD v3 data. Calculate the number of variants, total allele count, total number of alleles, distinct gene symbols from VEP annotations (comma-separated without spaces, sorted alphabetically), and mutation density as (re...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq104_div
GOOGLE_TRENDS
diversity
Based on the most recent refresh date in the TOP_RISING_TERMS table, find the week closest to exactly one year prior to the latest available week (using DATEADD(YEAR, -1, latest_week) as the target date). From the rank-1 rising search terms of that week, take the top 50 terms by percent_gain (descending). For each of t...
[ "AI_EXTRACT", "AI_SENTIMENT" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq108
NHTSA_TRAFFIC_FATALITIES
main
For the first 1000 accidents (by consecutive_number) from the 2015 dataset occurring January through August that involved more than one distinct person (i.e., filter to multi-person accidents first, then take the first 1000 by consecutive_number), classify each accident's injury profile into exactly one of ['Multiple C...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq109
OPEN_TARGETS_GENETICS_1
main
Find the average, variance, and max-min difference of log2(h4/h3), along with the QTL source name and its category classification (as a plain string label, not JSON) for the maximum log2(h4/h3) value, from colocalization data where: right gene id is 'ENSG00000169174', h4 > 0.8, h3 < 0.02, the reported trait is semantic...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq110
SDOH
main
For New York CoC regions with homeless veteran data available in both 2012 and 2018, classify each region into exactly one of ['Major Metropolitan', 'Urban', 'Suburban', 'Rural'] based on the CoC region name. Show only regions classified as 'Major Metropolitan' or 'Urban', ranked by semantic similarity to 'densely popu...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq113
BLS
main
Among Utah counties where the semantic condition 'This county experienced a significant construction boom with substantial job growth: ' concatenated with the county name, ' had ', the percentage increase value, '% growth in construction employment from 2000 to 2018' evaluates to true, which county had the greatest per...
[ "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq114
OPENAQ
main
Which three cities show the largest absolute PM2.5 difference between 1990 EPA measurements (using units_of_measure = 'Micrograms/cubic meter (LC)' and parameter_name = 'Acceptable PM2.5 AQI & Speciation Mass') and 2020 OpenAQ measurements (where pollutant = 'pm25', year extracted from timestamp), matched by latitude a...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq114_div
OPENAQ
diversity
Among monitoring sites in protected natural areas, which three cities show the largest absolute difference between 1990 EPA PM2.5 measurements (using units_of_measure = 'Micrograms/cubic meter (LC)' and parameter_name = 'Acceptable PM2.5 AQI & Speciation Mass') and 2020 OpenAQ PM2.5 measurements (where pollutant = 'pm2...
[ "AI_EXTRACT", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq115
CENSUS_BUREAU_INTERNATIONAL
main
Among countries classified as either 'Developing Nation' or 'Emerging Economy' from the categories ['Developed Nation', 'Developing Nation', 'Emerging Economy', 'Other'] based on country name, and where the semantic similarity between the demographic profile formatted as '{country_name} has {percentage rounded to 1 dec...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [ 0 ] }
sf_bq117
NOAA_DATA
main
Among storm events from the past 15 years (where NULL property damage is treated as 0), first identify the top 500 events by property damage as candidates. From these candidates, filter to only events where the condition 'This weather event type represents a severe or catastrophic weather phenomenon that typically caus...
[ "AI_FILTER" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq120
SDOH
main
Using SNAP enrollment data from January 1, 2017 and 2017 5-year ACS county-level data, identify the top 10 counties by total SNAP-participating households, where SNAP households are summed across all sub-county records per county FIPS code. Exclude counties with zero SNAP participation. Only include counties where the ...
[ "AI_FILTER", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq120_div
SDOH
diversity
Using the 2017 5-year ACS county-level data and SNAP enrollment data from January 1, 2017, identify the top 10 counties with the highest total SNAP-participating households (summed across all subcounties per FIPS code), excluding counties where total SNAP participation is zero. For each county, extract from the geograp...
[ "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq126
THE_MET
main
For objects in the 'Photographs' department with 'Photograph' in their object name, created by a known artist (where artist_display_name is not null and not 'Unknown'), with an object end date of 1839 or earlier, classify each object's medium into exactly one of ['Photogenic Drawing', 'Calotype', 'Direct Positive', 'Da...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq126_div
THE_MET
diversity
What are the titles, artist names, and extracted technique details for photographs with 'Photograph' in their object names from the 'Photographs' department, created by known artists (not NULL or 'Unknown'), with an object end date of 1839 or earlier? Show one representative image per object (the first alphabetically b...
[ "AI_CLASSIFY", "AI_EXTRACT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq128
PATENTSVIEW
main
For U.S. patents filed between January 1, 2014 and February 1, 2014 (inclusive) in biotechnology-related CPC classifications (subsection IDs C05-C13 or group IDs in A01G, A01H, A61K, A61P, A61Q, B01F, B01J, B81B, B82B, B82Y, G01N, G16H), retrieve the top 20 patents most semantically similar to 'cancer treatment and dru...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
forward_backward_citation.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq135
CRYPTO
main
Among successful transactions (where success is true) from the Zilliqa TRANSACTIONS table before 2022, for each of the top 10 dates by total transaction amount, calculate the semantic similarity of their transaction data to the reference text 'staking rewards withdrawal and delegation'. For the similarity calculation, ...
[ "AI_AGG", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq137
CENSUS_BUREAU_USA
main
Find all zip code areas located within 10 kilometers of the coordinates (-122.3321, 47.6062) by joining the 2010 census population data (summing male and female populations where minimum_age is NULL, indicating no lower age bound) and the zip code area information. For classification: first determine if an area is 'Wat...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
functions_st_dwithin.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq137_div
CENSUS_BUREAU_USA
diversity
For zip code areas within 10 kilometers of coordinates (-122.3321, 47.6062), group by county and state code to report: county name, state name (taking the maximum value when inconsistent), state code, number of zip codes, total population (summing male and female populations from 2010 census data where gender is not nu...
[ "AI_AGG" ]
functions_st_dwithin.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq143_div
CPTAC_PDC
diversity
Using CPTAC proteomics and RNAseq data for Clear Cell Renal Cell Carcinoma, join 'Primary Tumor' and 'Solid Tissue Normal' samples (filtered to Kidney primary site and CPTAC-3 project) on sample submitter IDs and gene symbols through the aliquot mapping table (project 'CPTAC3 Discovery and Confirmatory'). Calculate the...
[ "AI_AGG" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq150
TCGA_HG19_DATA_V0
main
Assess whether different functional categories of TP53 genetic variants affect log10-transformed TP53 expression levels in TCGA-BRCA primary tumor samples (sample type '01'). Classify each Variant_Classification into exactly one of ['Loss_of_Function', 'Missense', 'Silent', 'Other'] based on the mutation type descripti...
[ "AI_AGG", "AI_CLASSIFY" ]
TCGA_F_Score.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq154
PANCANCER_ATLAS_1
main
What is the Kruskal-Wallis H-score for IGF2 gene expression among LGG study patients grouped by semantic tumor type category? For each patient, calculate their IGF2 expression as the average of log10(normalized_count + 1) across all their samples where normalized_count is not null. Filter histological types to only th...
[ "AI_CLASSIFY", "AI_FILTER" ]
Regulome_Explorer_Kruskal-Wallis_test_for_numerical_and_categorical_data.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq156
PANCANCER_ATLAS_1
main
Compute the t-score (rounded to 2 decimals) comparing mean expression levels of gene DRG2 between two groups in the LGG study: (1) participants with functionally significant TP53 mutations and (2) participants without any TP53 mutations. Expression levels are calculated as log10(normalized_count + 1) for primary tumor...
[ "AI_FILTER" ]
t_score.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq157
PANCANCER_ATLAS_1
main
Compute the T-score measuring the statistical difference in DRG2 gene expression between LGG patients with and without loss-of-function TP53 mutations. For each patient, calculate the average of log10(normalized_count + 1) for DRG2 expression across all their samples, including only samples that appear in the MC3_MAF_V...
[ "AI_FILTER" ]
Regulome_Explorer_T_test_for_numerical_and_binary_data.md
{ "ignore_order": true, "condition_cols": [] }
sf_bq158
PANCANCER_ATLAS_1
main
Among breast cancer (BRCA) patients in the PanCancer Atlas who have tumor samples in the mutation data, which five histological types exhibit the highest percentage of patients with CDH1 gene mutations? Consider only non-silent, coding mutations (excluding Silent, Intron, IGR, 3'UTR, 5'UTR, lincRNA, RNA, 3'Flank, and 5...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq160
META_KAGGLE
main
What are the earliest 5 forum topics from sub-forums under the parent forum titled "General" that are classified as either 'Feature Request' or 'Bug Report' based on their title, using the categories ['Feature Request', 'Bug Report', 'Technical Question', 'General Discussion', 'Other'], and where the condition 'This fo...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq160_div
META_KAGGLE
diversity
For the earliest five forum topics belonging to any sub-forum under the parent forum titled "General", provide the creation date (as a timestamp), topic title, parent forum title, reply count (total messages in the topic), distinct user replies count (unique users who posted), total upvotes (across all messages in the ...
[ "AI_AGG", "AI_SENTIMENT" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq162
HTAN_1
main
For the HTAN WUSTL center in the 5th revision (r5) data, list all imaging assay types that have Level2 data available, along with any higher-level data (Level3, Level4) derived from them through entityId relationships traced via the ID_PROVENANCE_R5 table to the actual IMAGING_LEVEL3_SEGMENTATION_METADATA_R5 and IMAGIN...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq163
HTAN_2
main
In the HTAN scRNAseq MSK-SCLC combined samples dataset, among epithelial cells in cluster 41 of 74-year-old human stage patients, identify genes that satisfy the semantic condition evaluated by concatenating 'The gene ' with the gene name followed by ' has known associations with cancer biology, tumor development, or o...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq167
META_KAGGLE
main
Find the Kaggle user pair with the strongest 'One-way Admirer' voting relationship in ForumMessageVotes, where one user has given the other the most distinct upvotes. Consider only valid user pairs (excluding user IDs of -1 or NULL, and excluding self-votes) where the giver has given at least 50 distinct upvotes. Class...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1, 2, 3, 4 ] }
sf_bq170
TCGA_MITELMAN
main
For breast cancer cases (TCGA-BRCA) from Release 23 of the active GDC archive, analyze copy number variations (CNVs) across all cytobands on every chromosome. For each cytoband and case, compute the overlap between the cytoband region and the case's copy number segments, then calculate the overlap-weighted average copy...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
copy_number_variations.md
{ "ignore_order": false, "condition_cols": [] }
sf_bq172
CMS_DATA
main
Among the top 30 drugs by prescription count in New York State during 2014, classify each drug's generic name into exactly one of ['Cardiovascular', 'Pain Management', 'Diabetes', 'Respiratory', 'Mental Health', 'Other']. From the drugs classified as 'Cardiovascular', filter to only those where the condition 'This medi...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq176
TCGA_MITELMAN
main
For TCGA-LAML study cases, identify those with the highest weighted average copy number in the proximal long arm region of chromosome 15. First, select cytobands from chromosome 15 where the condition 'This cytoband represents the proximal long arm region band 11 of chromosome 15 (15q11): {cytoband_name}' evaluates to ...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq177
CMS_DATA
main
For the provider with the highest total inpatient Medicare cost from 2011 through 2015 (computed as the sum of average_medicare_payments multiplied by total_discharges), list that provider's yearly average inpatient cost and yearly average outpatient cost for each calendar year in this period, with costs rounded to 2 d...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq186
SAN_FRANCISCO
main
For each year-month combination (formatted as YYYYMM) derived from San Francisco bike share trips where the start station's landmark is 'San Francisco', calculate the first trip duration in minutes, the last trip duration in minutes, the highest trip duration in minutes, and the lowest trip duration in minutes. The 'fi...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq188
THELOOK_ECOMMERCE
main
For the top-selling product category (determined by total purchase quantity from order items excluding those with status 'Cancelled', with alphabetical tie-breaking if categories have equal quantities), identify the top 30 products whose names are most semantically similar to 'comfortable everyday basics for daily wear...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq188_div
THELOOK_ECOMMERCE
diversity
Among all product categories in the dataset, identify the category with the highest total purchase quantity (counting all order items regardless of status, with ties broken by category name alphabetically), and for that specific category, calculate the average time in minutes that users spend on each product page visit...
[ "AI_AGG" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq191
GITHUB_REPOS_DATE
main
What are the top 2 repositories from the 2017 GitHub WatchEvent data with more than 300 distinct watchers (joined with sample_files) that are most semantically similar to 'modern software development frameworks and libraries'? Only consider repositories classified as 'Machine Learning/AI' or 'Web Development' based on ...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq191_div
GITHUB_REPOS_DATE
diversity
From the 2017 GitHub WatchEvent data, which two repositories have the most distinct watchers (with more than 300 watchers each), and what programming languages does each repository primarily use? For each repository, aggregate its file paths using the instruction: 'Based on these file paths, identify the main programmi...
[ "AI_AGG" ]
null
{ "ignore_order": false, "condition_cols": [] }
sf_bq192
GITHUB_REPOS_DATE
main
Among Python repositories with open-source licenses ('artistic-2.0', 'isc', 'mit', 'apache-2.0') that have `.py` files on the master branch and had at least one activity event in April 2022, find the repository most semantically related to 'container orchestration and cloud deployment'. Classify each repository into ex...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [ 0, 1 ] }
sf_bq194
GITHUB_REPOS
main
Among all Python (*.py), R (*.r, *.R, *.Rmd, *.rmd), and IPython notebook (*.ipynb) files in the GitHub sample dataset, extract import statements and identify the library/module names. From the top 100 most frequently imported libraries, classify each into exactly one of ['Data Science', 'System Utility', 'Web Developm...
[ "AI_CLASSIFY", "AI_FILTER" ]
null
{ "ignore_order": true, "condition_cols": [] }
sf_bq195
CRYPTO
main
What are the top 10 Ethereum addresses by balance before September 1, 2021, considering only successful transactions (status=1 for traces, receipt_status=1 for transactions) with no call type or call type 'call'? Gas fees should be deducted from transaction senders using receipt_effective_gas_price only for successful ...
[ "AI_CLASSIFY", "AI_SIMILARITY" ]
null
{ "ignore_order": false, "condition_cols": [] }
End of preview. Expand in Data Studio

Spider2-AIFunc

A benchmark for AI-Native Text-to-SQL with Snowflake Cortex AISQL

arXiv GitHub License: MIT Snowflake Cortex AISQL

Spider2-AIFunc extends Spider 2.0 and Spider2-Snow with real-world tasks that require Snowflake Cortex AISQL functions inside SQL queries.

This dataset contains the released task metadata:

  • data/spider2-aifunc.jsonl: 393 tasks with natural-language instructions, database IDs, target AISQL functions, external-knowledge references, and evaluation configs.

Gold SQL, gold execution results, Spider2-Snow database resources, and official evaluation submissions are not included here.

from datasets import load_dataset

ds = load_dataset("tianyang/spider2-aifunc")
print(ds["train"][0])

For setup instructions, attribution, terms, evaluation details, examples, and baseline code, see the GitHub repository.

Downloads last month
-

Paper for tianyang/spider2-aifunc