Just use raw SQL for the base query