Half-implement SQL