how would you do that in a normal SQL query?