Simple Logic IT interview question

From in depth theory questions to SQL commands