context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
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.
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many low income countries are there in South Asia?
SELECT COUNT(CountryCode) FROM Country WHERE Region = 'South Asia' AND IncomeGroup = 'Low income'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list the short name of countries which have the latest trade data after 2010.
SELECT ShortName FROM Country WHERE LatestTradeData > 2010
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please calculate the percentage of Sub-Saharan African countries which are in the Special trade system.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please calculate the average of Arms imports (SIPRI trend indicator values) of the European & Central Asian countries.
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)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which upper middle income country has the lowest value of CO2 emissions (kt)?
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the minimum of International migrant stock, total of heavily indebted poor countries?
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list the indicator names belonging to Education: Inputs topic in 2000.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many annual indicators use the Sum aggregation method from 2001 to 2003?
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
In 2005, which series codes use the International Monetary Fund, Balance of Payments Statistics Yearbook and data files source?
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%'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What percentage of countries in South Asia have the Life expectancy at birth, female (years) greater than 50?
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)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
From 1960 to 1965, which country had the highest Death rate, crude (per 1,000 people)?
SELECT CountryName FROM Indicators WHERE Year BETWEEN 1960 AND 1965 AND IndicatorName = 'Death rate, crude (per 1,000 people)' ORDER BY Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list the indicator names of Arab World whose values are higher than 50 in 1960.
SELECT IndicatorName FROM Indicators WHERE CountryName = 'Arab World' AND Year = 1960 AND Value > 50
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country has the highest value of Merchandise imports by the reporting economy (current US$)?
SELECT CountryName FROM Indicators WHERE IndicatorName = 'Merchandise imports by the reporting economy (current US$)' ORDER BY Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list annual indicator names which have values of more than 100 in 1965.
SELECT DISTINCT T2.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year = 1965 AND T1.Value > 100 AND T2.Periodicity = 'Annual'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
From 1968 to 1970, what are indicator names whose license type is open and values are less than 100?
SELECT DISTINCT T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year >= 1968 AND T1.Year < 1971 AND T2.LicenseType = 'Open' AND T1.Value < 100
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country had the highest value of indicator belongs to Private Sector & Trade: Exports topic? Please list the country name and indicator name.
SELECT T1.CountryName, T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T2.Topic = 'Private Sector & Trade: Exports' ORDER BY T1.Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which indicator name uses the Weighted average method and has the lowest value?
SELECT T1.IndicatorName, MIN(T1.Value) FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T2.AggregationMethod = 'Weighted average'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list out all annual indicator names of Sudan in 1961?
SELECT T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.CountryName = 'Sudan' AND T1.Year = 1961 AND T2.Periodicity = 'Annual'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
From 1960 to 1965, which country has the lowest value of indicator belongs to Health: Population: Structure?
SELECT CountryName FROM Indicators WHERE Value = ( SELECT MIN(T1.Value) FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year >= 1960 AND T1.Year < 1966 AND T2.Topic = 'Health: Population: Structure' )
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What percentage of upper middle income countries which have the CO2 emissions from liquid fuel consumption (% of total) less than 80%?
SELECT SUM(CASE WHEN T2.IndicatorName = 'CO2 emissions FROM liquid fuel consumption (% of total)' AND t2.Value < 80 THEN 1 ELSE 0 END) * 1.0 / COUNT(T1.CountryCode) persent FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is indicator code of Rural population?
SELECT DISTINCT IndicatorCode FROM Indicators WHERE IndicatorName = 'Rural population'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many country uses the 2008 System of National Accounts methodology? List our their table name.
SELECT TableName FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 2008 System of National Accounts methodology.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the series code of countries using Euro as their currency unit.
SELECT DISTINCT T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Euro'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the long name of countries using series code as DT.DOD.DSTC.CD
SELECT T1.LongName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'DT.DOD.DSTC.CD'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Mention the series code of countries using Hong Kong dollar as their currency unit.
SELECT T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Hong Kong dollar'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the table name of countries using series code as SP.DYN.TO65.MA.ZS
SELECT T1.TableName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SP.DYN.TO65.MA.ZS'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the country name of lower earning countries
SELECT DISTINCT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the series code and country code of the poor countries that located in Latin American & Carribbean.
SELECT T2.SeriesCode, T2.CountryCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Region = 'Latin America & Caribbean' AND t1.incomegroup = 'Low income'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Mention the series code of countries using Australian dollar as their currency unit. Which country belongs to middle income group among them.
SELECT T1.CountryCode, T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Australian dollar' AND T1.IncomeGroup = 'Lower middle income'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the country name of upper middle income group. Which country has the earliest national account base year? List out the region where this country locates.
SELECT DISTINCT T1.CountryName FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IncomeGroup = 'Upper middle income' UNION SELECT longname FROM ( SELECT longname FROM country WHERE NationalAccountsBaseYear <> '' ORDER BY NationalAccountsBaseYear ASC LIMIT 1 )
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the country code and country name of the rich countries using Euro as their currency unit
SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.CurrencyUnit = 'Euro' AND (T1.IncomeGroup = 'High income: OECD' OR T1.IncomeGroup = 'High income: nonOECD')
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the table name and currency unit of countries using series code as FP.CPI.TOTL
SELECT T1.TableName, T1.CurrencyUnit FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'FP.CPI.TOTL'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List out the name and indicator code of high income: nonOECD countries
SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'High income: nonOECD'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Mention the series code of countries using pound sterling as their currency unit. Which country belongs to high income group among them.
SELECT DISTINCT T1.CountryCode, T1.CurrencyUnit, T1.IncomeGroup FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Pound sterling' AND T1.IncomeGroup LIKE '%high income%'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List down 10 country codes and it's short names.
SELECT CountryCode, ShortName FROM Country LIMIT 10
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many of the countries name start with alphabet A? List down the Alpha2Code of them.
SELECT COUNT(ShortName) FROM Country WHERE ShortName LIKE 'A%' UNION SELECT alpha2code FROM country WHERE shortname LIKE 'A%'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which countries use Euro as their currency? List down the table name.
SELECT TableName FROM Country WHERE CurrencyUnit = 'Euro'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many of the countries do not have special notes? List the long name.
SELECT COUNT(LongName) FROM Country WHERE SpecialNotes = '' UNION SELECT longname FROM country WHERE specialnotes = ''
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which high income group countries are from Asia?
SELECT CountryCode, Region FROM Country WHERE (IncomeGroup = 'High income: OECD' OR IncomeGroup = 'High income: nonOECD') AND Region LIKE '%Asia%'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Name the countries' long name with national accounts base year prior to 1980.
SELECT LongName FROM Country WHERE NationalAccountsBaseYear < '1980' AND NationalAccountsBaseYear != ''
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which low income country has a series code of DT.DOD.DECT.CD? Name the country code of it.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
State the table name of country with description of "Covers mainland Tanzania only".
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.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Write down the description and series code of Benin in year 2005.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What are the footnote description of Finland in year 2000?
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What are the years when countries have indicator name of "Air transport, passengers carried"? List the table name of these countries.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List the long name of countries with indicator name in 1980.
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
State the currency of Malaysia and what are the indicator code used by this country in 1970?
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Name 5 country codes of country with highest value and state the region of these countries.
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries have country note description as "Sources: UN Energy Statistics (2014)"? List the currency of these countries.
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)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many footnotes have been made in year 1980 and what are the table names of these countries that made the footnotes?
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List the series code of country with country notes description as "Data sources : Eurostat" and state the Wb2Code of these countries.
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Among the low income countries, which country has the lowest fertility rate?
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How much is the total urban population of middle income countries in 1960?
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'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.
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
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries using the 1993 System of National Accounts methodology?
SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1993 System of National Accounts methodology.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country have completed vital registration? List all the countries.
SELECT ShortName FROM Country WHERE VitalRegistrationComplete = 'Yes'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country have conducted population census from 2010 until 2012 and have completed vital registration?
SELECT ShortName, LongName FROM Country WHERE LatestPopulationCensus >= 2010 AND LatestPopulationCensus < 2013 AND VitalRegistrationComplete = 'Yes'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country have the highest CO2 emissions in 1960?
SELECT CountryName FROM Indicators WHERE Year = 1960 AND IndicatorName = 'CO2 emissions (metric tons per capita)' ORDER BY Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
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.
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' )
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What country have the series code of SP.DYN.CBRT.IN?
SELECT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'SP.DYN.CBRT.IN'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country have data classified as official aid?
SELECT DISTINCT T1.CountryCode FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data are classified as official aid.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What country have its data estimated based on regression?
SELECT DISTINCT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Estimates are based on regression.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
List all the country in East Asia & Pacific region that have more than 2000000 urban population in 1970.
SELECT DISTINCT T1.CountryCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Year = 1970 AND T1.Region = 'East Asia & Pacific' AND T2.Value > 2000000 AND t2.indicatorname = 'Urban population'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
In 1960, what is largest population for country with upper middle income?
SELECT MAX(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Population, total'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries uses the 1968 System of National Accounts methodology?
SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What upper middle income country under East Asia & Pacific region which covers the topic about Social Protection & Labor: Migration ? Indicate the short name of the said country.
SELECT DISTINCT T1.ShortName FROM Country AS T1 INNER JOIN footnotes AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T1.IncomeGroup = 'Upper middle income' AND T1.Region = 'East Asia & Pacific' AND T3.Topic = 'Social Protection & Labor: Migration'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Name the country in which the topic is about Poverty: Shared Prosperity. Indicate the long name of the country.
SELECT DISTINCT T1.LongName FROM Country AS T1 INNER JOIN footnotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T3.Topic = 'Poverty: Shared prosperity'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What country has the latest trade data with a series code of "SP.DYN.CDRT.IN "? List the table name of the country.
SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.LatestTradeData = 2013 AND T2.IndicatorCode = 'SP.DYN.CDRT.IN'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What country in the region of Sub-Saharan Africa has a series code of "SP.DYN.AMRT.FE"? Indicate the long name of the country
SELECT DISTINCT T3.LongName FROM SeriesNotes AS T1 INNER JOIN CountryNotes AS T2 ON T1.SeriesCode = T2.Seriescode INNER JOIN Country AS T3 ON T2.Countrycode = T3.CountryCode WHERE T3.Region = 'Sub-Saharan Africa' AND T1.SeriesCode = 'SP.DYN.AMRT.FE'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries are using the same type of currency? Please list the short names of any 3 countries.
SELECT ShortName FROM country WHERE currencyunit = 'U.S. dollar' LIMIT 3
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What South Asian nations have low incomes? Please include the entire names of the nations in your answer.
SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please provide full name of any two countries using special trade system.
SELECT LongName FROM Country WHERE SystemOfTrade = 'Special trade system' LIMIT 2
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country has had the highest proportion of CO2 emissions from transport?
SELECT CountryName FROM Indicators WHERE IndicatorName LIKE 'CO2 emissions FROM transport%' ORDER BY Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which country has the lowest percentage of arable land?
SELECT CountryName FROM Indicators WHERE IndicatorName LIKE 'Arable land (% of land area)' ORDER BY Value DESC LIMIT 1
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What are the subjects of series that have a restricted type of license?
SELECT DISTINCT Topic FROM Series WHERE LicenseType = 'Restricted'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which countries in the upper middle income category still have unfinished external debt reporting? Please provide the country codes in your answer.
SELECT CountryCode FROM Country WHERE IncomeGroup = 'Upper middle income' AND ExternalDebtReportingStatus = 'Preliminary'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the percentage of countries in the Middle East and North Africa that have finished reporting on their real external debt?
SELECT CAST(SUM(CASE WHEN ExternalDebtReportingStatus = 'Actual' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(CountryCode) FROM Country WHERE region = 'Middle East & North Africa'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which form of government has more countries that have completed the actual external debt reporting between the two types of government accounting concepts, budgetary central government vs. consolidated central government?
SELECT SUM(CASE WHEN GovernmentAccountingConcept = 'Budgetary central government' THEN 1 ELSE 0 END), SUM(CASE WHEN GovernmentAccountingConcept = 'Consolidated central government' THEN 1 ELSE 0 END) central_nums FROM country WHERE ExternalDebtReportingStatus = 'Actual'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many nations in East Asia and the Pacific have completed their external debt reporting on time?
SELECT COUNT(CountryCode) FROM Country WHERE Region = 'East Asia & Pacific' AND ExternalDebtReportingStatus = 'Estimate'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What proportion of Sub-Saharan Africa's countries have lower middle incomes?
SELECT SUM(CASE WHEN IncomeGroup = 'Lower middle income' THEN 1 ELSE 0 END) * 100.0 / COUNT(CountryCode) persentage FROM Country WHERE Region = 'Sub-Saharan Africa'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
From 1961 to 1980, what was the highest percentage of land used for agriculture in the Republic of Benin?
SELECT MAX(T1.Value) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year >= 1961 AND T1.Year < 1981 AND T1.IndicatorName LIKE 'Agricultural land (% of land area)' AND T2.LongName = 'Republic of Benin'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please list the full names of any three countries that have their series code with a description of UN Energy Statistics (2014).
SELECT DISTINCT T2.LongName FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Description = 'Sources: UN Energy Statistics (2014)' LIMIT 3
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What was the deposit interest rate in the Commonwealth of Australia in 1979 in percentage?
SELECT T1.Value FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.LongName = 'Commonwealth of Australia' AND T1.IndicatorName = 'Deposit interest rate (%)' AND T1.Year = 1979
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the series code for Germany and what is its description?
SELECT T1.Seriescode, T1.Description FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.ShortName = 'Germany'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Please provide the subject of series of Austria.
SELECT DISTINCT T3.Topic FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode INNER JOIN Series AS T3 ON T1.Seriescode = T3.SeriesCode WHERE T2.ShortName = 'Austria'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the subject of the series SP.DYN.AMRT.MA and what does it pertain to?
SELECT DISTINCT T1.Topic, T2.Description FROM Series AS T1 INNER JOIN SeriesNotes AS T2 ON T1.SeriesCode = T2.Seriescode WHERE T1.SeriesCode = 'SP.DYN.AMRT.MA'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries are having their country's footnotes described as "unspecified"? Please provide the full names of any three of those countries.
SELECT COUNT(DISTINCT T1.CountryCode) FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' UNION SELECT T1.LongName FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' LIMIT 4
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Which nation completed its external debt reporting in 1980 and had a Land under cereal production value of 3018500?
SELECT T2.CountryCode FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName LIKE 'Land under cereal production%' AND T1.Value = 3018500 AND T1.Year = 1980 AND T2.ExternalDebtReportingStatus = 'Actual'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What portion of the nations in Latin America and the Caribbean had more than 50% of their land used for agriculture in 1961?
SELECT CAST(SUM(CASE WHEN T1.Value > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.CountryCode) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year = 1961 AND T2.Region = 'Latin America & Caribbean' AND indicatorname = 'Agricultural land (% of land area)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What are the full names of the countries in South Asia that belongs to the low income group?
SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the indicator code for Mobile Cellular Subscriptions of Brazil?
SELECT DISTINCT IndicatorCode FROM Indicators WHERE CountryName = 'Brazil' AND IndicatorName = 'Mobile cellular subscriptions'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries in Europe & Central Asia uses Danish krone as its currency? List the full names of those coutnries.
SELECT COUNT(longname) FROM country WHERE region = 'Europe & Central Asia' AND currencyunit = 'Danish krone' UNION SELECT longname FROM country WHERE currencyunit = 'Danish krone' AND region = 'Europe & Central Asia'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the name of the country with the highest percentage of rural population in the overall total population? Indicate the rural population percentage of total population.
SELECT countryname, MAX(value) FROM indicators WHERE indicatorname = 'Rural population (% of total population)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
How many countries have a latest population census in 2011? Indicate their full names.
SELECT COUNT(LongName) FROM country WHERE LatestPopulationCensus = '2011' UNION ALL SELECT LongName FROM country WHERE LatestPopulationCensus = '2011'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the agricultural land area in sq. km of Italy in 1968?
SELECT Value FROM Indicators WHERE IndicatorName = 'Agricultural land (sq. km)' AND Year = 1968 AND CountryName = 'Italy'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
In Sub-Saharan Africa, how many female out-of-school children of primary school age are there in the country with the higest number of female out-of-school children of primary school age? Indicate the year of when it was recorded.
SELECT MAX(T1.value), T1.year FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Sub-Saharan Africa' AND T1.IndicatorName = 'Out-of-school children of primary school age, female (number)'
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What is the series code for number of infant deaths in year 1965 for the country whose full name is Islamic State of Afghanistan?
SELECT DISTINCT T3.Seriescode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T2.CountryCode = T3.Countrycode WHERE T2.IndicatorName = 'Number of infant deaths' AND T1.LongName = 'Islamic State of Afghanistan' AND T2.Year = 1965
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
Among the countries who uses the 1968 System of National Accounts methodology, how many are in the Middle East & North Africa? Name the country with the highest CO2 emissions from solid fuel consumption in kiloton.
SELECT COUNT(DISTINCT T1.CountryCode) FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T2.SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' AND T1.IndicatorName = 'CO2 emissions FROM solid fuel consumption (kt)' UNION SELECT * FROM ( SELECT T1.CountryName FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T2.SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' AND T1.IndicatorName = 'CO2 emissions FROM solid fuel consumption (kt)' GROUP BY T1.CountryName ORDER BY SUM(T1.value) DESC LIMIT 1 )
bird
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text, OtherGroups text, SystemOfNationalAccounts text, AlternativeConversionFactor text, PppSurveyYear text, BalanceOfPaymentsManualInUse text, ExternalDebtReportingStatus text, SystemOfTrade text, GovernmentAccountingConcept text, ImfDataDisseminationStandard text, LatestPopulationCensus text, LatestHouseholdSurvey text, SourceOfMostRecentIncomeAndExpenditureData text, VitalRegistrationComplete text, LatestAgriculturalCensus text, LatestIndustrialData integer, LatestTradeData integer, LatestWaterWithdrawalData integer, SeriesCode text, Topic text, IndicatorName text, ShortDefinition text, LongDefinition text, UnitOfMeasure text, Periodicity text, BasePeriod text, OtherNotes integer, AggregationMethod text, LimitationsAndExceptions text, NotesFromOriginalSource text, GeneralComments text, Source text, StatisticalConceptAndMethodology text, DevelopmentRelevance text, RelatedSourceLinks text, OtherWebLinks integer, RelatedIndicators integer, LicenseType text, Countrycode text, Seriescode text, Description text, Countrycode text, Seriescode text, Year text, Description text, CountryName text, CountryCode text, IndicatorName text, IndicatorCode text, Year integer, Value integer, Seriescode text, Year text, Description text)
What are the indicator codes for the Republic of Albania in the year 1960?
SELECT DISTINCT T1.IndicatorCode FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year = 1960 AND T2.LongName = 'Republic of Albania'
bird