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 of the countries name start with alphabet A? List down the Alpha2Code of them.
Evidence: countries name starts with alphabet A refers to shortname like 'A%';
SQL: SELECT COUNT(ShortName) FROM Country WHERE ShortName LIKE 'A%' UNION SELECT alpha2code FROM country WHERE shortname LIKE 'A%'
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 countries use Euro as their currency? List down the table name.
Evidence: CurrencyUnit = 'Euro';
SQL: SELECT TableName FROM Country WHERE CurrencyUnit = 'Euro'
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 of the countries do not have special notes? List the long name.
Evidence: do not have special notes implies SpecialNotes are NULL;
SQL: SELECT COUNT(LongName) FROM Country WHERE SpecialNotes = '' UNION SELECT longname FROM country WHERE specialnotes = ''
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 high income group countries are from Asia?
Evidence: Asia is the name of the region;
SQL: SELECT CountryCode, Region FROM Country WHERE (IncomeGroup = 'High income: OECD' OR IncomeGroup = 'High income: nonOECD') AND Region LIKE '%Asia%'
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 countries' long name with national accounts base year prior to 1980.
Evidence: national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;
SQL: SELECT LongName FROM Country WHERE NationalAccountsBaseYear < '1980' AND NationalAccountsBaseYear != ''
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 low income country has a series code of DT.DOD.DECT.CD? Name the country code of it.
Evidence: IncomeGroup = 'Low income';
SQL: SELECT T1.CountryCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'Low income' AND T2.Seriescode = 'DT.DOD.DECT.CD'
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: State the table name of country with description of "Covers mainland Tanzania only".
SQL: SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Covers mainland Tanzania only.'
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: Write down the description and series code of Benin in year 2005.
Evidence: Benin is the short name of the country; year 2005 refers to Year = 'YR2005';
SQL: SELECT T2.Description, T2.Seriescode FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.TableName = 'Benin' AND T2.Year = 'YR2005'
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 are the footnote description of Finland in year 2000?
Evidence: Finland is the short name of the country; year 2000 refers to Year = 'YR2000';
SQL: SELECT DISTINCT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.TableName = 'Finland' AND T2.Year = 'YR2000'
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 are the years when countries have indicator name of "Air transport, passengers carried"? List the table name of these countries.
SQL: SELECT DISTINCT T2.Year, T1.TableName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Air transport, passengers carried'
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 long name of countries with indicator name in 1980.
Evidence: with any indicator name implies IndicatorName is not NULL; Year = '1980';
SQL: SELECT DISTINCT T1.LongName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Year = 1980 AND T2.IndicatorName IS NOT NULL
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: State the currency of Malaysia and what are the indicator code used by this country in 1970?
Evidence: Malaysia is the name of the country; currency refers to CurrencyUnit; Year = '1970';
SQL: SELECT T1.currencyunit, T2.IndicatorCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.TableName = 'Malaysia' AND T2.Year = 1970
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 5 country codes of country with highest value and state the region of these countries.
Evidence: with highest value refers to MAX(Value);
SQL: SELECT DISTINCT T1.CountryCode, T1.Region FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode ORDER BY T2.Value DESC LIMIT 5