multi table query using orm.RAW