Update the preview SQL to use the side data