support multiple FROM statements in query