added triple input search queries