From 25101b4b9191e9a00eb4fb690ba45cc0b5bfd157 Mon Sep 17 00:00:00 2001 From: kb42 Date: Sun, 17 Aug 2025 22:19:51 -0500 Subject: [PATCH] fixed issues with sf_bq236 and sf_bq320 --- spider2-snow/evaluation_suite/gold/exec_result/sf_bq320.csv | 2 +- spider2-snow/evaluation_suite/gold/sql/sf_bq320.sql | 4 ++-- spider2-snow/spider2-snow.jsonl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spider2-snow/evaluation_suite/gold/exec_result/sf_bq320.csv b/spider2-snow/evaluation_suite/gold/exec_result/sf_bq320.csv index 4f0c3ce1..8f8b554c 100644 --- a/spider2-snow/evaluation_suite/gold/exec_result/sf_bq320.csv +++ b/spider2-snow/evaluation_suite/gold/exec_result/sf_bq320.csv @@ -1,2 +1,2 @@ total_count -214 \ No newline at end of file +39 \ No newline at end of file diff --git a/spider2-snow/evaluation_suite/gold/sql/sf_bq320.sql b/spider2-snow/evaluation_suite/gold/sql/sf_bq320.sql index d2302806..3f1c7a64 100644 --- a/spider2-snow/evaluation_suite/gold/sql/sf_bq320.sql +++ b/spider2-snow/evaluation_suite/gold/sql/sf_bq320.sql @@ -1,5 +1,5 @@ SELECT - COUNT(*) AS "total_count" + COUNT(DISTINCT "StudyInstanceUID") AS "total_count" FROM IDC.IDC_V17.DICOM_PIVOT AS "dicom_pivot" WHERE @@ -15,7 +15,7 @@ WHERE FROM IDC.IDC_V17.DICOM_PIVOT AS "dicom_pivot" WHERE - LOWER("dicom_pivot"."SegmentedPropertyTypeCodeSequence") LIKE LOWER('15825003') + LOWER("dicom_pivot"."SegmentedPropertyTypeCodeSequence") = LOWER('15825003') GROUP BY "StudyInstanceUID" INTERSECT diff --git a/spider2-snow/spider2-snow.jsonl b/spider2-snow/spider2-snow.jsonl index 5e6038df..200d9aa7 100644 --- a/spider2-snow/spider2-snow.jsonl +++ b/spider2-snow/spider2-snow.jsonl @@ -69,7 +69,7 @@ {"instance_id": "sf_bq117", "instruction": "What is the total number of severe storm events that occurred in the most affected month over the past 15 years according to NOAA records, considering only the top 100 storm events with the highest property damage?", "db_id": "NOAA_DATA", "external_knowledge": null} {"instance_id": "sf_bq419", "instruction": "Which 5 states had the most storm events from 1980 to 1995, considering only the top 1000 states with the highest event counts each year? Please use state abbreviations.", "db_id": "NOAA_DATA", "external_knowledge": null} {"instance_id": "sf_bq071", "instruction": "Can you provide the count of hurricanes and a list of hurricane names (sorted alphabetically and separated by commas) for each city and its associated zip code, where the hurricanes fall within the boundaries of the zip codes? Please exclude any unnamed hurricanes, and sort the results by the count of hurricanes in descending order. The output should include the following columns: city, zip code, state, count of hurricanes, and the list of hurricanes.", "db_id": "NOAA_DATA_PLUS", "external_knowledge": "functions_st_within.md"} -{"instance_id": "sf_bq236", "instruction": "What are the top 5 zip codes of the areas in the United States that have experienced the most hail storm events in the past 10 years? Don't use data from hail reports table.", "db_id": "NOAA_DATA_PLUS", "external_knowledge": "functions_st_within.md"} +{"instance_id": "sf_bq236", "instruction": "What are the top 5 zip codes of the areas in the United States that have experienced the most hail storm events from 2014 to 2024 (11-year period)? Don't use data from hail reports table.", "db_id": "NOAA_DATA_PLUS", "external_knowledge": "functions_st_within.md"} {"instance_id": "sf_bq356", "instruction": "Among all NOAA GSOD weather stations that recorded valid daily temperature data (non-missing temp, max, min) in 2019 and whose period of record began on or before January 1, 2000, and continued through at least June 30, 2019, how many of these stations achieved 90% or more of the maximum possible number of valid temperature-record days in 2019?", "db_id": "NOAA_DATA", "external_knowledge": null} {"instance_id": "sf_bq042", "instruction": "Can you help me retrieve the average temperature, average wind speed, and precipitation for LaGuardia Airport in NYC on June 12 for each year from 2011 through 2020, specifically using the station ID 725030?", "db_id": "NOAA_DATA", "external_knowledge": null} {"instance_id": "sf_bq394", "instruction": "What are the top 3 months between 2010 and 2014 with the smallest sum of absolute differences between the average air temperature, wet bulb temperature, dew point temperature, and sea surface temperature, including respective years and sum of differences? Please present the year and month in numerical format.", "db_id": "NOAA_DATA", "external_knowledge": null}