TS Partners interview question

Questions were regarding logic operations, and SQL scripting.