add match preview select sqlstring