We encourage people to not execute raw queries unless is really necessary. If the tables you are interested where mapped your LLBLGen project then you could use a Entity Fetch, or if you wan to make joins and combine the final projection with multiple entities you can use TypedViews, TypedViews or DynamicList.