db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
world
select t1.language from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t1.isofficial = 't' and t2.name = 'greece'
Question: what are the official languages used in greece? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLanguage -> CountryCode, Lang...
what are the official languages used in greece?
world
select t2.population from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.name = 'queimados'
Question: give the population of the country where queimados city belongs. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLanguage -> ...
give the population of the country where queimados city belongs.
world
select t2.language from city as t1 inner join countrylanguage as t2 on t1.countrycode = t2.countrycode where t2.isofficial = 't' order by t1.population asc limit 1
Question: what are the official languages of the country where you can find the city with the least population? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState...
what are the official languages of the country where you can find the city with the least population?
world
select t2.surfacearea, t2.gnp from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.district = 'namibe'
Question: what is the surface area and gnp of the country where namibe district belongs? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. Count...
what is the surface area and gnp of the country where namibe district belongs?
world
select t2.name from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t1.isofficial = 't' and t1.language = 'english'
Question: list the names of the country that officially uses english as their language. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. Countr...
list the names of the country that officially uses english as their language.
world
select t1.district from city as t1 inner join country as t2 on t1.countrycode = t2.code order by t2.surfacearea asc limit 1
Question: what are the districts that belong to the country with the lowest surface area? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. Coun...
what are the districts that belong to the country with the lowest surface area?
world
select t2.name from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t2.gnp < 1000 and t1.isofficial = 't' and t1.language = 'dutch'
Question: list down the country names of countries that have a gnp lower than 1000 and have dutch as their language. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOf...
list down the country names of countries that have a gnp lower than 1000 and have dutch as their language.
world
select t2.gnp from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.district = 'entre rios' limit 1
Question: what is the gnp of the country where district 'entre rios' belongs? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLanguage ...
what is the gnp of the country where district 'entre rios' belongs?
world
select t2.localname from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.name = 'the valley'
Question: what is the local name of the country where 'the valley' city belongs? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLangua...
what is the local name of the country where 'the valley' city belongs?
world
select t2.name, t1.name from city as t1 inner join country as t2 on t1.countrycode = t2.code where t2.surfacearea > 7000000
Question: list down the cities belongs to the country that has surface area greater than 7000000. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Cod...
list down the cities belongs to the country that has surface area greater than 7000000.
world
select avg(t2.lifeexpectancy) from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t1.language = 'japanese'
Question: what is the life expectancy of the countries that uses japanese as their language? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. C...
what is the life expectancy of the countries that uses japanese as their language?
world
select t2.name, count(t1.name) from city as t1 inner join country as t2 on t1.countrycode = t2.code where t2.surfacearea = 652090 group by t2.name
Question: how many cities are there in the country with the surface area of 652090? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLan...
how many cities are there in the country with the surface area of 652090?
world
select t2.name, t1.language from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t2.indepyear between 1980 and 1995
Question: list down the languages of countries with an independence year between 1980 to 1995. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2....
list down the languages of countries with an independence year between 1980 to 1995.
world
select t2.lifeexpectancy from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.name = 'calama'
Question: what is the life expectancy of the people living in calama city? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLanguage -> ...
what is the life expectancy of the people living in calama city?
world
select t1.language from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t2.headofstate = 'pierre buyoya'
Question: provide the language used in the country ruled by pierre buyoya. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2. CountryLanguage -> ...
provide the language used in the country ruled by pierre buyoya.
world
select cast(sum(case when t1.district = 'england' then 1 else 0 end) as real) * 100 / count(*) from city as t1 inner join country as t2 on t1.countrycode = t2.code where t2.governmentform = 'constitutional monarchy'
Question: in countries with constitutional monarchy, what is the percentage of cities located in the district of england? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, H...
in countries with constitutional monarchy, what is the percentage of cities located in the district of england?
world
select t2.name from city as t1 inner join country as t2 on t1.countrycode = t2.code where t1.population between 140000 and 150000 group by t2.name, lifeexpectancy having lifeexpectancy < ( select avg(lifeexpectancy) from country ) * 0.8
Question: among the cities with a population between 140000 and 150000, list the country that has life expectancy greater than 80% life expectancy of all countries. | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy...
among the cities with a population between 140000 and 150000, list the country that has life expectancy greater than 80% life expectancy of all countries.
world
select cast(sum(case when t2.governmentform = 'republic' then 1 else 0 end) as real) * 100 / count(*) from countrylanguage as t1 inner join country as t2 on t1.countrycode = t2.code where t1.language = 'italian'
Question: among the countries that use italian as their language, what is the percentage of republic countries? | Tables: City -> ID, Name, CountryCode, District, Population. Country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState...
among the countries that use italian as their language, what is the percentage of republic countries?
music_platform_2
select count(podcast_id) from categories where category = ( select category from categories group by category order by count(podcast_id) desc limit 1 )
Question: how many podcasts are there in the category which has the most podcasts? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
how many podcasts are there in the category which has the most podcasts?
music_platform_2
select count(t1.podcast_id) from ( select podcast_id from categories group by podcast_id having count(category) >= 4 ) as t1
Question: what is the percentage of the podcast that are categorized in four or more categories? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joi...
what is the percentage of the podcast that are categorized in four or more categories?
music_platform_2
select itunes_id, itunes_url from podcasts where title = 'brown suga diaries'
Question: provide the itunes id and url for podcast titled 'brown suga diaries'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
provide the itunes id and url for podcast titled 'brown suga diaries'.
music_platform_2
select itunes_url from podcasts where title like '%dream%' group by itunes_url
Question: list all podcast with its itunes url for all title containing the word 'dream'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all podcast with its itunes url for all title containing the word 'dream'.
music_platform_2
select t1.category from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t2.title = 'i heart my life show'
Question: name all the categories for podcast titled 'i heart my life show'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
name all the categories for podcast titled 'i heart my life show'.
music_platform_2
select t2.title, t2.itunes_url from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'society-culture'
Question: list all the podcast title and its itunes url under the 'society-culture' category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all the podcast title and its itunes url under the 'society-culture' category.
music_platform_2
select count(t3.podcast_id) from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id where t2.title like '%spoilers%' and t1.category = 'arts' and t3.rating = 5
Question: how many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcas...
how many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '?
music_platform_2
select t2.author_id from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'pop rocket' and t2.created_at like '2016-%' and t2.rating < 5
Question: list the authors who created review for podcast titled 'pop rocket' in 2016 with rating less than 5. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, c...
list the authors who created review for podcast titled 'pop rocket' in 2016 with rating less than 5.
music_platform_2
select t2.title, t1.category from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id group by t3.podcast_id having avg(t3.rating) > 3
Question: name all the podcast title and its category with average rating of more than 3.0. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
name all the podcast title and its category with average rating of more than 3.0.
music_platform_2
select distinct t2.title from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id where t3.rating = 5 and t1.category = 'fiction'
Question: list all content reviewed for podcast with the best rating under the 'fiction' category. state the podcast title. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> ...
list all content reviewed for podcast with the best rating under the 'fiction' category. state the podcast title.
music_platform_2
select distinct t1.title, t2.content, t2.rating from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.title = 'love it!'
Question: state the podcast title, content review and rating for all reviews with titled 'love it!' | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | ...
state the podcast title, content review and rating for all reviews with titled 'love it!'
music_platform_2
select t2.author_id, t2.rating, t2.created_at from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'in the thick' group by t2.author_id, t2.rating, t2.created_at
Question: find the author, rating and review creation date of review for podcast title 'in the thick'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category....
find the author, rating and review creation date of review for podcast title 'in the thick'.
music_platform_2
select t1.podcast_id, t2.created_at, t2.title, t2.rating from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id order by t2.created_at desc limit 1
Question: which podcast was reviewed the latest? state the date of creation, podcast tile and rating. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. ...
which podcast was reviewed the latest? state the date of creation, podcast tile and rating.
music_platform_2
select t2.title, t2.rating, t2.content from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.author_id = '76a4c24b6038145'
Question: name the podcast title, rating and review content created by '76a4c24b6038145'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
name the podcast title, rating and review content created by '76a4c24b6038145'.
music_platform_2
select distinct t1.title, t2.title, t2.content from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.rating = 1
Question: for all reviews with the worst rating, state the podcast title as well as the review title and content. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id...
for all reviews with the worst rating, state the podcast title as well as the review title and content.
music_platform_2
select distinct t1.title, t2.rating from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.created_at like '2019-05-%'
Question: list all reviews created in may 2019. state the title of podcast and review rating. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all reviews created in may 2019. state the title of podcast and review rating.
music_platform_2
select avg(t2.rating) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id group by t1.podcast_id order by count(t2.content) desc limit 1
Question: what is the average rating for the podcast that is most reviewed? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating for the podcast that is most reviewed?
music_platform_2
select t1.category from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t2.title = 'scifi tech talk'
Question: which category does the podcast titled 'scifi tech talk' belong to? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
which category does the podcast titled 'scifi tech talk' belong to?
music_platform_2
select podcast_id, itunes_url from podcasts where podcast_id = ( select podcast_id from reviews where title = 'long time listener, calling it quits' )
Question: what is the name of the podcast in which a commentor left a comment with the title 'long time listener, calling it quits?' include the url of the podcast as well. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, conte...
what is the name of the podcast in which a commentor left a comment with the title 'long time listener, calling it quits?' include the url of the podcast as well.
music_platform_2
select t2.title from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'true-crime'
Question: list all the names of podcasts under the 'true crime' category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all the names of podcasts under the 'true crime' category.
music_platform_2
select content from reviews where podcast_id = ( select podcast_id from podcasts where title = 'stormcast: the official warhammer age of sigmar podcast' )
Question: write all the review content belonging to stormcast: the official warhammer age of sigmar podcast. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, cat...
write all the review content belonging to stormcast: the official warhammer age of sigmar podcast.
music_platform_2
select title, content from reviews where podcast_id = ( select podcast_id from podcasts where title = 'more stupider: a 90-day fiance podcast' ) and rating = 1
Question: write all the review titles and the contents belonging to the podcast 'more stupider: a 90-day fiance podcast' with a review rating of 1. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, cr...
write all the review titles and the contents belonging to the podcast 'more stupider: a 90-day fiance podcast' with a review rating of 1.
music_platform_2
select count(t2.rating) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'lifeafter/the message' and t2.rating <= 3
Question: how many reviews does 'lifeafter/the message' have which were rated below 3? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
how many reviews does 'lifeafter/the message' have which were rated below 3?
music_platform_2
select avg(t3.rating) from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id where t2.title = 'more stupider: a 90-day fiance podcast'
Question: the 'more stupider: a 90-day fiance podcast' belongs to which category and what is the average rating of the podcast? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories...
the 'more stupider: a 90-day fiance podcast' belongs to which category and what is the average rating of the podcast?
music_platform_2
select ( select category from categories where category = 'arts-books' or category = 'arts-design' group by category order by count(podcast_id) desc limit 1 ) 'has more podcasts' , ( select sum(case when category = 'arts-books' then 1 else 0 end) - sum(case when category = 'arts-design' then 1 else 0 end) from categori...
Question: of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. cat...
of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?
music_platform_2
select sum(reviews_added) from runs where run_at like '2022-06-%'
Question: how many total reviews runned at in june 2022 were added to the podcasts? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
how many total reviews runned at in june 2022 were added to the podcasts?
music_platform_2
select count(podcast_id) from reviews where rating = 3 and created_at between '2015-01-01t00:00:00-07:00' and '2015-03-31t23:59:59-07:00'
Question: how many podcast reviews with a rating of 3 were created during the first quarter of 2015? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. |...
how many podcast reviews with a rating of 3 were created during the first quarter of 2015?
music_platform_2
select cast(sum(case when category = 'fiction-science-fiction' then 1 else 0 end) as real) * 100 / count(podcast_id) or '%' 'percentage' from categories
Question: calculate the percentage of podcasts in the fiction-science-fiction category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
calculate the percentage of podcasts in the fiction-science-fiction category.
music_platform_2
select avg(rating) from reviews where created_at between '2019-01-01t00:00:00-07:00' and '2019-12-31t23:59:59-07:00'
Question: what is the average rating of all the podcasts with reviews created in 2019? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating of all the podcasts with reviews created in 2019?
music_platform_2
select cast((sum(case when run_at like '2022-%' then reviews_added else 0 end) - sum(case when run_at like '2021-%' then reviews_added else 0 end)) as real) * 100 / sum(reviews_added) or '%' 'percentage' from runs
Question: what is the percentage of reviews added each year of the total reviews added? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the percentage of reviews added each year of the total reviews added?
music_platform_2
select t2.title from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'fiction'
Question: indicates the title of all podcasts in the fiction category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
indicates the title of all podcasts in the fiction category.
music_platform_2
select distinct t3.rating, t1.category from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id where t2.title = 'sitcomadon'
Question: what is the rating and category of the podcast entitled sitcomadon? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the rating and category of the podcast entitled sitcomadon?
music_platform_2
select t2.author_id from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.itunes_id = 1516665400
Question: indicate the id of the reviewer whose itunes id is 1516665400. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
indicate the id of the reviewer whose itunes id is 1516665400.
music_platform_2
select distinct t1.title from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.created_at between '2018-08-22t11:53:16-07:00' and '2018-11-20t11:14:20-07:00'
Question: what are the titles of the podcasts whose reviews were created between 2018-08-22t11:53:16-07:00 and 2018-11-20t11:14:20-07:00? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. ...
what are the titles of the podcasts whose reviews were created between 2018-08-22t11:53:16-07:00 and 2018-11-20t11:14:20-07:00?
music_platform_2
select distinct t1.category from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.author_id = 'efb34eac8e9397c'
Question: to which categories do the podcasts of the reviewer whose id is efb34eac8e9397c belong? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Jo...
to which categories do the podcasts of the reviewer whose id is efb34eac8e9397c belong?
music_platform_2
select slug, itunes_url from podcasts where podcast_id in ( select podcast_id from reviews where content = 'can''t stop listening' )
Question: indicate the slug and the itunes url of the podcast whose review content was written can't stop listening. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast...
indicate the slug and the itunes url of the podcast whose review content was written can't stop listening.
music_platform_2
select created_at from reviews where podcast_id = ( select podcast_id from podcasts where title = 'don''t lie to your life coach' )
Question: what dates were the don't lie to your life coach podcast reviews created? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what dates were the don't lie to your life coach podcast reviews created?
music_platform_2
select count(distinct t1.category) from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.created_at between '2016-07-01t00:00:00-07:00' and '2016-12-31t23:59:59-07:00'
Question: in how many categories were podcast reviews created in the last six months of 2016? list them. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, categor...
in how many categories were podcast reviews created in the last six months of 2016? list them.
music_platform_2
select avg(t2.rating) from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'true-crime'
Question: calculate the average rating of the true crime category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
calculate the average rating of the true crime category.
music_platform_2
select distinct t2.title from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'arts'
Question: list the titles of the art category. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list the titles of the art category.
music_platform_2
select avg(t2.rating) from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'arts'
Question: what is the average rating of all the podcasts in category art? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating of all the podcasts in category art?
music_platform_2
select distinct t2.title from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'arts' and t2.created_at like '2018-%'
Question: provide the names of podcasts in the art category in 2018. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
provide the names of podcasts in the art category in 2018.
music_platform_2
select distinct t2.title from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'music' and t2.rating > 3
Question: write the names of the podcasts in the music category that have a rating greater than 3. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | J...
write the names of the podcasts in the music category that have a rating greater than 3.
music_platform_2
select distinct t2.title from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where (t2.created_at like '2018-%' and t1.category = 'arts' and t2.content like '%love%') or (t2.created_at like '2019-%' and t1.category = 'arts' and t2.content like '%love%')
Question: which titles have the content 'love' but the category is art produced between 2018 and 2019. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category....
which titles have the content 'love' but the category is art produced between 2018 and 2019.
music_platform_2
select t1.category, t2.itunes_url from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t2.title = 'scaling global'
Question: what is the category and itune url of the title 'scaling global'? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the category and itune url of the title 'scaling global'?
music_platform_2
select avg(t2.rating) from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'comedy'
Question: what is the average rating of podcasts in comedy category? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating of podcasts in comedy category?
music_platform_2
select category from categories group by category order by count(podcast_id) asc limit 1
Question: what is the least common category? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the least common category?
music_platform_2
select title from reviews order by length(content) desc limit 1
Question: what is the longest review? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the longest review?
music_platform_2
select title from podcasts where podcast_id = ( select podcast_id from reviews where title = 'hosts bring the show down' )
Question: what is the review with the title 'hosts bring the show down' for? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the review with the title 'hosts bring the show down' for?
music_platform_2
select t2.title from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'music' order by length(t2.title) desc limit 1
Question: which 'music' podcast has the longest title? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
which 'music' podcast has the longest title?
music_platform_2
select category from categories where podcast_id in ( select podcast_id from podcasts where title like '%jessica%' )
Question: list all the cagetories for all the podcasts with 'jessica' in the title. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all the cagetories for all the podcasts with 'jessica' in the title.
music_platform_2
select category from categories where podcast_id in ( select podcast_id from podcasts where title = 'moist boys' )
Question: what is the category for the 'moist boys' podcast? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the category for the 'moist boys' podcast?
music_platform_2
select t1.category from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.rating = 2
Question: list all of the two-star reviews and their categories. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list all of the two-star reviews and their categories.
music_platform_2
select t1.title from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.title = 'inspired & on fire!'
Question: list all the podcasts reviewed by a reviewer who has a review titled 'inspired & on fire!'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. ...
list all the podcasts reviewed by a reviewer who has a review titled 'inspired & on fire!'.
music_platform_2
select t2.title, t1.category from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id inner join reviews as t3 on t3.podcast_id = t2.podcast_id where t3.content like '%absolutely fantastic%'
Question: what are the titles and categories of all the podcasts with a review that has 'absolutely fantastic' in it? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcas...
what are the titles and categories of all the podcasts with a review that has 'absolutely fantastic' in it?
music_platform_2
select t1.category from categories as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id group by t1.category order by count(t2.podcast_id) desc limit 1
Question: which category has the most reviews? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
which category has the most reviews?
music_platform_2
select itunes_url from podcasts where podcast_id in ( select podcast_id from categories where category = 'fiction-science-fiction' )
Question: list the urls for all the 'fiction-science-fiction' podcasts. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
list the urls for all the 'fiction-science-fiction' podcasts.
music_platform_2
select t2.content from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'stuff you should know' order by t2.created_at asc limit 1
Question: what is the content of the earliest review for the 'stuff you should know' podcast? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the content of the earliest review for the 'stuff you should know' podcast?
music_platform_2
select count(t2.podcast_id) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'planet money'
Question: how many reviews does 'planet money' have? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
how many reviews does 'planet money' have?
music_platform_2
select avg(t2.rating) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'crime junkie'
Question: what is the average rating for the 'crime-junkie' podcast? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating for the 'crime-junkie' podcast?
music_platform_2
select cast(sum(case when t1.category = 'technology' then 1 else 0 end) as real) * 100 / count(t2.title) or '%' 'percentage' from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id
Question: what percentage of podcasts are 'technology' podcasts? list all of them. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what percentage of podcasts are 'technology' podcasts? list all of them.
music_platform_2
select content from reviews where title = 'really interesting!' and created_at = '2018-04-24t12:05:16-07:00'
Question: what is the content of the review under the title 'really interesting!' and is created on 2018-04-24 at 12:05:16? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> ...
what is the content of the review under the title 'really interesting!' and is created on 2018-04-24 at 12:05:16?
music_platform_2
select category from categories where podcast_id in ( select podcast_id from podcasts where title = 'scaling global' )
Question: which category is the podcast 'scaling global' under? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
which category is the podcast 'scaling global' under?
music_platform_2
select distinct t2.title from categories as t1 inner join podcasts as t2 on t2.podcast_id = t1.podcast_id where t1.category = 'arts-performing-arts'
Question: please list the titles of all the podcasts under the category 'arts-performing-arts'. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Join...
please list the titles of all the podcasts under the category 'arts-performing-arts'.
music_platform_2
select count(t2.content) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'scaling global'
Question: how many reviews are created for the podcast 'scaling global' under? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
how many reviews are created for the podcast 'scaling global' under?
music_platform_2
select count(t2.created_at) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'please excuse my dead aunt sally' and t2.created_at like '2019-%'
Question: among the reviews for the podcast 'please excuse my dead aunt sally', how many of them are made in the year 2019? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> ...
among the reviews for the podcast 'please excuse my dead aunt sally', how many of them are made in the year 2019?
music_platform_2
select t2.title from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t2.author_id = 'f7e5a318989779d'
Question: please list the titles of the podcasts for which the author whose id is f7e5a318989779d has written a review. | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podc...
please list the titles of the podcasts for which the author whose id is f7e5a318989779d has written a review.
music_platform_2
select count(t2.rating) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'please excuse my dead aunt sally' and t2.rating = 5
Question: how many ratings of 5 have been given to the podcast 'please excuse my dead aunt sally'? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | J...
how many ratings of 5 have been given to the podcast 'please excuse my dead aunt sally'?
music_platform_2
select avg(t2.rating) from podcasts as t1 inner join reviews as t2 on t2.podcast_id = t1.podcast_id where t1.title = 'please excuse my dead aunt sally'
Question: what is the average rating of the podcast 'please excuse my dead aunt sally'? | Tables: runs -> run_at, max_rowid, reviews_added. podcasts -> podcast_id, itunes_id, slug, itunes_url, title. reviews -> podcast_id, title, content, rating, author_id, created_at. categories -> podcast_id, category. | Joins:
what is the average rating of the podcast 'please excuse my dead aunt sally'?
university
select count(*) from university_year where num_students > 80000 and year = 2011
Question: how many universities have at least 80,000 students in the year 2011? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id...
how many universities have at least 80,000 students in the year 2011?
university
select ranking_system_id from ranking_criteria where criteria_name = 'award'
Question: what is the ranking system id of the award criteria? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, year, score. un...
what is the ranking system id of the award criteria?
university
select count(*) from university where university_name like '%state%'
Question: how many state universities are there? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, year, score. university_year ...
how many state universities are there?
university
select max(student_staff_ratio) from university_year where student_staff_ratio = ( select max(student_staff_ratio) from university_year )
Question: what is the student staff ratio of the university with the highest student staff ratio of all time? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> univ...
what is the student staff ratio of the university with the highest student staff ratio of all time?
university
select count(id) from ranking_criteria where ranking_system_id = 3
Question: how many criteria belong to ranking system id 3? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, year, score. univer...
how many criteria belong to ranking system id 3?
university
select university_id from university_year where pct_international_students = 1 and year between 2011 and 2015
Question: what is the id of the university that has only 1% of international students between 2011 to 2015? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> univer...
what is the id of the university that has only 1% of international students between 2011 to 2015?
university
select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id group by t2.country_name order by count(t1.university_name) desc limit 1
Question: give the name of the country that has the most universities. | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, year, s...
give the name of the country that has the most universities.
university
select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id order by t1.pct_international_students desc limit 1
Question: what is the name of the university that had the highest number of international students for 6 consecutive years? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_rankin...
what is the name of the university that had the highest number of international students for 6 consecutive years?
university
select t3.university_name from ranking_criteria as t1 inner join university_ranking_year as t2 on t1.id = t2.ranking_criteria_id inner join university as t3 on t3.id = t2.university_id where t1.criteria_name = 'publications rank' and t2.year = 2014 and t1.id = 17 order by t2.score desc limit 1
Question: in 2014, what is the name of the university which was considered a leader in the publications rank? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> univ...
in 2014, what is the name of the university which was considered a leader in the publications rank?
university
select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id order by t1.num_students limit 1
Question: what is the name of the university that has the lowest number of students of all time? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ra...
what is the name of the university that has the lowest number of students of all time?
university
select count(*) from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'united states of america'
Question: how many universities are there in the united states of america? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, yea...
how many universities are there in the united states of america?
university
select t3.university_name from ranking_criteria as t1 inner join university_ranking_year as t2 on t1.id = t2.ranking_criteria_id inner join university as t3 on t3.id = t2.university_id inner join country as t4 on t4.id = t3.country_id where t1.criteria_name = 'citations' and t2.year = 2016 and t1.id = 4 and t4.country_...
Question: in 2016, what is the name of the university in australia with the highest score in citations criteria? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> u...
in 2016, what is the name of the university in australia with the highest score in citations criteria?
university
select count(*) from ranking_criteria as t1 inner join university_ranking_year as t2 on t1.id = t2.ranking_criteria_id where t1.criteria_name = 'award' and t2.year between 2005 and 2015 and t2.score = 0
Question: how many universities scored 0 in awards between 2005 to 2015? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_name. university_ranking_year -> university_id, ranking_criteria_id, year,...
how many universities scored 0 in awards between 2005 to 2015?