title: Return the names of people that have half the wealth of the richest person
body: <p>For an assignment i must combine 3 tables and write a query that returns the names of all people that have less than half of the wealth of the richest person. We define the wealth of a person as the total money on all of his/her accounts.</p>
  <p>The 3 tables are:</p>
  <h2></h2>
  <hr />
  <p><strong>Persons</strong></p>
  <p>id  |  name   |   address  |  age  |  eyeColor |  gender</p>
  <hr />
  <p><strong>BankAccounts</strong></p>
  <p>id    |   balance</p>
  <hr />
  <p><strong>AccountOf</strong></p>
  <p>id | person_id → Persons | account_id → BankAccounts</p>
  <p>I know how to use te SUM() function and the MAX() function, but combining them is a pain in my ass.
  There is also someone without an bankaccount.
  Does anyone know how to do this assignment or can give me a hint?</p>