1sf/bird-sql-train-with-schema huggingface dataset:
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: In the countries for which the latest trade data are from 2013, what was the GDP growth in 2014? List them in the ascending order of GDP.
Evidence: IndicatorName = 'GDP growth (annual %)'; Year = 2014;
SQL: SELECT DISTINCT T1.CountryCode, T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.LatestTradeData = 2013 AND T2.IndicatorName LIKE 'GDP growth (annual %)' AND T2.year = 2014 AND T2.Value > 0 ORDER BY T2.Value ASC
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: Which European countries had the highest private expenditure on health in 2005? List the top ten countries in descending order and find the source of the data.
Evidence: Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;
SQL: SELECT DISTINCT T1.CountryCode, T3.Description FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T1.CountryCode = T3.Countrycode WHERE T2.IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)' AND T2.Value > 0 AND T2.year = 2005 ORDER BY T2.Value DESC LIMIT 10
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 are there in South Asia?
Evidence: South Asia is the name of the region; IncomeGroup = 'Low income';
SQL: SELECT COUNT(CountryCode) FROM Country WHERE Region = 'South Asia' 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: Please list the short name of countries which have the latest trade data after 2010.
Evidence: the latest trade data after 2010 implies LatestTradeData > 2010;
SQL: SELECT ShortName FROM Country WHERE LatestTradeData > 2010
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 calculate the percentage of Sub-Saharan African countries which are in the Special trade system.
Evidence: Sub-Saharan African is the name of the region; SystemOfTrade = 'Special trade system'; countries refer to CountryCode; DIVIDE(COUNT (CountryCode where SystemOfTrade = 'Special trade system' and Region = 'Sub-Saharan Africa'), COUNT(CountryCode where Region = 'Sub-Saharan Africa')) as percentage;
SQL: SELECT  CAST(SUM(CASE WHEN Region = 'Sub-Saharan Africa' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(CountryCode) FROM Country WHERE SystemOfTrade = 'Special trade system'
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 calculate the average of Arms imports (SIPRI trend indicator values) of the European & Central Asian countries.
Evidence: European & Central Asian is the name of the region; IndicatorName = 'Arms imports (SIPRI trend indicator values)'; countries refer to CountryCode; DIVIDE(Sum(Value), Count(CountryCode));
SQL: SELECT CAST(SUM(T2.Value) AS REAL) / COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Region = 'Europe & Central Asia' AND T2.IndicatorName = 'Arms imports (SIPRI trend indicator values)'
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: Which upper middle income country has the lowest value of CO2 emissions (kt)?
Evidence: IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);
SQL: SELECT T1.CountryCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income' AND T2.IndicatorName = 'CO2 emissions (kt)' ORDER BY T2.Value ASC LIMIT 1
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 minimum of International migrant stock, total of heavily indebted poor countries?
Evidence: IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);
SQL: SELECT MIN(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.OtherGroups = 'HIPC' AND T2.IndicatorName = 'International migrant stock, total'
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 indicator names belonging to Education: Inputs topic in 2000.
Evidence: Year = 'YR2000';
SQL: SELECT DISTINCT T2.IndicatorName FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year = 'YR2000' AND T2.Topic = 'Education: Inputs'
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 annual indicators use the Sum aggregation method from 2001 to 2003?
Evidence: Annual refers to Periodicity; from 2001 to 2003 implies Year = 'YR2001', Year = 'YR2002' , Year = 'YR2003';
SQL: SELECT COUNT(DISTINCT T2.SeriesCode)  FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year IN ('YR2001', 'YR2002', 'YR2003') AND T2.Periodicity = 'Annual' AND T2.AggregationMethod = 'Sum'
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: In 2005, which series codes use the International Monetary Fund, Balance of Payments Statistics Yearbook and data files source?
Evidence: Year contains '2005'; series codes contain 'International Monetary Fund'
SQL: SELECT T1.Seriescode, T2.Source FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year LIKE '%2005%' AND T2.Source LIKE 'International Monetary Fund%'
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 percentage of countries in South Asia have the Life expectancy at birth, female (years) greater than 50?
Evidence: South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;
SQL: SELECT CAST(SUM(CASE WHEN T2.value > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Region = 'South Asia' AND T2.IndicatorName = 'Life expectancy at birth, female (years)'