text: select ar1.stratum_1 - MinValue.MinValue as interval_index, 
    ar1.count_value as count_value, 
  	round(1.0*ar1.count_value / denom.count_value,5) as percent_value
  from (select cast(stratum_1 as int64) stratum_1, count_value from @results_database_schema.achilles_results where analysis_id = 3 GROUP BY analysis_id, stratum_1, count_value) ar1,
  	(select min(cast(stratum_1 as int64)) as MinValue from @results_database_schema.achilles_results where analysis_id = 3) MinValue,
  	(select count_value from @results_database_schema.achilles_results where analysis_id = 1) denom
  order by ar1.stratum_1 asc
  