Added structure and basic code for query2
second query done