id
int64
0
9.43k
db_id
stringclasses
69 values
schema
stringclasses
69 values
question
stringlengths
24
325
output
stringlengths
23
804
evidence
stringlengths
0
673
filtered_schema
listlengths
0
16
8,400
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many mountains are there in the United States?
SELECT COUNT(T1.Name) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T4.Name = 'United States'
[ "country.Name", "country.Province", "geo_mountain.Mountain", "geo_mountain.Province", "mountain.Name", "province.Name" ]
8,401
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
When did Equatorial Guinea become independent?
SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Equatorial Guinea'
Equatorial Guinea is a country
[ "country.Code", "country.Name", "politics.Country", "politics.Independence" ]
8,402
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the GDP per capita in Switzerland?
SELECT T2.GDP / T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland'
GDP per capita = GDP / Population
[ "country.Code", "country.Name", "country.Population", "economy.Country", "economy.GDP" ]
8,403
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the GDP for Service of the country with Fuenlabrada as its city.
SELECT T4.Service * T4.GDP FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name INNER JOIN economy AS T4 ON T4.Country = T2.Country WHERE T3.Name = 'Fuenlabrada'
[ "city.Name", "city.Province", "country.Code", "economy.Country", "economy.GDP", "economy.Service", "province.Country", "province.Name" ]
8,404
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many times longer is the longest river in Tajikistan than the shortest river?
SELECT MAX(T2.Length) / MIN(T2.Length) FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T1.Country = 'TJ'
TJ is an abbreviated country code of Tajikistan
[ "located.Country", "located.River", "river.Length", "river.Name" ]
8,405
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the population density of Hanoi's home country?
SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Hanoi'
population density = Population / Area
[ "city.Name", "city.Province", "country.Area", "country.Code", "country.Population", "province.Country", "province.Name" ]
8,406
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In countries where there is more than one ethnic group, name the ethnic group with the greatest presence in each country and the country to which it corresponds.
SELECT Country, Name FROM ethnicGroup AS T1 WHERE Percentage < 100 AND Percentage = ( SELECT MAX(Percentage) FROM ethnicGroup AS T2 WHERE T1.Country = T2.Country )
greatest presence can be represented by largest percentage.
[ "ethnicGroup.Country", "ethnicGroup.Name", "ethnicGroup.Percentage" ]
8,407
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many deserts are not located in a single country? Name them.
SELECT Desert FROM geo_desert GROUP BY Desert HAVING COUNT(DISTINCT Country) > 1
[ "geo_desert.Country", "geo_desert.Desert" ]
8,408
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many rivers belong to more than one country? Name the provinces where we can find them.
SELECT River, GROUP_CONCAT(Province) FROM geo_river GROUP BY River HAVING COUNT(DISTINCT Country) > 1
[ "geo_river.Country", "geo_river.Province", "geo_river.River" ]
8,409
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What percentage of the border does Angola share with each of the countries with which it borders?
SELECT SUM(CASE WHEN T2.Name = 'Angola' THEN T1.Length ELSE 0 END) * 100 / SUM(T1.Length) FROM borders AS T1 LEFT JOIN country AS T2 ON T1.Country1 = T2.Code
[ "borders.Country1", "borders.Length", "country.Code", "country.Name" ]
8,410
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What percent of the non volcanic islands in the Lesser Antilles group of islands have an area of no more than 300 square kilometers?
SELECT SUM(CASE WHEN Area <= 300 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM island WHERE Islands = 'Lesser Antilles' AND (Type != 'volcanic' OR Type IS NULL)
Percent = [count(non volcanic islands Lesser Antilles area 300 or less) / count(non volcanic islands Lesser Antilles)] * 100%
[ "island.Area", "island.Islands", "island.Type" ]
8,411
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Of all the countries in which English is spoken, what percentage has English as their only language?
SELECT CAST(SUM(CASE WHEN T2.Percentage = 100 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English'
Percentage = [count(countries 100% English) / count(countries English)] * 100%
[ "country.Code", "country.Name", "language.Country", "language.Name", "language.Percentage" ]
8,412
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Name of the capitals of the countries that have less than 99.95% less population than the country that has the most population.
SELECT Capital FROM country WHERE Population <= ( SELECT MAX(Population) - MAX(Population) * 0.9995 FROM country )
[ "country.Capital", "country.Population" ]
8,413
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Average length of the rivers flowing into the Donau River.
SELECT * FROM river WHERE Name = 'Donau'
[ "river.Name" ]
8,414
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Based on the data shown at Target, what percentage of countries are non-Christian?
SELECT 100 - (CAST(SUM(CASE WHEN Target = 'Christian' THEN 1 ELSE 0 END) AS REAL)) * 100 / COUNT(Country) FROM target
percentage of countries are non-Christian = [count(non-Christian) / count(non-Christian + Christian)] * 100%
[ "target.Country", "target.Target" ]
8,415
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which country with a city with a population between 50,000 and 300,000 inhabitants and which is a member of an organization established between 03/01/1991 and 04/30/1991 is also a member of the EBRD?
SELECT T2.Country FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country INNER JOIN city AS T4 ON T4.Country = T3.Country WHERE T3.Abbreviation = 'EBRD' AND T4.Population BETWEEN 50000 AND 300000 AND T3.Established BETWEEN '1991-01-31' AND '1991-04-...
[ "city.Country", "city.Population", "country.Code", "isMember.Country", "organization.Abbreviation", "organization.Country", "organization.Established" ]
8,416
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which river with its mouth in the Donau River and a length greater than 500 km is located in Slovenia?
SELECT T2.River FROM country AS T1 INNER JOIN geo_river AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Slovenia' AND T2.River IN ( SELECT NAME FROM river WHERE Length > 500 AND River = 'Donau' )
[ "country.Code", "country.Name", "geo_river.Country", "geo_river.River", "river.Length", "river.NAME", "river.River" ]
8,417
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which city is the sea whose depth is 4232 meters less than that of the Bay of Bengal?
SELECT T2.City FROM sea AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Sea INNER JOIN city AS T3 ON T3.Name = T2.City WHERE ( SELECT Depth FROM sea WHERE Name LIKE '%Bengal%' ) - T1.Depth = 4235
[ "city.Name", "located.City", "located.Sea", "sea.Depth", "sea.Name" ]
8,418
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which city is the lake located at coordinates longitude -85.35 and latitude 11.6?
SELECT T2.City FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN city AS T4 ON T4.Province = T3.Name WHERE T1.Longitude = -85.35 AND T1.Latitude = 11.6
[ "city.Province", "lake.Latitude", "lake.Longitude", "lake.Name", "located.City", "located.Lake", "located.Province", "province.Name" ]
8,419
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
On which continent is the country with the most erosion of real income?
SELECT T1.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code ORDER BY T4.Inflation DESC LIMIT 1
highest inflation rate results in the most erosion of real income
[ "continent.Name", "country.Code", "economy.Country", "economy.Inflation", "encompasses.Continent", "encompasses.Country" ]
8,420
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which two Asian countries share a border that is 1,782 kilometers long?
SELECT T4.Country1, T4.Country2 FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN borders AS T4 ON T4.Country1 = T3.Code WHERE T1.Name = 'Asia' AND T4.Length = 1782
[ "borders.Country1", "borders.Country2", "borders.Length", "continent.Name", "country.Code", "encompasses.Continent", "encompasses.Country" ]
8,421
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Of all the lakes in Bolivia, which is the deepest?
SELECT T1.Name FROM lake AS T1 INNER JOIN geo_lake AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Bolivia' ORDER BY T1.Depth DESC LIMIT 1
Bolivia is the country
[ "country.Code", "country.Name", "geo_lake.Lake", "geo_lake.Province", "lake.Depth", "lake.Name", "province.Country", "province.Name" ]
8,422
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which lake flows the river that is, in turn, the mouth of the Manicouagan River?
SELECT NAME FROM lake WHERE river = ( SELECT river FROM river WHERE NAME = 'Manicouagan' )
[ "river.NAME", "river.river" ]
8,423
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which group of islands is Rinjani Mountain located?
SELECT T1.Islands FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Name = 'Rinjani'
[ "island.Islands", "island.Name", "mountain.Name", "mountainOnIsland.Island", "mountainOnIsland.Mountain" ]
8,424
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List all the seas with which the deepest sea merges.
SELECT T2.Sea2 FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = ( SELECT Name FROM sea ORDER BY Depth DESC LIMIT 1 )
[ "mergesWith.Sea1", "mergesWith.Sea2", "sea.Depth", "sea.Name" ]
8,425
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Of all the countries that share territory with more than one continent, in which of them does the average population not exceed 10 inhabitants per square kilometer?
SELECT NAME FROM country WHERE CODE IN ( SELECT country FROM encompasses GROUP BY country HAVING COUNT(continent) > 1 ) AND population / Area <= 10
[ "encompasses.continent", "encompasses.country" ]
8,426
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Of all the countries of the Hindu religion, which has the lowest ratio of people per square meter of surface?
SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Hindu' ORDER BY T1.Population / T1.Area ASC LIMIT 1
ratio of people per square meter of surface = Population / Area
[ "country.Area", "country.Code", "country.Name", "country.Population", "religion.Country", "religion.Name" ]
8,427
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
On what date did the country have a gross domestic product 400% higher than Saint Kitts and Nevis become independent?
SELECT Independence FROM politics WHERE country = ( SELECT country FROM economy WHERE GDP = 1100 )
GDP refers to gross domestic product
[ "economy.GDP", "economy.country" ]
8,428
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the average population ratio of the countries in which organizations were established in 1947?
SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE STRFTIME('%Y', T2.Established) = '1947'
Average population ratio = Population / Area
[ "country.Area", "country.Code", "country.Population", "organization.Country", "organization.Established" ]
8,429
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the name of Anguilla's capital, and where is it located?
SELECT Capital, Province FROM country WHERE Name = 'Anguilla'
Anguilla is a country
[ "country.Capital", "country.Name", "country.Province" ]
8,430
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which nation has the smallest population, and where is its capital located?
SELECT Name, Capital FROM country ORDER BY Population ASC LIMIT 1
[ "country.Capital", "country.Name", "country.Population" ]
8,431
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How much more space does Asia have than Europe?
SELECT MAX(Area) - MIN(Area) FROM continent WHERE Name = 'Asia' OR Name = 'Europe'
Asia and Europe are two continents.
[ "continent.Area", "continent.Name" ]
8,432
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the geographic location of Aarhus city? Please provide the answer with the coordinates of the location.
SELECT Longitude, Latitude FROM city WHERE Name = 'Aarhus'
Longitude, Latitude = coordinates of the location
[ "city.Latitude", "city.Longitude", "city.Name" ]
8,433
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the population gap between the United Kingdom and Italy?
SELECT MAX(Population) - MIN(Population) FROM country WHERE Name = 'United Kingdom' OR Name = 'Italy'
Population gap = Total population of the United Kingdom - Total population of Italy
[ "country.Name", "country.Population" ]
8,434
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which city is the European Bank for Reconstruction and Development's headquarters? Please include the city and province where the headquarters are located in your answer.
SELECT City, Province FROM organization WHERE Name = 'European Bank for Reconstruction and Development'
[ "organization.City", "organization.Name", "organization.Province" ]
8,435
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which lake is the largest in terms of both surface area and depth?
SELECT Name FROM lake ORDER BY Area * Depth DESC LIMIT 1
Area * Depth can represents the metric in terms of both surface area and depth
[ "lake.Area", "lake.Depth", "lake.Name" ]
8,436
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which two nations are separated from one another by the longest border? Please include the entire names of the nations in your answer.
SELECT Country1, Country2 FROM borders ORDER BY Length DESC LIMIT 1
[ "borders.Country1", "borders.Country2", "borders.Length" ]
8,437
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which nation has the highest GDP? Please give the nation's full name.
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1
[ "country.Code", "country.Name", "economy.Country", "economy.GDP" ]
8,438
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which nation has the lowest proportion of people who speak an African language? Please state the nation's full name.
SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' ORDER BY T2.Percentage ASC LIMIT 1
Nation and country share the same meaning. Proportion refers to percentage
[ "country.Code", "country.Name", "ethnicGroup.Country", "ethnicGroup.Name", "ethnicGroup.Percentage" ]
8,439
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which country has three different religions-Anglicanism, Christianity, and Roman Catholicism and uses 100% English?
SELECT T2.Country FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T3.Country = T2.Country WHERE (T2.Name = 'Anglican' OR T2.Name = 'Christian' OR T2.Name = 'Roman Catholic') AND T3.Name = 'English' AND T3.Percentage = 100 GROUP BY T1.Name HAVING COUNT(T1.Name) = 3
[ "country.Code", "country.Name", "language.Country", "language.Name", "language.Percentage", "religion.Country", "religion.Name" ]
8,440
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Please list the top 3 countries with the highest inflation rate.
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.Inflation DESC LIMIT 3
[ "country.Code", "country.Name", "economy.Country", "economy.Inflation" ]
8,441
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Please provide a list of every nation where English is spoken and utilized entirely.
SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English' AND T2.Percentage = 100
Utilizition entirely means Percentage = 100% uses
[ "country.Code", "country.Name", "language.Country", "language.Name", "language.Percentage" ]
8,442
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many businesses were founded after 1960 in a nation that wasn't independent?
SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T2.Independence = NULL AND STRFTIME('%Y', T3.Established) > '1960'
Established means founded; Country means nation; Organization means businesses
[ "country.Code", "organization.Country", "organization.Established", "organization.Name", "politics.Country", "politics.Independence" ]
8,443
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What province did the river Klaeaelv travel through and how long is the river?
SELECT T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Klaraelv'
[ "city.Name", "city.Province", "located.City", "located.River", "river.Name" ]
8,444
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How many Italian regions are bordered by the Mediterranean Sea? How deep is the Mediterranean Sea?
SELECT COUNT(DISTINCT T2.province), T3.Depth FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T1.Code = 'I' AND T3.Name = 'Mediterranean Sea' GROUP BY T3.Depth
Reigion refers to province
[ "country.Code", "located.Country", "located.Sea", "located.province", "sea.Depth", "sea.Name" ]
8,445
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What nations are considered British Overseas Territories?
SELECT name FROM country WHERE CODE IN ( SELECT country FROM politics WHERE government = 'British Overseas Territories' )
British Overseas Territories is one government form; Nation and country share the same meaning
[ "politics.country", "politics.government" ]
8,446
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which of the top 3 economies by GDP has the lowest proportion of the economy devoted to agriculture?
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC, T2.Agriculture ASC LIMIT 1
Economies refers to countries
[ "country.Code", "country.Name", "economy.Agriculture", "economy.Country", "economy.GDP" ]
8,447
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
How big is Africa, and how many nations make up the continent?
SELECT T1.Area, COUNT(T3.Name) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Asia' GROUP BY T1.Name, T1.Area
Area can measure the size of countries; Country and nation share the same meaning
[ "continent.Area", "continent.Name", "country.Code", "country.Name", "encompasses.Continent", "encompasses.Country" ]
8,448
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which United States province is home to the greatest number of corporations' corporate headquarters?
SELECT T1.Province FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'United States' GROUP BY T1.Province ORDER BY COUNT(T1.Name) DESC LIMIT 1
Organization refers to corporation
[ "country.Code", "country.Name", "country.Province", "organization.Country" ]
8,449
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What are the most recent three independent nations?
SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country ORDER BY T2.Independence DESC LIMIT 3
Larger date of indepedence refers to more recent indepdence; Nation refers to country
[ "country.Code", "country.Name", "politics.Country", "politics.Independence" ]
8,450
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Please name any three sovereign nations that have been governed by the republic since 1991.
SELECT country FROM politics WHERE government = 'republic' AND STRFTIME('%Y', independence) >= '1991' AND country IN ( SELECT country FROM country ) ORDER BY independence LIMIT 3
Nation refers to country
[ "country.country" ]
8,451
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which company falls under the category of an associated member? Please provide the organization's full name.
SELECT NAME FROM organization WHERE country IN ( SELECT country FROM politics WHERE dependent != '' )
[ "politics.country", "politics.dependent" ]
8,452
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which nations have a boundary with the Kalahari Desert?
SELECT T3.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Kalahari'
Nation refers to country
[ "country.Code", "country.Name", "desert.Name", "geo_desert.Country", "geo_desert.Desert" ]
8,453
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which desert in Kazakhstan is the largest?
SELECT T1.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Kazakstan' ORDER BY T1.Area DESC LIMIT 1
[ "country.Code", "country.Name", "desert.Area", "desert.Name", "geo_desert.Country", "geo_desert.Desert" ]
8,454
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What sea does the Baltic Sea converge with, and how deep is the Baltic Sea?
SELECT T2.Sea2, T1.Depth FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = 'Baltic Sea'
Coverage refers to mergesWith
[ "mergesWith.Sea1", "mergesWith.Sea2", "sea.Depth", "sea.Name" ]
8,455
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which constitutional monarchy nations saw the greatest growth in the number of organizations after 1907?
SELECT T1.Name FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE STRFTIME('%Y', T2.Established) > '1907' AND T3.Government = 'constitutional monarchy' GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1
Nation refers to country; Information of growth appears in the column Established
[ "country.Code", "country.Name", "organization.Country", "organization.Established", "organization.Name", "politics.Country", "politics.Government" ]
8,456
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What kind of mountain is Ampato? Which province and nation does this mountain belong to?
SELECT T1.Type, T3.Name, T4.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T3.Country = T4.Code WHERE T1.Name = 'Ampato'
Nation refers to country
[ "country.Code", "country.Name", "geo_mountain.Mountain", "geo_mountain.Province", "mountain.Name", "mountain.Type", "province.Country", "province.Name" ]
8,457
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Please provide a list of every volcano mountain in the province of Ecuador.
SELECT T1.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province WHERE T3.Name = 'Ecuador' AND T1.Type = 'volcano'
[ "geo_mountain.Mountain", "geo_mountain.Province", "mountain.Name", "mountain.Type", "province.Name" ]
8,458
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What percentage of nations have achieved independence since 1993 and practice parliamentary democracy? Please include any three parliament-based democracies that attained independence after 1993.
SELECT SUM(IIF(government = 'parliamentary democracy', 1, 0)) , CAST(SUM(IIF(government = 'parliamentary democracy', 1, 0)) AS REAL) * 100 / COUNT(*) FROM politics AS t1 WHERE STRFTIME('%Y', independence) >= '1993'
Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%
[ "politics.government", "politics.independence" ]
8,459
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What proportion of rivers have a length of more than 3,000 miles? Please provide the name of a Russian river that is more than 3,000 miles long.
SELECT CAST(SUM(CASE WHEN T1.Length > 3000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN country AS T3 ON T3.Code = T2.Country
Proportion of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%
[ "country.Code", "located.Country", "located.River", "river.Length", "river.Name" ]
8,460
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the full name of ABEDA and when was it established?
SELECT Name, Established FROM organization WHERE Abbreviation = 'ABEDA'
[ "organization.Abbreviation", "organization.Established", "organization.Name" ]
8,461
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Name all the organisations that were established from 1970 to 1980.
SELECT Name FROM organization WHERE STRFTIME('%Y', Established) BETWEEN '1970' AND '1980'
[ "organization.Established", "organization.Name" ]
8,462
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Provide a list of all organisations with headquarters in London?
SELECT Name FROM organization WHERE City = 'London'
London is a city
[ "organization.City", "organization.Name" ]
8,463
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
For each organisations with headquarters in the USA, provide the its full name and the city where the headquarter is located at.
SELECT Name, City FROM organization WHERE Country = 'USA'
[ "organization.City", "organization.Country", "organization.Name" ]
8,464
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Name the first organisation established in the Paris city. State its abbreviation, full name and date of establishment.
SELECT Abbreviation, Name, Established FROM organization WHERE City = 'Paris' ORDER BY Established ASC LIMIT 1
Paris is a city
[ "organization.Abbreviation", "organization.City", "organization.Established", "organization.Name" ]
8,465
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List all the organisations that where its name contains 'United Nation'. State its full name and its headquarter city.
SELECT Name, City FROM organization WHERE Name LIKE '%United Nation%'
[ "organization.City", "organization.Name" ]
8,466
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which 2 countries' border span across the longest length? Provide the country's full name.
SELECT T1.Name, T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 ORDER BY T2.Length DESC LIMIT 1
[ "borders.Country1", "borders.Country2", "borders.Length", "country.Code", "country.Name" ]
8,467
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Name all countries in which have border with Bulgaria.
SELECT T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T1.Name = 'Bulgaria'
Bulgaria is a country name
[ "borders.Country1", "borders.Country2", "country.Code", "country.Name" ]
8,468
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
State all countries with border greater than 4,000. List the full country name.
SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 WHERE T2.Length > 4000
[ "borders.Country1", "borders.Length", "country.Code", "country.Name" ]
8,469
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Among the country member of 'IOC' organization, which country has the most population?
SELECT T2.Name FROM isMember AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Organization = 'IOC' ORDER BY T2.Population DESC LIMIT 1
[ "country.Code", "country.Name", "country.Population", "isMember.Country", "isMember.Organization" ]
8,470
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List all members and member type of the Islamic Development Bank.
SELECT T2.Country, T2.Type FROM organization AS T1 INNER JOIN isMember AS T2 ON T1.Abbreviation = T2.Organization INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T1.Name = 'Islamic Development Bank'
[ "country.Code", "isMember.Country", "isMember.Organization", "isMember.Type", "organization.Abbreviation", "organization.Name" ]
8,471
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
State the area and population of the country where Asia Pacific Economic Cooperation headquarter is located.
SELECT T2.Name, T2.Population FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Asia Pacific Economic Cooperation'
Asia Pacific Economic Cooperation is an organization name
[ "country.Code", "country.Name", "country.Population", "organization.Country", "organization.Name" ]
8,472
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the organization(s) that has 'National Society' as member type.
SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society'
[ "country.Code", "isMember.Country", "isMember.Type", "organization.Country", "organization.Name" ]
8,473
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which country has the least organization membership?
SELECT country FROM organization WHERE country IN ( SELECT Code FROM country ) GROUP BY country ORDER BY COUNT(NAME) LIMIT 1
[ "country.Code" ]
8,474
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List all countries with 'Category III' membership in 'IFAD' organization. Please also provide the capital of the country.
SELECT Name, Capital FROM country WHERE Code IN ( SELECT Country FROM isMember WHERE type = 'Category III' AND Organization = 'IFAD' )
[ "isMember.Country", "isMember.Organization", "isMember.type" ]
8,475
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Name the organizations with the most members.
SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1
[ "country.Code", "country.Name", "isMember.Country", "organization.Country", "organization.Name" ]
8,476
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the capital of Australia? Is the capital a headquarter to any organization? Name the organization(s).
SELECT T2.Capital, T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.City = T2.Capital WHERE T2.Name = 'Australia'
[ "country.Capital", "country.Name", "organization.City", "organization.Name" ]
8,477
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Among the organizations where headquarters are in the 'USA', what is the percentage of the them are in 'Washington'?
SELECT CAST(SUM(CASE WHEN T2.City = 'Washington' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.City) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T2.Country = 'USA'
percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%
[ "country.Code", "organization.City", "organization.Country" ]
8,478
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the border length between 'USA' and 'MEX'
SELECT Length FROM borders WHERE Country1 = 'MEX' AND Country2 = 'USA'
[ "borders.Country1", "borders.Country2", "borders.Length" ]
8,479
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the newest established organization where Singapore is a member of?
SELECT T3.Name FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T1.Name = 'Singapore' ORDER BY T3.Established DESC LIMIT 1
[ "country.Code", "country.Name", "isMember.Country", "organization.Country", "organization.Established", "organization.Name" ]
8,480
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Provide the population of the city of the 'World Tourism Organization' headquarter.
SELECT T2.Population FROM organization AS T1 INNER JOIN city AS T2 ON T1.City = T2.Name WHERE T1.Name = 'World Tourism Organization'
[ "city.Name", "city.Population", "organization.City", "organization.Name" ]
8,481
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the height of mountain Dhaulagiri located and in which province is it located?
SELECT T1.Height, T2.Province FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Dhaulagiri'
[ "geo_mountain.Mountain", "geo_mountain.Province", "mountain.Height", "mountain.Name" ]
8,482
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List all the name and height of all mountains in Alaska
SELECT T1.Name, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Alaska'
Alaska is a province
[ "geo_mountain.Mountain", "geo_mountain.Province", "mountain.Height", "mountain.Name" ]
8,483
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the population of the country with the highest infant mortality rate?
SELECT T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country ORDER BY T2.Infant_Mortality DESC LIMIT 1
[ "country.Code", "country.Population", "population.Country", "population.Infant_Mortality" ]
8,484
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
State the inflation rate of Greece.
SELECT T2.Inflation FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Greece'
[ "country.Code", "country.Name", "economy.Country", "economy.Inflation" ]
8,485
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Find the government type for the country with the highest percentage GDP in Agriculture.
SELECT T3.Government FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country ORDER BY T2.Agriculture DESC LIMIT 1
[ "country.Code", "economy.Agriculture", "economy.Country", "politics.Country", "politics.Government" ]
8,486
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
List the full name its capital of all the countries with parliamentary democracy government.
SELECT T1.Capital FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Government = 'parliamentary democracy'
Parliamentary democracy is a government form
[ "country.Capital", "country.Code", "politics.Country", "politics.Government" ]
8,487
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Provide a full list of countries and its population with more than 70% of Chinese.
SELECT T1.Name, T1.Population * T2.Percentage FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Chinese' AND T2.Percentage > 70
[ "country.Code", "country.Name", "country.Population", "ethnicGroup.Country", "ethnicGroup.Name", "ethnicGroup.Percentage" ]
8,488
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
In which city has the greatest population, what is its percentage to its country population?
SELECT T3.Name, CAST(T3.Population AS REAL) * 100 / T1.Population FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Country = T2.Country ORDER BY T3.Population DESC LIMIT 1
[ "city.Country", "city.Name", "city.Population", "country.Code", "country.Population", "province.Country" ]
8,489
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
When did the United States of America attained it's Independence?
SELECT T1.Independence FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United States'
[ "country.Code", "country.Name", "politics.Country", "politics.Independence" ]
8,490
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the peak height of the highest volcanic type of mountain? Give it's name.
SELECT Height, Name FROM mountain WHERE Type = 'volcanic' ORDER BY Height DESC LIMIT 1
peak means the highest
[ "mountain.Height", "mountain.Name", "mountain.Type" ]
8,491
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the name of the most recently founded organization in Saudi Arabia?
SELECT T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Saudi Arabia' ORDER BY T1.Established DESC LIMIT 1
Saudi Arabia is a country
[ "country.Code", "country.Name", "organization.Country", "organization.Established", "organization.Name" ]
8,492
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which country has the 5th highest infant mortality rate?
SELECT T2.Name FROM population AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Infant_Mortality DESC LIMIT 4, 1
[ "country.Code", "country.Name", "population.Country", "population.Infant_Mortality" ]
8,493
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which country has the widest range of religious practices?
SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1
[ "country.Code", "country.Name", "religion.Country", "religion.Name" ]
8,494
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What river has the 17th-longest length overall? Specify it's length.
SELECT Name, Length FROM river ORDER BY Length DESC LIMIT 16, 1
[ "river.Length", "river.Name" ]
8,495
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
When did the country whose capital is Nouakchott attained it's independence?
SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Capital = 'Nouakchott'
[ "country.Capital", "country.Code", "politics.Country", "politics.Independence" ]
8,496
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the name of the country with the smallest population, and what is its gross domestic product?
SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T1.Population ASC LIMIT 1
GDP refers to gross domestic product
[ "country.Code", "country.Name", "country.Population", "economy.Country", "economy.GDP" ]
8,497
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which Zaire region is home to the country's deepest lake's Name it and list its depth.
SELECT T3.Name, T1.Name, T1.Depth FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Zaire'
[ "country.Code", "country.Name", "lake.Depth", "lake.Name", "located.Lake", "located.Province", "province.Country", "province.Name" ]
8,498
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
What is the maximal elevation of the summit of the shortest mountain that can be found in the island of Madagaskar? Indicate what type of mountain it is.
SELECT T3.Height, T3.Type FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T1.Name = 'Madagaskar' ORDER BY T3.Height DESC LIMIT 1
The elevation of the summit refers to height
[ "island.Name", "mountain.Height", "mountain.Name", "mountain.Type", "mountainOnIsland.Island", "mountainOnIsland.Mountain" ]
8,499
mondial_geo
CREATE TABLE "borders" ( Country1 TEXT default '' not null constraint borders_ibfk_1 references country, Country2 TEXT default '' not null constraint borders_ibfk_2 references country, Length REAL, primary key (Country1, Country2) ); CREATE TABLE "city" ( N...
Which nation, with a population ranging from 60,000,000 to 99,000,000, has the greatest gross domestic product?
SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population BETWEEN 60000000 AND 90000000 ORDER BY T2.GDP DESC LIMIT 1
GDP refers to gross domestic product; Nation and country are synonyms
[ "country.Code", "country.Name", "country.Population", "economy.Country", "economy.GDP" ]