Added SQL query for task_1

Adding partial SQL query; unfortunately SQL CE does not support all the
fancy stuff