query raw join