def test_to_vespa_query_should_include_static_fields_when_attributes_to_retrieve_is_not_empty_pre_2_16_indexes(self):
        """
        Test that a vespa query is correctly generated for a schema with marqo version < 2.16.0
        Returns:

        """
        marqo_index = self._semi_structured_marqo_index(name='index1', lexical_field_names=['title'],
                                                        tensor_field_names=['title'], marqo_version = '2.15.0')
        vespa_index = SemiStructuredVespaIndex(marqo_index)

        for marqo_query in [
            MarqoTensorQuery(index_name=marqo_index.name, limit=10, offset=0,
                             attributes_to_retrieve=['title'], vector_query=[1.0] * 10),
            MarqoLexicalQuery(index_name=marqo_index.name, limit=10, offset=0,
                              attributes_to_retrieve=['title'], and_phrases=['hello'], or_phrases=['world']),
            # MarqoHybridSearch yql is just a placeholder and is generated in customer search component.
        ]:
            with self.subTest(test_query=marqo_query):
                query = vespa_index.to_vespa_query(marqo_query)
                fields = self._extract_fields_from_yql(query['yql'])

                self.assertSetEqual({VESPA_FIELD_ID, 'title', 'marqo__chunks_title', STRING_ARRAY,
                                     BOOL_FIELDS, INT_FIELDS, FLOAT_FIELDS}, fields)

        Test that a vespa query is correctly generated for a schema with marqo version < 2.16.0
        Returns:

        
tests/integ_tests/core/semi_structured_vespa_index/test_semi_structured_vespa_index.py