Following SQLite (android Room) query:
select gi.*, o.* from orders as o left join galleryitems as gi on gi.siteId = o.siteId order by orderId asc <
select gi.*, o.* from orders as o left join galleryitems as gi on gi.siteId = o.siteId order by orderId asc