-- Optional PMR seed data generated from Enrep Checklist Mega Spreadsheet.xlsx
-- Run after pmr_schema.sql. Review headings before use.
START TRANSACTION;
INSERT INTO pmr_system_types (title, sort_order, status) VALUES ('LX', 1, 1);
INSERT INTO pmr_system_types (title, sort_order, status) VALUES ('AV', 2, 1);
INSERT INTO pmr_system_types (title, sort_order, status) VALUES ('SND', 3, 1);
INSERT INTO pmr_system_types (title, sort_order, status) VALUES ('Induction Loop', 4, 1);
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'General', 1, 1 FROM pmr_system_types st WHERE st.title = 'LX' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Initial - is system in good condition?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any issues reported to engineers by users?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System installation drawings/schematics present?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Description of Installation', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'PAT Stickers Present and In Date', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'EICR Stickers Present and In Date', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'LOLER Stickers Present and In Date', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any evidence of tampering?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'OVERALL SYSTEM', 2, 1 FROM pmr_system_types st WHERE st.title = 'LX' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System focussed and providing suitable coverage on completion of inspection?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'OVERALL SYSTEM' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'LANTERNS', 3, 1 FROM pmr_system_types st WHERE st.title = 'LX' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'GENERIC INCANDESCENT', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Secondary suspensions present on all lanterns?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lenses Clean?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Reflectors Clean (giving good output)?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobo holders, gel frames and barndoords present in fixtures where appropriate?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobos/Gels in good condition?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'PAT Sticker Present and In date?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus)', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC INCANDESCENT' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'GENERIC LED', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Secondary suspensions present on all lanterns?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lenses Clean?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobo holders, gel frames and barndoords present in fixtures where appropriate?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobos/Gels in good condition?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) including completeness of LED Array', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'GENERIC LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'AUTOMATED LED', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Secondary suspensions present on all lanterns?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Optics Clean?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobos/Colours/Flags in good condition?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All motorised aspects working smoothly and quietly?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All fans running smoothly and quietly?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Wiring Looms in good condition', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Moving parts greased where required?', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Base unit clean and in good condition?', '["yes","no","na","notes"]', 11, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Head covers secured, with secondary suspension?', '["yes","no","na","notes"]', 12, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) including completeness of LED Array', '["yes","no","na","notes"]', 13, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED LED' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'AUTOMATED INCANDESCENT/DISCHARGE', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Secondary suspensions present on all lanterns?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Optics Clean?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Gobos/Colours/Flags in good condition?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Reflectors Clean (giving good output)?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All motorised aspects working smoothly and quietly?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All fans running smoothly and quietly?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Wiring Looms in good condition', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Moving parts greased where required?', '["yes","no","na","notes"]', 11, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Base unit clean and in good condition?', '["yes","no","na","notes"]', 12, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Head covers secured, with secondary suspension?', '["yes","no","na","notes"]', 13, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) including lamp', '["yes","no","na","notes"]', 14, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lamp Hours recorded', '["textarea","na","notes"]', 15, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'AUTOMATED INCANDESCENT/DISCHARGE' WHERE st.title = 'LX' AND s.title = 'LANTERNS' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'POWER/DATA/CONTROL', 4, 1 FROM pmr_system_types st WHERE st.title = 'LX' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'DIMMERS/SWITCHPACKS', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Area around DB clear and clear of hazards?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All electrical connections tight to manufacturers recommendations?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All fans running smoothly and quietly?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Addressing/data management satisfactory?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Where provided - plugs and sockets in good condition?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'MCBs/Fuses correctly rated for hardware/cable size?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DIMMERS/SWITCHPACKS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'INTERNALLY WIRED BARS/FACILITY PANELS', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'INTERNALLY WIRED BARS/FACILITY PANELS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Power/data distribution connections satisfactory?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'INTERNALLY WIRED BARS/FACILITY PANELS' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'MAINS CABLING', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS CABLING' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Required quantity available?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS CABLING' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'DISTRIBUTION BOARD', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Area around DB clear and clear of hazards?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DISTRIBUTION BOARD' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All electrical connections tight to manufacturers recommendations?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DISTRIBUTION BOARD' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Where provided - plugs and sockets in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DISTRIBUTION BOARD' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'MCBs/Fuses correctly rated for hardware/cable size?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DISTRIBUTION BOARD' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DISTRIBUTION BOARD' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'DATA SYSTEM', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loose Data cabling in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Installed cabling/faceplates in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Outlets tested?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents/surfaces Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Patch Panel provided and in good condition?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Solid core cable used in a flexible application?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'DATA SYSTEM' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'CONSOLE', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Console firmware up to date?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Memories backed up to USB stick where appropriate?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Faders/encoders/buttons checked and functioning correctly?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONSOLE' WHERE st.title = 'LX' AND s.title = 'POWER/DATA/CONTROL' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'General', 1, 1 FROM pmr_system_types st WHERE st.title = 'AV' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Initial - is system in good condition?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any issues reported to engineers by users?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System installation drawings/schematics present?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Description of Installation', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'PAT Stickers Present and In Date', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'EICR Stickers Present and In Date', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'LOLER Stickers Present and In Date', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any evidence of tampering?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'INPUTS/PROCESSING', 2, 1 FROM pmr_system_types st WHERE st.title = 'AV' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'Something about cameras…', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'Something about cameras…' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'Something about cameras…' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lens Clean and operating?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'Something about cameras…' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'Something about cameras…' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) with test pattern', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'Something about cameras…' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'HDMI INPUT', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'HDMI INPUT' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'HDMI INPUT' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'HDMI INPUT' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'CONTROLLER/PROCESSOR', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Console firmware up to date?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["text","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Faders/encoders/buttons checked and functioning correctly?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROLLER/PROCESSOR' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'CABLING SYSTEM', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loose Video cabling in good condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Installed cabling/faceplates in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Outlets tested?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Patch Panel provided and in good condition?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Solid core cable used in a flexible application?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CABLING SYSTEM' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'CONTROL PLATE', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROL PLATE' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Control plates checked for functionality', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROL PLATE' WHERE st.title = 'AV' AND s.title = 'INPUTS/PROCESSING' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'OUTPUTS', 3, 1 FROM pmr_system_types st WHERE st.title = 'AV' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'PROJECTOR', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Secondary suspensions present if required?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lens Clean and operating?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lamp Hours (Where provided)', '["numeric","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Filter Hours (Where provided)', '["numeric","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) with test pattern', '["yes","no","na","notes"]', 11, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROJECTOR' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'TELLY', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'VESA Connection in good condition?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) with test pattern', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'TELLY' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'VIDEO WALL', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Hook clamps in good condition?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Inter panel connections in good condition?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Header/footer connections in good condition?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Heat management working satisfactorily?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Wall/tiles mapped correctly?', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Functional test complete (output/focus) with test pattern', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'VIDEO WALL' WHERE st.title = 'AV' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'General', 1, 1 FROM pmr_system_types st WHERE st.title = 'SND' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Initial - is system in good condition?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any issues reported to engineers by users?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System installation drawings/schematics present?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Description of Installation', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'PAT Stickers Present and In Date', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'EICR Stickers Present and In Date', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'LOLER Stickers Present and In Date', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any evidence of tampering?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'OVERALL SYSTEM', 2, 1 FROM pmr_system_types st WHERE st.title = 'SND' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System providing suitable full frequency coverage on completion of inspection?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OVERALL SYSTEM' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Walk test completed', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OVERALL SYSTEM' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'SOURCES', 3, 1 FROM pmr_system_types st WHERE st.title = 'SND' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'MAINS POWERED/PLAYBACK', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Rigging arrangements satifactory?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED/PLAYBACK' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED/PLAYBACK' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Lens Clean and operating?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED/PLAYBACK' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED/PLAYBACK' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Equipment checked for functionality with appropriate media', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED/PLAYBACK' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Casing arrangements satisfactory?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware up to date?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'All faders and buttons checked for functionality', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Equipment checked for functionality with appropriate media', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'MAINS POWERED DJ EQUIPMENT (NOT Vinyl)' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'WIRED MICROPHONES/DIs', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRED MICROPHONES/DIs' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Connections secure', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRED MICROPHONES/DIs' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Switches/buttons/phantom indicators checked for functionality', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRED MICROPHONES/DIs' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Equipment checked for functionality acoustically', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRED MICROPHONES/DIs' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'WIRELESS MICROPHONE RECEIVER', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware up to date?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Connections secure', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Equipment checked for functionality acoustically', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE RECEIVER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'WIRELESS MICROPHONE TRANSMITTER', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE TRANSMITTER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware up to date?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE TRANSMITTER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE TRANSMITTER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Connections secure', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE TRANSMITTER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Equipment checked for functionality acoustically', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'WIRELESS MICROPHONE TRANSMITTER' WHERE st.title = 'SND' AND s.title = 'SOURCES' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'CONTROL/MIXING', 4, 1 FROM pmr_system_types st WHERE st.title = 'SND' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'SURFACE', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Cover present?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surface firmware up to date?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Memories backed up to USB stick where appropriate?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Audio inputs/outputs checked for functionality acoustically', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Faders/encoders/buttons checked and functioning correctly?', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Network connection between surface and stagebox working?', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'SURFACE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'STAGE BOX', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Stagebox firmware up to date?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Audio inputs/outputs checked for functionality acoustically', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Faders/encoders/buttons checked and functioning correctly?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Network connection between surface and stagebox working?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'STAGE BOX' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'PROCESSOR', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'External visual pass?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'System firmware up to date?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Firmware version', '["textarea","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'File backed up and retained by engineer?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Vents Cleaned/Heat management working satisfactorily?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Audio inputs/outputs checked for functionality acoustically', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Faders/encoders/buttons checked and functioning correctly?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Fire alarm interface working?', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'PROCESSOR' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'CONTROL PLATE', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROL PLATE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Control plates checked for functionality', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'CONTROL PLATE' WHERE st.title = 'SND' AND s.title = 'CONTROL/MIXING' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'OUTPUTS', 5, 1 FROM pmr_system_types st WHERE st.title = 'SND' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'UNPOWERED POINT SOURCE LOUDSPEAKER', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Mountings/rigging points observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Electronic terminations observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Individual loudspeakers and their components heard to be in good condition with no rattles, buzzes/distortion/missing ranges', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Grille/Foam in good condition', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loudspeaker pointed correctly', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'POWERED POINT SOURCE LOUDSPEAKER', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Mountings/rigging points observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'POWERED POINT SOURCE LOUDSPEAKER' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'External visual pass?', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Electronic terminations observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Individual loudspeakers and their components heard to be in good condition with no rattles, buzzes/distortion/missing ranges', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Grille/Foam in good condition', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loudspeaker pointed correctly', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'UNPOWERED LINE ARRAY ELEMENT', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Mountings/rigging points observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Electronic terminations observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Individual loudspeakers and their components heard to be in good condition with no rattles, buzzes/distortion/missing ranges', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Grille/Foam in good condition', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loudspeaker pointed correctly', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'UNPOWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'POWERED LINE ARRAY ELEMENT', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Mountings/rigging points observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'POWERED LINE ARRAY ELEMENT' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_groups (section_id, title, sort_order, status) SELECT s.id, 'External visual pass?', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Electronic terminations observed to be in good condition as far as possible?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Individual loudspeakers and their components heard to be in good condition with no rattles, buzzes/distortion/missing ranges', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Grille/Foam in good condition', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Surfaces cleaned', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, g.id, 'Loudspeaker pointed correctly', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id INNER JOIN pmr_groups g ON g.section_id = s.id AND g.title = 'External visual pass?' WHERE st.title = 'SND' AND s.title = 'OUTPUTS' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'General', 1, 1 FROM pmr_system_types st WHERE st.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Initial - is system in good condition?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any issues reported to engineers by users?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System installation drawings/schematics present?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Description of Installation', '["textarea","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'PAT Stickers Present and In Date', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'EICR Stickers Present and In Date', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'LOLER Stickers Present and In Date', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any evidence of tampering?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'General' LIMIT 1;
INSERT INTO pmr_sections (system_type_id, title, sort_order, status) SELECT st.id, 'Induction Loop', 2, 1 FROM pmr_system_types st WHERE st.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'System tested in area the equipment is used in most often?', '["yes","no","na","notes"]', 1, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Initial Opinion – System in Good Condition?', '["yes","no","na","notes"]', 2, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any issues reported to engineer by users?', '["yes","no","na","notes"]', 3, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any evidence of tampering?', '["yes","no","na","notes"]', 4, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Logbook Present?', '["yes","no","na","notes"]', 5, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any faults recorded?', '["yes","no","na","notes"]', 6, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'External electrical visual pass?', '["yes","no","na","notes"]', 7, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'PAT sticker present and in date?', '["yes","no","na","notes"]', 8, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Clean equipment with antibac wipes?', '["yes","no","na","notes"]', 9, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Field Strength Test completed satisfactorily?', '["yes","no","na","notes"]', 10, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Frequency Response Test completed satisfactorily?', '["yes","no","na","notes"]', 11, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Signal/Noise Ratio Test completed satisfactorily?', '["yes","no","na","notes"]', 12, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Metal Compensation Test completed satisfactorily?', '["yes","no","na","notes"]', 13, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Any interference with other systems observed (eg Loudspeaker Systems)?', '["yes","no","na","notes"]', 14, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
INSERT INTO pmr_questions (section_id, group_id, question_text, input_types_json, sort_order, status) SELECT s.id, NULL, 'Appropriate signage present', '["yes","no","na","notes"]', 15, 1 FROM pmr_sections s INNER JOIN pmr_system_types st ON st.id = s.system_type_id WHERE st.title = 'Induction Loop' AND s.title = 'Induction Loop' LIMIT 1;
COMMIT;
