Basic support for JOIN queries