" Percy Jackson & the Olympians : The Lightning Thief , " based on the young-adult novels by Rick Riordan , was second with about $ 31.1 million , according to Hollywood.com , which compiles box-office statistics .