Instruction: I am organizing integrated water-quality records for the lower Neches River during 1978-1984. Starting downstream from NECHES RIVER AT CR 4915, I want to identify the nearest TCEQ long-term reference station that still represents the inland Neches River mainstem, and then tabulate the start year of nine Characteristic Groups at that station. Search downstream along the mainstem and retain only monitoring stations whose detail page labels the site type as River/Stream. Exclude stations located in lake or reservoir waters or in the Sabine-Neches outlet boundary reach. Among stations that satisfy these location conditions, identify the nearest qualifying station for which all nine record categories cover 1978-1984: Biological, Algae, Phytoplankton; Inorganics, Major, Non-metals; Inorganics, Minor, Metals; Microbiological; Nutrient; Organics, Other; Organics, PCBs; Organics, Pesticide; and Physical. Finally, output a table for that final station, one row per Characteristic Group, with columns rank|MonitoringLocationIdentifier|HUC|County|characteristic_group|group_start_year|common_start_year. The row order is fixed as Biological, Algae, Phytoplankton; Inorganics, Major, Non-metals; Inorganics, Minor, Metals; Microbiological; Nutrient; Organics, Other; Organics, PCBs; Organics, Pesticide; Physical.

Output a 9-row table with columns rank|MonitoringLocationIdentifier|HUC|County|characteristic_group|group_start_year|common_start_year.

1|TCEQMAIN-10580|12020003|Hardin County|Biological, Algae, Phytoplankton|1972|1977
2|TCEQMAIN-10580|12020003|Hardin County|Inorganics, Major, Non-metals|1971|1977
3|TCEQMAIN-10580|12020003|Hardin County|Inorganics, Minor, Metals|1974|1977
4|TCEQMAIN-10580|12020003|Hardin County|Microbiological|1972|1977
5|TCEQMAIN-10580|12020003|Hardin County|Nutrient|1972|1977
6|TCEQMAIN-10580|12020003|Hardin County|Organics, Other|1974|1977
7|TCEQMAIN-10580|12020003|Hardin County|Organics, PCBs|1974|1977
8|TCEQMAIN-10580|12020003|Hardin County|Organics, Pesticide|1977|1977
9|TCEQMAIN-10580|12020003|Hardin County|Physical|1971|1977

Search only among TCEQ monitoring stations downstream of NECHES RIVER AT CR 4915 that still represent the inland Neches River mainstem.

A candidate station must cover 1978-1984 in all nine Characteristic Groups and, on the detail page, must still qualify as River/Stream, outside lake or reservoir waters, and outside the Sabine-Neches outlet boundary reach.

The final output must be centered on the single winning station and list group_start_year plus common_start_year row by row in the fixed nine-group order.

the fixed downstream starting point at NECHES RIVER AT CR 4915 yields candidate inland mainstem stations across successive downstream HUCs

detail pages yield River/Stream validity, inland-vs-boundary semantics, and nine-group period-of-record coverage across 1978-1984

final rows are produced only after one winning station survives the inland-mainstem checks and the requirement that all nine groups match the same station, after which its nine group start years are emitted in the required order

the nearest downstream mainstem station remains provisional until all nine characteristic groups have been checked separately and matched back to the same station ID

the downstream search must continue to the next mainstem HUC when the first candidate fails the nine-group coverage requirement

location semantics remain valid only after detail-page exclusion of lake/reservoir and Sabine-Neches boundary stations

Neches River inland mainstem stations downstream of NECHES RIVER AT CR 4915, validated within the fixed 1978-1984 window against nine characteristic groups as largely stable reference information

Exclude results that retain TCEQMAIN-10591 merely because it appears to be the nearest downstream mainstem station.

Exclude results that do not check the nine Characteristic Groups separately and verify that they all belong to the same station ID.

emit 1 through 9 in the fixed characteristic-group order required by the task

emit the HUC as an 8-digit string with no separators

use the county name exactly as shown on the detail page

preserve the group label exactly as listed in the task

repeat the earliest year in which all nine required groups are simultaneously present for the chosen station

emit rows in the fixed nine-group order stated in the task


Instruction: I am preparing a public health brief on changes in U.S. home births in 2020. I need to identify months where the home-birth rate among all mothers increased by at least 25% compared to the same month in 2019, and also examine the corresponding changes for non-Hispanic Black mothers and Hispanic mothers in those months. First, compare the home-birth rates for all mothers by calendar month between 2019 and 2020, retaining only months in 2020 where the rate increased by at least 25% relative to the same month in 2019. Then, for those months, add the 2020 home-birth rates for non-Hispanic Black mothers and Hispanic mothers, along with their changes relative to the same month in 2019. Finally, output a multi-row pipe-delimited table in calendar month order with the fixed header: month|all_2019|all_2020|all_rel|black_2020|black_rel|hispanic_2020|hispanic_rel. All numeric values should be plain numbers without percent signs.

Output a multi-row pipe-delimited table in calendar month order with the fixed header: month|all_2019|all_2020|all_rel|black_2020|black_rel|hispanic_2020|hispanic_rel. All numeric values should be plain numbers without percent signs.

The home-birth numerator must use the full home category, not Home intended alone.

For those months, add the 2020 home-birth rates for non-Hispanic Black and Hispanic mothers, along with their changes relative to the same month in 2019.

Monthly natality queries yield the 2019 vs 2020 home-birth rates for all mothers and the candidate month set.

Follow-up race/ethnicity queries yield the 2020 home-birth rates for non-Hispanic Black and Hispanic mothers, plus their same-month changes versus 2019.

Final rows are produced only after qualifying months are determined from rate growth, and the resulting month set is reused for both subgroup backfill chains.

Month selection must be based on relative rate increase rather than counts alone.

The home-birth numerator must use Residence or an equivalent full-home measure rather than Home intended alone before downstream subgroup queries run.

Subgroup columns must be generated from the resulting month set rather than appended to earlier rows.

2019 and 2020 U.S. natality monthly home-birth rates for all mothers, non-Hispanic Black mothers, and Hispanic mothers.

Exclude month-row sets that misinterpret "rate increase of at least 25%" as "count increase of at least 25%."

Exclude results that use only the Home intended category instead of the full home numerator.

Exclude results that add subgroup columns to an incorrect month set.

Required literal first row: month|all_2019|all_2020|all_rel|black_2020|black_rel|hispanic_2020|hispanic_rel

Use the English month name and keep calendar order.

All numeric outputs are plain numbers without a percent sign.

all_rel, black_rel, and hispanic_rel are emitted as integer percentages without the `%` character.


Instruction: I am preparing a one-page public health brief on 2021 U.S. infant mortality disparities. I want to identify groups that are separately listed in the report by mother's race and Hispanic origin, have an infant mortality rate above the U.S. overall rate, and have a clearly identifiable leading cause of death. First, from the separately listed groups in the report, select those with an infant mortality rate above the U.S. overall rate and a clearly identifiable leading cause of death. Then, for each qualifying group, record the full-year infant mortality rate, the neonatal rate (under 28 days), and the postneonatal rate (28 days and older), along with the group's leading cause of death, its cause-specific rate, and the rank of that cause among all infant causes. Finally, output a multi-row pipe-delimited table sorted by full-year infant mortality rate from high to low: group|infant_rate|neonatal_rate|postneonatal_rate|top_cause|cause_rate|us_rank.

group|infant_rate|neonatal_rate|postneonatal_rate|top_cause|cause_rate|us_rank
non-Hispanic Black|10.55|6.35|4.19|Short gestation and low birth weight|196.4|2
non-Hispanic American Indian or Alaska Native|7.46|3.83|3.67|Congenital malformations|134.0|1
Puerto Rican|6.05|3.93|2.13|Short gestation and low birth weight|108.9|2

Retain only groups that are separately listed in the 2021 U.S. infant mortality statistics, have a full-year infant mortality rate above the U.S. overall rate, and have a clearly identifiable leading cause of death.

For each qualifying group, provide the infant rate, neonatal rate, postneonatal rate, top cause, cause rate, and the rank of that cause among all infant causes.

The leading cause must be determined by a group-level leading-cause query and verified for availability using notes/reliability markers.

infant-mortality queries yield group-level overall, neonatal, and postneonatal rates for reportable mother race/Hispanic-origin groups

leading-cause queries and reliability notes yield each eligible group's top cause, cause-specific rate, and U.S. rank

final rows are produced only after the eligible-group set is rebuilt using both overall-rate and cause-specific-identifiability criteria

groups above the U.S. overall rate cannot be accepted until cause-specific reliability checks are run, which removes NHOPI

leading cause must be queried at the group level rather than inherited from an all-infants cause table

the cause-rate multiplier must be defined as per 100,000 live births before downstream ranking/output

2021 U.S. infant mortality by mother race and Hispanic origin, including the group-level leading-cause tables and reliability notes

Exclude groups that, despite having a full-year mortality rate above the U.S. overall rate, cannot provide a clearly identifiable leading cause due to cause-specific reliability issues.

Exclude results that only inherit the top cause from the all-infants cause table without performing a group-level leading-cause query.

Exclude results where the cause_rate uses an incorrect rate multiplier and is not read at the per-100,000-live-births denominator.

required literal first row `group|infant_rate|neonatal_rate|postneonatal_rate|top_cause|cause_rate|us_rank`

infant_rate, neonatal_rate, and postneonatal_rate are per 1,000 live births; cause_rate is per 100,000 live births, but all four are emitted as plain numbers without unit text

emit the short cause label used in the oracle, not an expanded prose description

emit the integer rank of that same cause in the overall infant leading-cause list