Sorry, I have to disagree. If an earthquake is strong enough to collapse a modern building designed to survive an earthquake, running around during an earthquake isn't going to safe your life, unless you're The Flash and can outrun a collapsing building. Taking cover under a table can improve your chance of surviving the initial collapse as you are less likely to get crushed (granted if a load bearing concrete crossbeam falls directly above your table, then yes you will be crushed for sure and die). Also, most building structure can survive the initial shaking but not interior fittings that can be heavy enough to kill you, so falling objects are a real hazard regardless of the structural strength and magnitude of an earthquake.