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: How many countries have country note description as "Sources: UN Energy Statistics (2014)"? List the currency of these countries.
Evidence: countries refer to CountryCode; currency refers to CurrencyUnit;
SQL: SELECT COUNT(DISTINCT T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Sources: UN Energy Statistics (2014)' UNION SELECT DISTINCT t1.CurrencyUnit FROM country AS t1 INNER JOIN countrynotes AS t2 ON t1.CountryCode = t2.Countrycode WHERE t2.Description = 'Sources: UN Energy Statistics (2014)'
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 footnotes have been made in year 1980 and what are the table names of these countries that made the footnotes?
Evidence: year 1980 refers to Year = 'YR1980';
SQL: SELECT COUNT(T2.Description) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Year = 'YR1980' UNION ALL SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Year = 'YR1980'
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: List the series code of country with country notes description as "Data sources : Eurostat" and state the Wb2Code of these countries.
SQL: SELECT T2.seriescode, T1.Wb2Code FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data sources : Eurostat'
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 low income countries, which country has the lowest fertility rate?
Evidence: fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';
SQL: SELECT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' ORDER BY T2.Value 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: How much is the total urban population of middle income countries in 1960?
Evidence: IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;
SQL: SELECT SUM(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup LIKE '%middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Urban population'
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: Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.
Evidence: fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;
SQL: SELECT T2.countryname, T1.CurrencyUnit FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income (annual % growth)' AND T2.Year = 1980 AND T1.CurrencyUnit != '' ORDER BY T2.Value DESC 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: How many countries using the 1993 System of National Accounts methodology?
Evidence: use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'
SQL: SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1993 System of National Accounts methodology.'
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 country have completed vital registration? List all the countries.
Evidence: have completed vital registration refers to VitalRegistrationComplete = Yes; country name refers to ShortName
SQL: SELECT ShortName FROM Country WHERE VitalRegistrationComplete = 'Yes'
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 country have conducted population census from 2010 until 2012 and have completed vital registration?
Evidence: from 2010 until 2012 refers to LatestPopulationCensus between '2010' and '2012'; have completed vital registration refers to VitalRegistrationComplete = 'Yes'; CountryName = ShortName + LongName
SQL: SELECT ShortName, LongName FROM Country WHERE LatestPopulationCensus >= 2010 AND LatestPopulationCensus < 2013 AND VitalRegistrationComplete = 'Yes'
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 country have the highest CO2 emissions in 1960?
Evidence: which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'
SQL: SELECT CountryName FROM Indicators WHERE Year = 1960 AND IndicatorName = 'CO2 emissions (metric tons per capita)' ORDER BY Value DESC 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 ratio between country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971? List the country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971.
Evidence: ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')
SQL: SELECT CAST(MAX(value) AS REAL) / MIN(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' UNION ALL SELECT countryname FROM ( SELECT countryname, MAX(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' ) UNION SELECT countryname FROM ( SELECT countryname, MIN(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' )
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 country have the series code of SP.DYN.CBRT.IN?
Evidence: what country refers to ShortName
SQL: SELECT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'SP.DYN.CBRT.IN'