db_id
stringclasses
69 values
schema
stringclasses
69 values
m_schema
stringclasses
69 values
question
stringlengths
24
325
sql
stringlengths
23
804
evidence
stringlengths
0
673
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Please list the mountains in the country with the lowest inflation rate.
SELECT Mountain FROM geo_mountain WHERE Country = ( SELECT Country FROM economy ORDER BY Inflation ASC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among the independent countries whose type of government is republic, what is the biggest number of deserts they have?
SELECT COUNT(T3.Desert) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_desert AS T3 ON T3.Country = T2.Country WHERE T2.Government = 'republic'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Please list the deserts in the countries whose population is over 100000 and covers an area of under 500000.
SELECT T2.Desert FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country WHERE T1.Area > 100000 AND T1.Population < 500000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many deserts are there in a country where over 90% of people speaks Armenian?
SELECT COUNT(T2.Desert) FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T1.Code = T2.Country WHERE T3.Name = 'Armenian' AND T3.Percentage > 90
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which mountain is the highest in an independent country?
SELECT T4.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_mountain AS T3 ON T3.Country = T2.Country INNER JOIN mountain AS T4 ON T4.Name = T3.Mountain WHERE T2.Independence IS NOT NULL ORDER BY T4.Height DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many volcanic mountains are there in countries whose population is no more than 5000000?
SELECT COUNT(DISTINCT T3.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Type = 'volcanic' AND T1.Population <= 5000000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among the countries with a GDP of over 1000000, how many of them have mountains higher than 1000?
SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T1.Code INNER JOIN mountain AS T4 ON T4.Name = T2.Mountain WHERE T3.GDP > 1000000 AND T4.Height > 1000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the greatest length of the border between 2 independent countries?
SELECT MAX(T3.Length) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Independence IS NOT NULL
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among the countries whose government type is republic, how many of them shares a border that's longer than 200?
SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Government = 'republic' AND T3.Length > 200
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Please list the countries that share the shortest border.
SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length ASC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the GDP of the European Continent?
SELECT SUM(T4.GDP) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN economy AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many mountains are there on the African Continent?
SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN province AS T4 ON T4.Country = T1.Code INNER JOIN geo_mountain AS T5 ON T5.Province = T4.Name WHERE T3.Name = 'European'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Of the deserts on the America Continent, which one covers the greatest area?
SELECT T5.Name FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN geo_desert AS T4 ON T4.Country = T1.Code INNER JOIN desert AS T5 ON T5.Name = T4.Desert WHERE T3.Name = 'America' ORDER BY T5.Area DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Please list the countries on the European Continent that have a population growth of more than 3%.
SELECT T2.Country FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Population_Growth > 0.03
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many countries on the European Continent has an infant mortality rate per thousand of over 100?
SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Infant_Mortality < 100
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among the countries that use Bosnian as their language, how many of them don't have a positive population growth rate?
SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN population AS T3 ON T3.Country = T2.Country WHERE T2.Name = 'Bosnian' AND T3.Population_Growth < 0
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the average percentage of agriculture of GDP in countries on the African Continent?
SELECT AVG(T4.Agriculture) 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 WHERE T1.Name = 'Africa'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among the independent countries, how many of them has a GDP per capita of over 5000?
SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Independence IS NOT NULL AND T3.GDP > 5000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the average inflation rate of the biggest continent?
SELECT AVG(T4.Inflation) 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 WHERE T1.Name = ( SELECT Name FROM continent ORDER BY Area DESC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which island is city Balikpapan located on? How big is the island?
SELECT T3.Name, T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Balikpapan'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all the cities in Sumatra and state the population of each city.
SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Name = 'Sumatra'
Sumatra is an island
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
On which island does South Yorkshire situated? State it's longtitude and latitude.
SELECT DISTINCT T3.Longitude, T3.Latitude FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'South Yorkshire'
'South Yorkshire' is a province
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all islands that are greater than the island on which Warwickshire is located.
SELECT DISTINCT Name FROM island WHERE Area > ( SELECT DISTINCT T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'Warwickshire' )
Warwickshire is a province
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
For island area less than 200, list the island name and city it belongs to.
SELECT DISTINCT T3.Name, T1.Name FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Area < 200
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
In which province is city Glenrothes located? What is the capital of the province?
SELECT T2.Province, T1.Capital FROM province AS T1 INNER JOIN city AS T2 ON T1.Name = T2.Province AND T1.Country = T2.Country WHERE T2.Name = 'Glenrothes'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List the all the cities and its city population for provinces with population more than 1000000.
SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province WHERE T2.Population > 1000000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all the coral islands along with its city and province.
SELECT City, Province FROM locatedOn WHERE Island IN ( SELECT Name FROM island WHERE Type = 'coral' )
Baltic Sea is a sea located in Northern Europe
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the average population for all cities location at Baltic Sea?
SELECT AVG(T1.Population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T3.Name = 'Baltic Sea'
Baltic Sea is a sea located in Northern Europe
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Calculate the percentage of population in Edmonton city to the population of its province.
SELECT CAST(T1.Population AS REAL) * 100 / T2.Population FROM city AS T1 INNER JOIN province AS T2 ON T1.Province = T2.Name WHERE T1.Name = 'Edmonton'
Percentage of population in each city = population(city) / population(province) * 100%
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which are the rivers that flows to Black Sea?
SELECT Name FROM river WHERE Sea = 'Black Sea'
Black Sea is a sea located in Eastern Europe and Western Asia
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
State the name of the lake in Albania province and in which city does it located at.
SELECT Lake, City FROM located WHERE Province = 'Albania' AND Lake IS NOT NULL
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Name the tallest mountain on Himalaya and what is its height.
SELECT Name, Height FROM mountain WHERE Mountains = 'Himalaya' ORDER BY Height DESC LIMIT 1
Tallest refers to max(height)
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all the mountains that are volcanic along with its longitude and latitude.
SELECT Name, Latitude, Longitude FROM mountain WHERE Type = 'volcano'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Name all the volcano mountains between the height of 2000 to 4000.
SELECT Name FROM mountain WHERE Type = 'volcano' AND Height BETWEEN 2000 AND 4000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Please state the longest river that flows to the Mediterranean Sea.
SELECT Name FROM river WHERE Sea = 'Mediterranean Sea' ORDER BY Length DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many percent of the mountains on Andes which are non-volcanic?
SELECT CAST(SUM(CASE WHEN type != 'volcano' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mountain WHERE Mountains = 'Andes'
Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all the cities and provinces located at the rivers that flows to Atlantic Ocean.
SELECT T1.Name, 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.Sea = 'Atlantic Ocean'
Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the name and length of rivers located at 'Orleans' city?
SELECT T3.Name, T3.Length 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 T1.Name = 'Orleans'
Orleans is a city in north-central France
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the height of the mountain on which river 'Lech' is located? Please also provide its longitude and latitude.
SELECT T1.Height, T1.Latitude, T1.Longitude 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 located AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Lech'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Name the river of which Lorraine is on. Please name the mountains where to source flow from?
SELECT T1.SourceLongitude, T1.SourceLatitude, T1.SourceAltitude FROM river AS T1 INNER JOIN geo_river AS T2 ON T2.River = T1.Name WHERE T2.Province = 'Lorraine'
Lorraine is a province
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which mountain does the river source Blue Nile located? State the height of the mountain.
SELECT T1.Name, T1.Height 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 geo_source AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Blue Nile'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Name the river at Little Rock city. State the length of the river.
SELECT T3.Length 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 T1.Name = 'Little Rock'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
List all rivers and province it is located that is greater than 1000 in length.
SELECT T1.Province, T2.Name FROM geo_river AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T2.Length > 1000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
In which province and country does Moldoveanu located? State its height.
SELECT T2.Province, T2.Country, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Moldoveanu'
Moldoveanu is a mountain
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Provide all rivers name and length in USA.
SELECT DISTINCT T3.Name, T3.Length 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 T2.Country = 'USA'
USA is a country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the average height of all mountains in Nepal?
SELECT AVG(T1.Height) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Nepal'
Nepal is a province
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
For all cities where Seine is located at, which city has the greatest population? Calculate the difference from the city with least population.
SELECT MAX(T1.Population) - MIN(T1.population) 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 = 'Seine'
Seince is a river; Population disparity refers to difference between cities with greatest and least population; Difference between cities with greatest and least population means max(population) - min(population)
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which are the 2 rivers located at Belgrade city? Which river is longer and how by much?
SELECT T1.Name, T1.Length FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN city AS T3 ON T3.Name = T2.City WHERE T3.Name = 'Belgrade'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which nations have a 100% Spanish-speaking population?
SELECT Country FROM language WHERE Name = 'Spanish' AND Percentage = 100
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which countries are dependent on the British Crown?
SELECT Country FROM politics WHERE Government = 'British crown dependency'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What are the names of the rivers in Canada?
SELECT DISTINCT T1.River FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Canada' AND T1.River IS NOT NULL
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the name of the country whose citizens have the lowest purchasing power?
SELECT T2.Name FROM economy AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Inflation DESC LIMIT 1
Inflation can reduce purchasing power over time for recipients and payers.
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What province does the 4th most populous city in the United Kingdom belong to, and how many people live there?
SELECT T1.Province, T1.Population FROM city AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United Kingdom' ORDER BY T1.Population DESC LIMIT 3, 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many Jewish residents are there in Moldova?
SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Moldova' AND T2.Name = 'Jewish'
Moldova is one country located in Eastern Europe; The number of residents can be computed by percentage * population
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the average area of Asian countries?
SELECT AVG(Area) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia'
Asia is a continent
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which country is home to the world's tiniest desert, and what are its longitude and latitude?
SELECT T2.Country, T1.Latitude, T1.Longitude FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert WHERE T1.Name = ( SELECT Name FROM desert ORDER BY Area ASC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many people in Montenegro speaks Serbian?
SELECT T1.Percentage * T2.Population FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Serbian' AND T2.Name = 'Montenegro'
Serbian is one language; Montenegro is a country located in Southeastern Europe
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many mountains are there in the country with the most land area?
SELECT COUNT(Mountain) FROM geo_mountain WHERE Country = ( SELECT Code FROM country ORDER BY Area DESC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which sea is the shallowest and which country surrounds it?
SELECT DISTINCT T2.Name FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE Sea = ( SELECT Name FROM sea ORDER BY Depth ASC LIMIT 1 )
Shallow sea refers to the sea with less depth
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which nation's GDP is the lowest among those that are communist states?
SELECT T2.Country FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Government = 'Communist state' ORDER BY T2.GDP ASC LIMIT 1
Communist is a government form
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What kind of political system is in place in the country with the highest inflation rate?
SELECT T1.Government FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country ORDER BY T2.Inflation DESC LIMIT 1
Political system refers to government form
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which nation has the greatest infant mortality rate among those that attained independence in 1960?
SELECT T1.Country FROM politics AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE STRFTIME('%Y', T1.Independence) = '1960' ORDER BY T2.Infant_Mortality DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the smallest border's length, and what form of government do the two nations bordering it have?
SELECT T1.Government, T3.Government FROM politics AS T1 INNER JOIN borders AS T2 ON T1.Country = T2.Country1 INNER JOIN politics AS T3 ON T3.Country = T2.Country2 ORDER BY T2.Length ASC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which Arabic-speaking country has the smallest population?
SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Arabic' AND T2.Percentage = 100 ORDER BY T1.Population ASC LIMIT 1
Arabic-speaking country = country that speaks 100% Arabic
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What provinces encompass the world's biggest desert in terms of overall area?
SELECT Province FROM geo_desert WHERE Desert = ( SELECT Name FROM desert ORDER BY Area DESC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many lakes are there in the 4th most populous African country with a republican form of government?
SELECT COUNT(*) FROM geo_lake WHERE Country = ( SELECT T4.Code FROM ( SELECT T2.Code, T2.Population FROM encompasses AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN politics AS T3 ON T1.Country = T3.Country WHERE T1.Continent = 'Africa' AND T1.Percentage = 100 AND T3.Government = 'republic' ORDER BY P...
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which religion is most prevalent in Asia?
SELECT T4.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 religion AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Asia' GROUP BY T4.Name ORDER BY SUM(T4.Percentage) DESC LIMIT 1
Most prevalent religion refers to the religion with the most population percentage
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the difference in population between the two nations where the tallest peak is located?
SELECT * FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Country = T2.Country INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T1.Name = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What are the names of the sea that can be found on the island with the biggest area?
SELECT T2.Name FROM islandIn AS T1 INNER JOIN sea AS T2 ON T2.Name = T1.Sea WHERE T1.Island = ( SELECT Name FROM island ORDER BY Area DESC LIMIT 1 )
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What are the names of the three nations where the longest river that empties into the Atlantic Ocean stretches to?
SELECT DISTINCT T1.Country 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 = ( SELECT Name FROM river WHERE Sea = 'Atlantic Ocean' ORDER BY Length DESC LIMIT 1 )
Empties into the Atlantic Ocean = flows to the Atlantic Ocean
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947?
SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the total number of Afro-Asian people in the most populous Asian country governed by a monarchy?
SELECT T5.Percentage * T6.Population FROM ethnicGroup AS T5 INNER JOIN country AS T6 ON T5.Country = T6.Code WHERE Country = ( SELECT T3.Code 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 politics AS T4 ON T4.Country = T3.Code WHE...
Total Number of People = Percentage * Population
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What are the names of the cities along the Euphrat River's course? Indicate the capital city of the nation where the Euphrat River flows.
SELECT T2.City, T1.Capital FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Euphrat'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the proportion of English-speaking citizens in the countries that rely on the United States compared to the total number of citizens in those countries?
SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE T3.Dependent = 'USA' AND T2.Name = 'English'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which federal republic country in Europe has the most provinces, and what proportion of GDP is devoted to services? Calculate the population density as well.
SELECT T1.Country, T2.Service , SUM(T1.Population) / SUM(T1.Area) FROM province AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Country IN ( SELECT Country FROM encompasses WHERE Continent = 'Europe' ) GROUP BY T1.Country, T2.Service ORDER BY COUNT(T1.Name) DESC LIMIT 1
Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the capital of the 3rd most populated country in Asia and what is the capital city's ratio in percentage (%) against the overall population of the country?
SELECT T4.Capital, CAST(T3.Population AS REAL) * 100 / T4.Population FROM city AS T3 INNER JOIN ( SELECT T1.Capital , T1.Population FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia' ORDER BY T1.Population DESC LIMIT 2, 1 ) AS T4 ON T3.Name = T4.Capital
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What's the name of the second biggest desert?
SELECT Name FROM desert ORDER BY Area DESC LIMIT 1, 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the main spoken language in MNE?
SELECT Name FROM language WHERE Country = 'MNE' ORDER BY Percentage DESC LIMIT 1
MNE is one country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What's the percentage of people in Cayman Islands speak English?
SELECT T1.Percentage FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Cayman Islands' AND T1.Name = 'English'
Cayman Islands is a country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which country was the source of Pjandsh River? Give the full name of the country.
SELECT T1.Name FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country WHERE T2.River = 'Pjandsh'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
For the countries have the population north of a billion, which one has the lowest GDP? Give the full name of the country.
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population > 1000000000 ORDER BY T2.GDP ASC LIMIT 1
billion = 1000000000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the capital of the country that has the Licancabur Mountain?
SELECT T4.Capital 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 T1.Name = 'Licancabur'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How much sea is around the island where Kerinci Mountain is located?
SELECT COUNT(T4.Sea) FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island INNER JOIN islandIn AS T4 ON T4.Island = T3.Name WHERE T1.Name = 'Kerinci'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which three countries does the Amazonas flow through? Give the full name of the countries.
SELECT DISTINCT T4.Name FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River INNER JOIN country AS T4 ON T4.Code = T2.Country WHERE T3.Name = 'Amazonas'
Amazonas flow is a river
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which country became independent on 1492-01-01? Give the full name of the country.
SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1492-01-01'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many cities in France have a population of more than 100,000?
SELECT COUNT(T2.Name) FROM country AS T1 INNER JOIN city AS T2 ON T2.Country = T1.Code WHERE T1.Name = 'France' AND T2.Population > 100000
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Among all the rivers finally flows to the sea of 540m in depth, which one has the longest length?
SELECT T2.Name FROM sea AS T1 INNER JOIN river AS T2 ON T2.Sea = T1.Name WHERE T1.Depth = 540 ORDER BY T2.Length DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
In which Country is the second highest volcanic mountain located in? Give the code of the country.
SELECT T3.Country 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 ORDER BY T1.Height DESC LIMIT 1, 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the longitude of the island on which Mount Olympos is located?
SELECT T3.Longitude FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Olympos'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
For all the countries that is smaller than 100 square kilometres, which one has the most GDP?
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Area < 100 ORDER BY T2.GDP DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What is the total number of cities that Japan have?
SELECT COUNT(T3.Name) 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 T1.Name = 'Japan'
Japan is a country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which city has most population other than its capital in Bangladesh?
SELECT T3.Name 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 T1.Name = 'Bangladesh' AND T3.Name <> T1.Capital ORDER BY T3.Population DESC LIMIT 1
Bangladesh is a country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which non capital city has the most people of all?
SELECT T3.Name 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 <> T1.Capital ORDER BY T3.Population DESC LIMIT 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
In which country is the city of Grozny? Give the full name of the country.
SELECT T1.Name 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 = 'Grozny'
Grozny is a province
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which religion has the majority of the people in Japan?
SELECT T2.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Percentage DESC LIMIT 1
Japan is a country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Which two countries have the border in length of 803 km? Give the full names of the countries.
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 WHERE T2.Length = 803
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many percent of the total area of Russia is in Europe?
SELECT T2.Percentage 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 T3.Name = 'Russia' AND T1.Name = 'Europe'
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
Give the full names of the countries that are located in more than one continent.
SELECT 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 GROUP BY T3.Name HAVING COUNT(T3.Name) > 1
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
How many people are there in Fareham's mother country?
SELECT T1.Population 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 = 'Fareham'
Mother country refers to home country
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...
【DB_ID】 mondial_geo 【Schema】 # Table: main.borders [ (Country1:TEXT, Primary Key, Examples: [A, AFG, AL]), (Country2:TEXT, Primary Key, Examples: [CH, CZ, D]), (Length:REAL, Examples: [164.0, 362.0, 784.0]) ] # Table: main.city [ (Name:TEXT, Primary Key, Examples: [Aachen, Aalborg, Aarau]), (Country:TEXT, Examples: [D,...
What's the number of infant mortality in Switzerland in a year?
SELECT T2.Infant_Mortality * T1.Population * T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland'
Number can be calculated = Infant_Mortality * Population * Population_Growth