base query added