If they or someone nearby had only known the simple rules of water safety. How to make a question of this passage?

Start the sentence with "Did" or "Didn't" and give it a try. Once you post your question, I'll check it for you.