1sf/bird-sql-train-with-schema huggingface dataset:
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Please list all release titles whose tag is jazz in 2005.
Evidence: release titles refer to groupName; groupYear = 2005;
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear = 2005 AND T2.tag LIKE 'jazz'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: From 1980 to 2000, which artist had the most disco releases?
Evidence: From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1980 AND 2000 AND T2.tag LIKE 'disco' GROUP BY T1.artist ORDER BY COUNT(T2.tag) DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Which artists have released singles with the tag 1970s?
Evidence: releaseType = 'single';
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'single' AND T2.tag LIKE '1970s'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: From 1979 to 1982, what was the percentage of united.states albums out of total albums were released?
Evidence: From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;
SQL: SELECT CAST(SUM(CASE WHEN T2.tag LIKE 'united.states' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.releaseType) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1979 AND 1982 AND T1.releaseType LIKE 'album'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Among the countries in the group of Heavily Indebted Poor Countries, how many of them are under the lending category of the International Development Associations?
Evidence: group of Heavily Indebted Poor Countries is OtherGroups = 'HIPC'; International Development Associations refers to lendingcategory = 'IDA'
SQL: SELECT COUNT(CountryCode) FROM Country WHERE LendingCategory = 'IDA' AND OtherGroups = 'HIPC'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Please list the countries under the lending category of the International Development Associations and have a external debt reporting finished by estimation.
Evidence: countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'
SQL: SELECT ShortName, ExternalDebtReportingStatus FROM Country WHERE LendingCategory = 'IDA'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: What's the description of the series code SM.POP.TOTL for Aruba?
Evidence: Aruba is the name of the country where ShortName = 'Aruba'
SQL: SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'SM.POP.TOTL'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Please list the countries in Latin America & Caribbean with a note on the series code SM.POP.TOTL.
Evidence: Countries refer to the ShortName; Latin America & Caribbean is the name of the region
SQL: SELECT T1.SHORTNAME, T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Region = 'Latin America & Caribbean' AND T2.Seriescode = 'SM.POP.TOTL'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Among the countries with note on the series code SM.POP.TOTL, how many of them are in the low-income group?
Evidence: countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'
SQL: SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SM.POP.TOTL' AND T1.IncomeGroup = 'Low income'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Please list the descriptions of the series code SM.POP.TOTL for all the countries that are under the lending category of the International Development Associations.
Evidence: Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'
SQL: SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: How many low-income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL?
Evidence: low-income countries are where the incomegroup = Low income
SQL: SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' AND IncomeGroup = 'Low income'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: Among the countries in the High income: OECD group whose currency unit is Euro, how many of them have a note on the series code SP.DYN.AMRT.FE?
Evidence: countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'
SQL: SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'High income: OECD' AND T1.CurrencyUnit = 'Euro' AND T2.Seriescode = 'SP.DYN.AMRT.FE'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: What is the long name of the country with the description "Estimates are derived from data on foreign-born population." on the series code SM.POP.TOTL?
SQL: SELECT T1.LongName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Estimates are derived FROM data on foreign-born population.' AND T2.Seriescode = 'SM.POP.TOTL'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: What is the description of the footnote on the series code AG.LND.FRST.K2 in 1990 for Aruba?
Evidence: Year = 1990; Aruba is the name of country where ShortName = 'Aruba'
SQL: SELECT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' AND T2.Year = 'YR1990'
Database: world_development_indicators
Tables: Country, Series, CountryNotes, Footnotes, Indicators, SeriesNotes
Columns (table index, column name): -1, *, 0, CountryCode, 0, ShortName, 0, TableName, 0, LongName, 0, Alpha2Code, 0, CurrencyUnit, 0, SpecialNotes, 0, Region, 0, IncomeGroup, 0, Wb2Code, 0, NationalAccountsBaseYear, 0, NationalAccountsReferenceYear, 0, SnaPriceValuation, 0, LendingCategory, 0, OtherGroups, 0, SystemOfNationalAccounts, 0, AlternativeConversionFactor, 0, PppSurveyYear, 0, BalanceOfPaymentsManualInUse, 0, ExternalDebtReportingStatus, 0, SystemOfTrade, 0, GovernmentAccountingConcept, 0, ImfDataDisseminationStandard, 0, LatestPopulationCensus, 0, LatestHouseholdSurvey, 0, SourceOfMostRecentIncomeAndExpenditureData, 0, VitalRegistrationComplete, 0, LatestAgriculturalCensus, 0, LatestIndustrialData, 0, LatestTradeData, 0, LatestWaterWithdrawalData, 1, SeriesCode, 1, Topic, 1, IndicatorName, 1, ShortDefinition, 1, LongDefinition, 1, UnitOfMeasure, 1, Periodicity, 1, BasePeriod, 1, OtherNotes, 1, AggregationMethod, 1, LimitationsAndExceptions, 1, NotesFromOriginalSource, 1, GeneralComments, 1, Source, 1, StatisticalConceptAndMethodology, 1, DevelopmentRelevance, 1, RelatedSourceLinks, 1, OtherWebLinks, 1, RelatedIndicators, 1, LicenseType, 2, Countrycode, 2, Seriescode, 2, Description, 3, Countrycode, 3, Seriescode, 3, Year, 3, Description, 4, CountryName, 4, CountryCode, 4, IndicatorName, 4, IndicatorCode, 4, Year, 4, Value, 5, Seriescode, 5, Year, 5, Description
Question: On which years did Aruba got a footnote on the series code AG.LND.FRST.K2?
Evidence: Aruba is the name of country where ShortName = 'Aruba'
SQL: SELECT T2.Year FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2'