Either write the output of your first query into a temp table or wrap it up as an inline view; then use sum() analytical function to display running total.