Signal Scripts: Renamed file & reduced complexity

- Renamed "build_view_num_sig_to_medevents.sql" to
"view_num_sig_to_medevents.sql"
- Reduced complexity of the script by merging two levels of dynamic SQL
into one.