two sql query files