<?xml version="1.0" encoding="US-ASCII"?>
<!-- Generated by DFIN XBRL Schema Document - http://www.dfinsolutions.com/ - on 01-11-2025 08:25:29 AM -->
<!-- Copyright(c) 2025 Donnelley Financial Solutions, Inc. All Rights Reserved. -->
<schema targetNamespace="http://www.nuveen.com/20251106" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:nmyqmif="http://www.nuveen.com/20251106" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:rr="http://xbrl.sec.gov/rr/2021" xmlns:dtr="http://www.xbrl.org/2009/dtr" xmlns:ref="http://www.xbrl.org/2006/ref" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:dei="http://xbrl.sec.gov/dei/2025" xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:cef="http://xbrl.sec.gov/cef/2025" xmlns:xlink="http://www.w3.org/1999/xlink">
    <annotation>
        <appinfo>
            <link:linkbase>
                <link:roleRef roleURI="http://xbrl.sec.gov/cef/role/N2" xlink:type="simple" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#N2"/>
                <link:roleRef roleURI="http://xbrl.sec.gov/cef/role/RiskOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#RiskOnly"/>
                <link:roleRef roleURI="http://xbrl.sec.gov/cef/role/SecurityOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#SecurityOnly"/>
				<link:roleRef roleURI="http://xbrl.sec.gov/cef/role/CoregistrantOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#CoregistrantOnly"/>
				<link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
				<link:presentationLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cef/role/N2">
					<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#cef_AllCoregistrantsMember" xlink:label="AllCoregistrantsMember"/>

					<link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain"/>

					<link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain" xlink:label="ClassOfStockDomain"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CommonSharesMember" xlink:label="CommonSharesMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="ClassOfStockDomain" xlink:to="CommonSharesMember" order="1.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AdjustableRateMuniFundTermPreferredSharesMember" xlink:label="AdjustableRateMuniFundTermPreferredSharesMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="ClassOfStockDomain" xlink:to="AdjustableRateMuniFundTermPreferredSharesMember" order="2.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateMuniFundTermPreferredSharesMember" xlink:label="VariableRateMuniFundTermPreferredSharesMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="ClassOfStockDomain" xlink:to="VariableRateMuniFundTermPreferredSharesMember" order="3.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateDemandPreferredSharesMember" xlink:label="VariableRateDemandPreferredSharesMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="ClassOfStockDomain" xlink:to="VariableRateDemandPreferredSharesMember" order="4.0" />

					<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#cef_AllRisksMember" xlink:label="AllRisksMember"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AlternativeMinimumTaxRiskMember" xlink:label="AlternativeMinimumTaxRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="AlternativeMinimumTaxRiskMember" order="1.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_BelowInvestmentGradeRiskMember" xlink:label="BelowInvestmentGradeRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="BelowInvestmentGradeRiskMember" order="2.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CallRiskMember" xlink:label="CallRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="CallRiskMember" order="3.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditRisksMember" xlink:label="CreditRisksMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="CreditRisksMember" order="4.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditSpreadRiskMember" xlink:label="CreditSpreadRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="CreditSpreadRiskMember" order="5.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DeflationRiskMember" xlink:label="DeflationRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="DeflationRiskMember" order="6.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DistressedOrDefaultedSecuritiesRiskMember" xlink:label="DistressedOrDefaultedSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="DistressedOrDefaultedSecuritiesRiskMember" order="7.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DurationRiskMember" xlink:label="DurationRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="DurationRiskMember" order="8.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicSectorRiskMember" xlink:label="EconomicSectorRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="EconomicSectorRiskMember" order="9.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FloatingAndVariableRateSecuritiesRiskMember" xlink:label="FloatingAndVariableRateSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="FloatingAndVariableRateSecuritiesRiskMember" order="10.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FinancialFuturesAndOptionsTransactionsRiskMember" xlink:label="FinancialFuturesAndOptionsTransactionsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="FinancialFuturesAndOptionsTransactionsRiskMember" order="11.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_HedgingRiskMember" xlink:label="HedgingRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="HedgingRiskMember" order="12.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_IncomeRiskMember" xlink:label="IncomeRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="IncomeRiskMember" order="13.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InflationRiskMember" xlink:label="InflationRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="InflationRiskMember" order="14.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InsuranceRiskMember" xlink:label="InsuranceRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="InsuranceRiskMember" order="15.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InverseFloatingRateSecuritiesRiskMember" xlink:label="InverseFloatingRateSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="InverseFloatingRateSecuritiesRiskMember" order="16.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesRiskMember" xlink:label="MunicipalSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesRiskMember" order="17.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketLiquidityRiskMember" xlink:label="MunicipalSecuritiesMarketLiquidityRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesMarketLiquidityRiskMember" order="18.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketRiskMember" xlink:label="MunicipalSecuritiesMarketRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesMarketRiskMember" order="19.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_OtherInvestmentCompaniesRiskMember" xlink:label="OtherInvestmentCompaniesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="OtherInvestmentCompaniesRiskMember" order="20.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_PuertoRicoMunicipalSecuritiesMarketRiskMember" xlink:label="PuertoRicoMunicipalSecuritiesMarketRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="PuertoRicoMunicipalSecuritiesMarketRiskMember" order="21.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReinvestmentRiskMember" xlink:label="ReinvestmentRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="ReinvestmentRiskMember" order="22.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RestrictedAndIlliquidInvestmentsRiskMember" xlink:label="RestrictedAndIlliquidInvestmentsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="RestrictedAndIlliquidInvestmentsRiskMember" order="23.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" xlink:label="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" order="24.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_StructuredProductsRiskMember" xlink:label="StructuredProductsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="StructuredProductsRiskMember" order="25.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SwapTransactionsRiskMember" xlink:label="SwapTransactionsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="SwapTransactionsRiskMember" order="26.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxRiskMember" xlink:label="TaxRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="TaxRiskMember" order="27.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxabilityRiskMember" xlink:label="TaxabilityRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="TaxabilityRiskMember" order="28.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TobaccoSettlementBondRiskMember" xlink:label="TobaccoSettlementBondRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="TobaccoSettlementBondRiskMember" order="29.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_UnratedSecuritiesRiskMember" xlink:label="UnratedSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="UnratedSecuritiesRiskMember" order="30.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ValuationRiskMember" xlink:label="ValuationRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="ValuationRiskMember" order="31.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AntiTakeoverProvisionsMember" xlink:label="AntiTakeoverProvisionsMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="AntiTakeoverProvisionsMember" order="32.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CounterpartyRiskMember" xlink:label="CounterpartyRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="CounterpartyRiskMember" order="33.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialRisksRelatedToCertainMunicipalObligationsMember" xlink:label="SpecialRisksRelatedToCertainMunicipalObligationsMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="SpecialRisksRelatedToCertainMunicipalObligationsMember" order="34.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CybersecurityRiskMember" xlink:label="CybersecurityRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="CybersecurityRiskMember" order="35.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicAndPoliticalEventsRiskMember" xlink:label="EconomicAndPoliticalEventsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="EconomicAndPoliticalEventsRiskMember" order="36.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FundTaxRiskMember" xlink:label="FundTaxRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="FundTaxRiskMember" order="37.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_GlobalEconomicRiskMember" xlink:label="GlobalEconomicRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="GlobalEconomicRiskMember" order="38.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InvestmentAndMarketRiskMember" xlink:label="InvestmentAndMarketRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="InvestmentAndMarketRiskMember" order="39.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LegislationAndRegulatoryRiskMember" xlink:label="LegislationAndRegulatoryRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="LegislationAndRegulatoryRiskMember" order="40.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LeverageRiskMember" xlink:label="LeverageRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="LeverageRiskMember" order="41.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MarketDiscountFromNetAssetValueMember" xlink:label="MarketDiscountFromNetAssetValueMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="MarketDiscountFromNetAssetValueMember" order="42.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RecentMarketConditionsMember" xlink:label="RecentMarketConditionsMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="RecentMarketConditionsMember" order="43.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReverseRepurchaseAgreementRiskMember" xlink:label="ReverseRepurchaseAgreementRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="ReverseRepurchaseAgreementRiskMember" order="44.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DerivativesRisksMember" xlink:label="DerivativesRisksMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="DerivativesRisksMember" order="45.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InterestRateRisksMember" xlink:label="InterestRateRisksMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="InterestRateRisksMember" order="46.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_WhenIssuedAndDelayedDeliveryTransactionsRiskMember" xlink:label="WhenIssuedAndDelayedDeliveryTransactionsRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="WhenIssuedAndDelayedDeliveryTransactionsRiskMember" order="47.0" />
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" xlink:label="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember"/>
					<link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="AllRisksMember" xlink:to="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" order="48.0" />

				</link:presentationLink>
				<link:definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cef/role/CoregistrantOnly">
					<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#cef_AllCoregistrantsMember" xlink:label="AllCoregistrantsMember"/>

				</link:definitionLink>
				<link:definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cef/role/SecurityOnly">
					<link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="DebtInstrumentNameDomain"/>

					<link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain" xlink:label="ClassOfStockDomain"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CommonSharesMember" xlink:label="CommonSharesMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ClassOfStockDomain" xlink:to="CommonSharesMember" order="1.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AdjustableRateMuniFundTermPreferredSharesMember" xlink:label="AdjustableRateMuniFundTermPreferredSharesMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ClassOfStockDomain" xlink:to="AdjustableRateMuniFundTermPreferredSharesMember" order="2.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateMuniFundTermPreferredSharesMember" xlink:label="VariableRateMuniFundTermPreferredSharesMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ClassOfStockDomain" xlink:to="VariableRateMuniFundTermPreferredSharesMember" order="3.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateDemandPreferredSharesMember" xlink:label="VariableRateDemandPreferredSharesMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ClassOfStockDomain" xlink:to="VariableRateDemandPreferredSharesMember" order="4.0"/>

				</link:definitionLink>
				<link:definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/cef/role/RiskOnly">
					<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/cef/2025/cef-2025.xsd#cef_AllRisksMember" xlink:label="AllRisksMember"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AlternativeMinimumTaxRiskMember" xlink:label="AlternativeMinimumTaxRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="AlternativeMinimumTaxRiskMember" order="1.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_BelowInvestmentGradeRiskMember" xlink:label="BelowInvestmentGradeRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="BelowInvestmentGradeRiskMember" order="2.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CallRiskMember" xlink:label="CallRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="CallRiskMember" order="3.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditRisksMember" xlink:label="CreditRisksMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="CreditRisksMember" order="4.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditSpreadRiskMember" xlink:label="CreditSpreadRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="CreditSpreadRiskMember" order="5.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DeflationRiskMember" xlink:label="DeflationRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="DeflationRiskMember" order="6.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DistressedOrDefaultedSecuritiesRiskMember" xlink:label="DistressedOrDefaultedSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="DistressedOrDefaultedSecuritiesRiskMember" order="7.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DurationRiskMember" xlink:label="DurationRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="DurationRiskMember" order="8.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicSectorRiskMember" xlink:label="EconomicSectorRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="EconomicSectorRiskMember" order="9.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FloatingAndVariableRateSecuritiesRiskMember" xlink:label="FloatingAndVariableRateSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="FloatingAndVariableRateSecuritiesRiskMember" order="10.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FinancialFuturesAndOptionsTransactionsRiskMember" xlink:label="FinancialFuturesAndOptionsTransactionsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="FinancialFuturesAndOptionsTransactionsRiskMember" order="11.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_HedgingRiskMember" xlink:label="HedgingRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="HedgingRiskMember" order="12.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_IncomeRiskMember" xlink:label="IncomeRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="IncomeRiskMember" order="13.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InflationRiskMember" xlink:label="InflationRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="InflationRiskMember" order="14.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InsuranceRiskMember" xlink:label="InsuranceRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="InsuranceRiskMember" order="15.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InverseFloatingRateSecuritiesRiskMember" xlink:label="InverseFloatingRateSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="InverseFloatingRateSecuritiesRiskMember" order="16.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesRiskMember" xlink:label="MunicipalSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesRiskMember" order="17.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketLiquidityRiskMember" xlink:label="MunicipalSecuritiesMarketLiquidityRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesMarketLiquidityRiskMember" order="18.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketRiskMember" xlink:label="MunicipalSecuritiesMarketRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="MunicipalSecuritiesMarketRiskMember" order="19.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_OtherInvestmentCompaniesRiskMember" xlink:label="OtherInvestmentCompaniesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="OtherInvestmentCompaniesRiskMember" order="20.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_PuertoRicoMunicipalSecuritiesMarketRiskMember" xlink:label="PuertoRicoMunicipalSecuritiesMarketRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="PuertoRicoMunicipalSecuritiesMarketRiskMember" order="21.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReinvestmentRiskMember" xlink:label="ReinvestmentRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="ReinvestmentRiskMember" order="22.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RestrictedAndIlliquidInvestmentsRiskMember" xlink:label="RestrictedAndIlliquidInvestmentsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="RestrictedAndIlliquidInvestmentsRiskMember" order="23.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" xlink:label="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" order="24.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_StructuredProductsRiskMember" xlink:label="StructuredProductsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="StructuredProductsRiskMember" order="25.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SwapTransactionsRiskMember" xlink:label="SwapTransactionsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="SwapTransactionsRiskMember" order="26.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxRiskMember" xlink:label="TaxRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="TaxRiskMember" order="27.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxabilityRiskMember" xlink:label="TaxabilityRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="TaxabilityRiskMember" order="28.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TobaccoSettlementBondRiskMember" xlink:label="TobaccoSettlementBondRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="TobaccoSettlementBondRiskMember" order="29.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_UnratedSecuritiesRiskMember" xlink:label="UnratedSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="UnratedSecuritiesRiskMember" order="30.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ValuationRiskMember" xlink:label="ValuationRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="ValuationRiskMember" order="31.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AntiTakeoverProvisionsMember" xlink:label="AntiTakeoverProvisionsMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="AntiTakeoverProvisionsMember" order="32.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CounterpartyRiskMember" xlink:label="CounterpartyRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="CounterpartyRiskMember" order="33.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialRisksRelatedToCertainMunicipalObligationsMember" xlink:label="SpecialRisksRelatedToCertainMunicipalObligationsMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="SpecialRisksRelatedToCertainMunicipalObligationsMember" order="34.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CybersecurityRiskMember" xlink:label="CybersecurityRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="CybersecurityRiskMember" order="35.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicAndPoliticalEventsRiskMember" xlink:label="EconomicAndPoliticalEventsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="EconomicAndPoliticalEventsRiskMember" order="36.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FundTaxRiskMember" xlink:label="FundTaxRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="FundTaxRiskMember" order="37.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_GlobalEconomicRiskMember" xlink:label="GlobalEconomicRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="GlobalEconomicRiskMember" order="38.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InvestmentAndMarketRiskMember" xlink:label="InvestmentAndMarketRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="InvestmentAndMarketRiskMember" order="39.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LegislationAndRegulatoryRiskMember" xlink:label="LegislationAndRegulatoryRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="LegislationAndRegulatoryRiskMember" order="40.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LeverageRiskMember" xlink:label="LeverageRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="LeverageRiskMember" order="41.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MarketDiscountFromNetAssetValueMember" xlink:label="MarketDiscountFromNetAssetValueMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="MarketDiscountFromNetAssetValueMember" order="42.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RecentMarketConditionsMember" xlink:label="RecentMarketConditionsMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="RecentMarketConditionsMember" order="43.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReverseRepurchaseAgreementRiskMember" xlink:label="ReverseRepurchaseAgreementRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="ReverseRepurchaseAgreementRiskMember" order="44.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DerivativesRisksMember" xlink:label="DerivativesRisksMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="DerivativesRisksMember" order="45.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InterestRateRisksMember" xlink:label="InterestRateRisksMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="InterestRateRisksMember" order="46.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_WhenIssuedAndDelayedDeliveryTransactionsRiskMember" xlink:label="WhenIssuedAndDelayedDeliveryTransactionsRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="WhenIssuedAndDelayedDeliveryTransactionsRiskMember" order="47.0"/>
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" xlink:label="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember"/>
					<link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="AllRisksMember" xlink:to="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" order="48.0"/>

				</link:definitionLink>
				<link:labelLink xlink:type="extended" xlink:role="http://www.xbrl.org/2003/role/link">
					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AlternativeMinimumTaxRiskMember" xlink:label="AlternativeMinimumTaxRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_AlternativeMinimumTaxRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Alternative Minimum Tax Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="AlternativeMinimumTaxRiskMember" xlink:to="label_AlternativeMinimumTaxRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_BelowInvestmentGradeRiskMember" xlink:label="BelowInvestmentGradeRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_BelowInvestmentGradeRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Below Investment Grade Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="BelowInvestmentGradeRiskMember" xlink:to="label_BelowInvestmentGradeRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CallRiskMember" xlink:label="CallRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_CallRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Call Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CallRiskMember" xlink:to="label_CallRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditRisksMember" xlink:label="CreditRisksMember"/>
					<link:label xlink:type="resource" xlink:label="label_CreditRisksMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Credit Risks [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CreditRisksMember" xlink:to="label_CreditRisksMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CreditSpreadRiskMember" xlink:label="CreditSpreadRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_CreditSpreadRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Credit Spread Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CreditSpreadRiskMember" xlink:to="label_CreditSpreadRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DeflationRiskMember" xlink:label="DeflationRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_DeflationRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Deflation Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="DeflationRiskMember" xlink:to="label_DeflationRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DistressedOrDefaultedSecuritiesRiskMember" xlink:label="DistressedOrDefaultedSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_DistressedOrDefaultedSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Distressed or Defaulted Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="DistressedOrDefaultedSecuritiesRiskMember" xlink:to="label_DistressedOrDefaultedSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DurationRiskMember" xlink:label="DurationRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_DurationRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Duration Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="DurationRiskMember" xlink:to="label_DurationRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicSectorRiskMember" xlink:label="EconomicSectorRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_EconomicSectorRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Economic Sector Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="EconomicSectorRiskMember" xlink:to="label_EconomicSectorRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FloatingAndVariableRateSecuritiesRiskMember" xlink:label="FloatingAndVariableRateSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_FloatingAndVariableRateSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Floating and Variable Rate Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="FloatingAndVariableRateSecuritiesRiskMember" xlink:to="label_FloatingAndVariableRateSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FinancialFuturesAndOptionsTransactionsRiskMember" xlink:label="FinancialFuturesAndOptionsTransactionsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_FinancialFuturesAndOptionsTransactionsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Financial Futures and Options Transactions Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="FinancialFuturesAndOptionsTransactionsRiskMember" xlink:to="label_FinancialFuturesAndOptionsTransactionsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_HedgingRiskMember" xlink:label="HedgingRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_HedgingRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Hedging Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="HedgingRiskMember" xlink:to="label_HedgingRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_IncomeRiskMember" xlink:label="IncomeRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_IncomeRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Income Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="IncomeRiskMember" xlink:to="label_IncomeRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InflationRiskMember" xlink:label="InflationRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_InflationRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Inflation Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="InflationRiskMember" xlink:to="label_InflationRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InsuranceRiskMember" xlink:label="InsuranceRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_InsuranceRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Insurance Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="InsuranceRiskMember" xlink:to="label_InsuranceRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InverseFloatingRateSecuritiesRiskMember" xlink:label="InverseFloatingRateSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_InverseFloatingRateSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Inverse Floating Rate Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="InverseFloatingRateSecuritiesRiskMember" xlink:to="label_InverseFloatingRateSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesRiskMember" xlink:label="MunicipalSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_MunicipalSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Municipal Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="MunicipalSecuritiesRiskMember" xlink:to="label_MunicipalSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketLiquidityRiskMember" xlink:label="MunicipalSecuritiesMarketLiquidityRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_MunicipalSecuritiesMarketLiquidityRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Municipal Securities Market Liquidity Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="MunicipalSecuritiesMarketLiquidityRiskMember" xlink:to="label_MunicipalSecuritiesMarketLiquidityRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MunicipalSecuritiesMarketRiskMember" xlink:label="MunicipalSecuritiesMarketRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_MunicipalSecuritiesMarketRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Municipal Securities Market Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="MunicipalSecuritiesMarketRiskMember" xlink:to="label_MunicipalSecuritiesMarketRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_OtherInvestmentCompaniesRiskMember" xlink:label="OtherInvestmentCompaniesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_OtherInvestmentCompaniesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Other Investment Companies Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="OtherInvestmentCompaniesRiskMember" xlink:to="label_OtherInvestmentCompaniesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_PuertoRicoMunicipalSecuritiesMarketRiskMember" xlink:label="PuertoRicoMunicipalSecuritiesMarketRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_PuertoRicoMunicipalSecuritiesMarketRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Puerto Rico Municipal Securities Market Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="PuertoRicoMunicipalSecuritiesMarketRiskMember" xlink:to="label_PuertoRicoMunicipalSecuritiesMarketRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReinvestmentRiskMember" xlink:label="ReinvestmentRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_ReinvestmentRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Reinvestment Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="ReinvestmentRiskMember" xlink:to="label_ReinvestmentRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RestrictedAndIlliquidInvestmentsRiskMember" xlink:label="RestrictedAndIlliquidInvestmentsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_RestrictedAndIlliquidInvestmentsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Restricted and Illiquid Investments Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="RestrictedAndIlliquidInvestmentsRiskMember" xlink:to="label_RestrictedAndIlliquidInvestmentsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" xlink:label="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Special Considerations Related to Single State Concentration Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" xlink:to="label_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_StructuredProductsRiskMember" xlink:label="StructuredProductsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_StructuredProductsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Structured Products Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="StructuredProductsRiskMember" xlink:to="label_StructuredProductsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SwapTransactionsRiskMember" xlink:label="SwapTransactionsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_SwapTransactionsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Swap Transactions Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="SwapTransactionsRiskMember" xlink:to="label_SwapTransactionsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxRiskMember" xlink:label="TaxRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_TaxRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Tax Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="TaxRiskMember" xlink:to="label_TaxRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TaxabilityRiskMember" xlink:label="TaxabilityRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_TaxabilityRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Taxability Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="TaxabilityRiskMember" xlink:to="label_TaxabilityRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_TobaccoSettlementBondRiskMember" xlink:label="TobaccoSettlementBondRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_TobaccoSettlementBondRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Tobacco Settlement Bond Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="TobaccoSettlementBondRiskMember" xlink:to="label_TobaccoSettlementBondRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_UnratedSecuritiesRiskMember" xlink:label="UnratedSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_UnratedSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Unrated Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="UnratedSecuritiesRiskMember" xlink:to="label_UnratedSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ValuationRiskMember" xlink:label="ValuationRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_ValuationRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Valuation Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="ValuationRiskMember" xlink:to="label_ValuationRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AntiTakeoverProvisionsMember" xlink:label="AntiTakeoverProvisionsMember"/>
					<link:label xlink:type="resource" xlink:label="label_AntiTakeoverProvisionsMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Anti Takeover Provisions [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="AntiTakeoverProvisionsMember" xlink:to="label_AntiTakeoverProvisionsMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CounterpartyRiskMember" xlink:label="CounterpartyRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_CounterpartyRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Counterparty Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CounterpartyRiskMember" xlink:to="label_CounterpartyRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_SpecialRisksRelatedToCertainMunicipalObligationsMember" xlink:label="SpecialRisksRelatedToCertainMunicipalObligationsMember"/>
					<link:label xlink:type="resource" xlink:label="label_SpecialRisksRelatedToCertainMunicipalObligationsMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Special Risks Related to Certain Municipal Obligations [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="SpecialRisksRelatedToCertainMunicipalObligationsMember" xlink:to="label_SpecialRisksRelatedToCertainMunicipalObligationsMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CybersecurityRiskMember" xlink:label="CybersecurityRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_CybersecurityRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Cybersecurity Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CybersecurityRiskMember" xlink:to="label_CybersecurityRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_EconomicAndPoliticalEventsRiskMember" xlink:label="EconomicAndPoliticalEventsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_EconomicAndPoliticalEventsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Economic and Political Events Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="EconomicAndPoliticalEventsRiskMember" xlink:to="label_EconomicAndPoliticalEventsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_FundTaxRiskMember" xlink:label="FundTaxRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_FundTaxRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Fund Tax Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="FundTaxRiskMember" xlink:to="label_FundTaxRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_GlobalEconomicRiskMember" xlink:label="GlobalEconomicRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_GlobalEconomicRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Global Economic Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="GlobalEconomicRiskMember" xlink:to="label_GlobalEconomicRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InvestmentAndMarketRiskMember" xlink:label="InvestmentAndMarketRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_InvestmentAndMarketRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Investment and Market Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="InvestmentAndMarketRiskMember" xlink:to="label_InvestmentAndMarketRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LegislationAndRegulatoryRiskMember" xlink:label="LegislationAndRegulatoryRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_LegislationAndRegulatoryRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Legislation and Regulatory Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="LegislationAndRegulatoryRiskMember" xlink:to="label_LegislationAndRegulatoryRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_LeverageRiskMember" xlink:label="LeverageRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_LeverageRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Leverage Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="LeverageRiskMember" xlink:to="label_LeverageRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_MarketDiscountFromNetAssetValueMember" xlink:label="MarketDiscountFromNetAssetValueMember"/>
					<link:label xlink:type="resource" xlink:label="label_MarketDiscountFromNetAssetValueMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Market Discount from Net Asset Value [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="MarketDiscountFromNetAssetValueMember" xlink:to="label_MarketDiscountFromNetAssetValueMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_RecentMarketConditionsMember" xlink:label="RecentMarketConditionsMember"/>
					<link:label xlink:type="resource" xlink:label="label_RecentMarketConditionsMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Recent Market Conditions [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="RecentMarketConditionsMember" xlink:to="label_RecentMarketConditionsMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ReverseRepurchaseAgreementRiskMember" xlink:label="ReverseRepurchaseAgreementRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_ReverseRepurchaseAgreementRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Reverse Repurchase Agreement Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="ReverseRepurchaseAgreementRiskMember" xlink:to="label_ReverseRepurchaseAgreementRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_DerivativesRisksMember" xlink:label="DerivativesRisksMember"/>
					<link:label xlink:type="resource" xlink:label="label_DerivativesRisksMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Derivatives Risks [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="DerivativesRisksMember" xlink:to="label_DerivativesRisksMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_InterestRateRisksMember" xlink:label="InterestRateRisksMember"/>
					<link:label xlink:type="resource" xlink:label="label_InterestRateRisksMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Interest Rate Risks [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="InterestRateRisksMember" xlink:to="label_InterestRateRisksMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_WhenIssuedAndDelayedDeliveryTransactionsRiskMember" xlink:label="WhenIssuedAndDelayedDeliveryTransactionsRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_WhenIssuedAndDelayedDeliveryTransactionsRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">When Issued and Delayed Delivery Transactions Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="WhenIssuedAndDelayedDeliveryTransactionsRiskMember" xlink:to="label_WhenIssuedAndDelayedDeliveryTransactionsRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" xlink:label="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember"/>
					<link:label xlink:type="resource" xlink:label="label_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Zero Coupon Bonds Risk or Pay In Kind Securities Risk [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" xlink:to="label_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_CommonSharesMember" xlink:label="CommonSharesMember"/>
					<link:label xlink:type="resource" xlink:label="label_CommonSharesMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Common Shares [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="CommonSharesMember" xlink:to="label_CommonSharesMember"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_AdjustableRateMuniFundTermPreferredSharesMember" xlink:label="AdjustableRateMuniFundTermPreferredSharesMember"/>
					<link:label xlink:type="resource" xlink:label="label_AdjustableRateMuniFundTermPreferredSharesMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Adjustable Rate MuniFund Term Preferred Shares [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="AdjustableRateMuniFundTermPreferredSharesMember" xlink:to="label_AdjustableRateMuniFundTermPreferredSharesMember"/>

										<link:label xlink:type="resource" xlink:label="label_AdjustableRateMuniFundTermPreferredSharesMember_2" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xml:lang="en-US">Adjustable Rate MuniFund Term Preferred Shares</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="AdjustableRateMuniFundTermPreferredSharesMember" xlink:to="label_AdjustableRateMuniFundTermPreferredSharesMember_2"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateMuniFundTermPreferredSharesMember" xlink:label="VariableRateMuniFundTermPreferredSharesMember"/>
					<link:label xlink:type="resource" xlink:label="label_VariableRateMuniFundTermPreferredSharesMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Variable Rate MuniFund Term Preferred Shares [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="VariableRateMuniFundTermPreferredSharesMember" xlink:to="label_VariableRateMuniFundTermPreferredSharesMember"/>

										<link:label xlink:type="resource" xlink:label="label_VariableRateMuniFundTermPreferredSharesMember_2" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xml:lang="en-US">Variable Rate MuniFund Term Preferred Shares</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="VariableRateMuniFundTermPreferredSharesMember" xlink:to="label_VariableRateMuniFundTermPreferredSharesMember_2"/>

					<link:loc xlink:type="locator" xlink:href="#nmyqmif_VariableRateDemandPreferredSharesMember" xlink:label="VariableRateDemandPreferredSharesMember"/>
					<link:label xlink:type="resource" xlink:label="label_VariableRateDemandPreferredSharesMember" xlink:role="http://www.xbrl.org/2003/role/label" xml:lang="en-US">Variable Rate Demand Preferred Shares [Member]</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="VariableRateDemandPreferredSharesMember" xlink:to="label_VariableRateDemandPreferredSharesMember"/>

										<link:label xlink:type="resource" xlink:label="label_VariableRateDemandPreferredSharesMember_2" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xml:lang="en-US">Variable Rate Demand Preferred Shares</link:label>
					<link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="VariableRateDemandPreferredSharesMember" xlink:to="label_VariableRateDemandPreferredSharesMember_2"/>


				</link:labelLink>
			</link:linkbase>
		</appinfo>
	</annotation>
	<import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
	<import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
	<import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
	<import namespace="http://xbrl.sec.gov/dei/2025" schemaLocation="https://xbrl.sec.gov/dei/2025/dei-2025.xsd"/>
	<import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"/>
	<import namespace="http://xbrl.sec.gov/cef/2025" schemaLocation="https://xbrl.sec.gov/cef/2025/cef-2025.xsd"/>
	<import namespace="http://xbrl.sec.gov/cef-pre/2025" schemaLocation="https://xbrl.sec.gov/cef/2025/cef-2025_pre.xsd"/>
	<element name="AlternativeMinimumTaxRiskMember" id="nmyqmif_AlternativeMinimumTaxRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="BelowInvestmentGradeRiskMember" id="nmyqmif_BelowInvestmentGradeRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CallRiskMember" id="nmyqmif_CallRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CreditRisksMember" id="nmyqmif_CreditRisksMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CreditSpreadRiskMember" id="nmyqmif_CreditSpreadRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="DeflationRiskMember" id="nmyqmif_DeflationRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="DistressedOrDefaultedSecuritiesRiskMember" id="nmyqmif_DistressedOrDefaultedSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="DurationRiskMember" id="nmyqmif_DurationRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="EconomicSectorRiskMember" id="nmyqmif_EconomicSectorRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="FloatingAndVariableRateSecuritiesRiskMember" id="nmyqmif_FloatingAndVariableRateSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="FinancialFuturesAndOptionsTransactionsRiskMember" id="nmyqmif_FinancialFuturesAndOptionsTransactionsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="HedgingRiskMember" id="nmyqmif_HedgingRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="IncomeRiskMember" id="nmyqmif_IncomeRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="InflationRiskMember" id="nmyqmif_InflationRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="InsuranceRiskMember" id="nmyqmif_InsuranceRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="InverseFloatingRateSecuritiesRiskMember" id="nmyqmif_InverseFloatingRateSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="MunicipalSecuritiesRiskMember" id="nmyqmif_MunicipalSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="MunicipalSecuritiesMarketLiquidityRiskMember" id="nmyqmif_MunicipalSecuritiesMarketLiquidityRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="MunicipalSecuritiesMarketRiskMember" id="nmyqmif_MunicipalSecuritiesMarketRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="OtherInvestmentCompaniesRiskMember" id="nmyqmif_OtherInvestmentCompaniesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="PuertoRicoMunicipalSecuritiesMarketRiskMember" id="nmyqmif_PuertoRicoMunicipalSecuritiesMarketRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="ReinvestmentRiskMember" id="nmyqmif_ReinvestmentRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="RestrictedAndIlliquidInvestmentsRiskMember" id="nmyqmif_RestrictedAndIlliquidInvestmentsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" id="nmyqmif_SpecialConsiderationsRelatedToSingleStateConcentrationRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="StructuredProductsRiskMember" id="nmyqmif_StructuredProductsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="SwapTransactionsRiskMember" id="nmyqmif_SwapTransactionsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="TaxRiskMember" id="nmyqmif_TaxRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="TaxabilityRiskMember" id="nmyqmif_TaxabilityRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="TobaccoSettlementBondRiskMember" id="nmyqmif_TobaccoSettlementBondRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="UnratedSecuritiesRiskMember" id="nmyqmif_UnratedSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="ValuationRiskMember" id="nmyqmif_ValuationRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="AntiTakeoverProvisionsMember" id="nmyqmif_AntiTakeoverProvisionsMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CounterpartyRiskMember" id="nmyqmif_CounterpartyRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="SpecialRisksRelatedToCertainMunicipalObligationsMember" id="nmyqmif_SpecialRisksRelatedToCertainMunicipalObligationsMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CybersecurityRiskMember" id="nmyqmif_CybersecurityRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="EconomicAndPoliticalEventsRiskMember" id="nmyqmif_EconomicAndPoliticalEventsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="FundTaxRiskMember" id="nmyqmif_FundTaxRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="GlobalEconomicRiskMember" id="nmyqmif_GlobalEconomicRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="InvestmentAndMarketRiskMember" id="nmyqmif_InvestmentAndMarketRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="LegislationAndRegulatoryRiskMember" id="nmyqmif_LegislationAndRegulatoryRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="LeverageRiskMember" id="nmyqmif_LeverageRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="MarketDiscountFromNetAssetValueMember" id="nmyqmif_MarketDiscountFromNetAssetValueMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="RecentMarketConditionsMember" id="nmyqmif_RecentMarketConditionsMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="ReverseRepurchaseAgreementRiskMember" id="nmyqmif_ReverseRepurchaseAgreementRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="DerivativesRisksMember" id="nmyqmif_DerivativesRisksMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="InterestRateRisksMember" id="nmyqmif_InterestRateRisksMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="WhenIssuedAndDelayedDeliveryTransactionsRiskMember" id="nmyqmif_WhenIssuedAndDelayedDeliveryTransactionsRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" id="nmyqmif_ZeroCouponBondsRiskOrPayInKindSecuritiesRiskMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="CommonSharesMember" id="nmyqmif_CommonSharesMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="AdjustableRateMuniFundTermPreferredSharesMember" id="nmyqmif_AdjustableRateMuniFundTermPreferredSharesMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="VariableRateMuniFundTermPreferredSharesMember" id="nmyqmif_VariableRateMuniFundTermPreferredSharesMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>
	<element name="VariableRateDemandPreferredSharesMember" id="nmyqmif_VariableRateDemandPreferredSharesMember" type="dtr-types:domainItemType" substitutionGroup="xbrli:item" abstract="true" nillable="true" xbrli:periodType="duration"/>

</schema>
<!--
Create a text file having key=value pair
https://stackoverflow.com/questions/34176331/how-can-i-read-a-text-file-key-value-and-assign-the-values-to-strings-vars
-->
