db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where university_name = 'university of oxford' | Question: which country is the university of oxford located? | 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. univ... | which country is the university of oxford located? |
university | select count(*) 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 t3.university_name = 'yale university' and t2.score >= 10 and t1.criteria_name = 'quality of education rank' | Question: how many times did the yale university achieve a score of no less than 10 in the quality of education 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... | how many times did the yale university achieve a score of no less than 10 in the quality of education rank? |
university | select t2.criteria_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t1.system_name = 'center for world university rankings' | Question: what are the names of the criteria under center for world university rankings? | 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_cr... | what are the names of the criteria under center for world university rankings? |
university | select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.num_students > 50000 and t1.year = 2012 | Question: list the names of all the universities that have no less than 50,000 students in the year 2012. | 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 -> universi... | list the names of all the universities that have no less than 50,000 students in the year 2012. |
university | select distinct t3.country_name from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t2.pct_international_students > 50 and t2.year between 2011 and 2016 | Question: between 2011 to 2016, in which countries can you find the universities where at least 50% of its students are international students? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_nam... | between 2011 to 2016, in which countries can you find the universities where at least 50% of its students are international students? |
university | select count(*) , sum(case when t3.country_name = 'united states of america' then 1 else 0 end) as nums_in_usa from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t2.year = 2016 and t2.num_students * t2.pct_female_students / 100 > 20... | Question: how many universities have no less than 20,000 female students in 2016? identify how many of the said universities are located 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, ... | how many universities have no less than 20,000 female students in 2016? identify how many of the said universities are located in the united states of america. |
university | select distinct t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id order by (cast(t1.num_students * t1.pct_international_students as real) / 100) desc limit 5 | Question: what are the names of the top 5 universities with the highest number of international students? | 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 -> universi... | what are the names of the top 5 universities with the highest number of international students? |
university | select university_id from university_year order by student_staff_ratio desc limit 1 | Question: what is the university id of the university with the largest student staff ratio? | 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... | what is the university id of the university with the largest student staff ratio? |
university | select year from university_year order by num_students asc limit 1 | Question: give the year where a university had the lowest number of students. | 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, ... | give the year where a university had the lowest number of students. |
university | select avg(pct_female_students) from university_year | Question: compute the average percentage of female students. | 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. univ... | compute the average percentage of female students. |
university | select pct_international_students * num_students, num_students from university_year where year = 2013 and university_id = 20 | Question: provide the number of international students and number of students in 2013 in university id 20. | 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 -> univers... | provide the number of international students and number of students in 2013 in university id 20. |
university | select id from university where university_name = 'harvard university' | Question: what is the university id of harvard university? | 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... | what is the university id of harvard university? |
university | select university_id from university_ranking_year where score = 100 and year = 2011 | Question: list the university id of the university that scored 100 in 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, ye... | list the university id of the university that scored 100 in 2011. |
university | select t1.system_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t2.criteria_name = 'quality of education rank' | Question: provide the ranking system of the ranking criteria named quality of education 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 -> university_id, ranki... | provide the ranking system of the ranking criteria named quality of education rank. |
university | select t1.student_staff_ratio from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'harvard university' and t1.year = 2012 | Question: what is the student staff ratio of harvard university in 2012? | 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,... | what is the student staff ratio of harvard university in 2012? |
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t1.id = 112 | Question: give the location of the university id 112. | 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_... | give the location of the university id 112. |
university | select sum(t2.num_students) from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t3.country_name = 'sweden' | Question: calculate the total number of students in universities located in sweden. | 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_criteri... | calculate the total number of students in universities located in sweden. |
university | select t1.ranking_criteria_id from university_ranking_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'brown university' and t1.year = 2014 | Question: what is the ranking criteria id of brown university in 2014? | 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... | what is the ranking criteria id of brown university in 2014? |
university | select t1.university_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'spain' | Question: list the name of universities located in spain. | 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. univers... | list the name of universities located in spain. |
university | select t1.criteria_name from ranking_criteria as t1 inner join university_ranking_year as t2 on t1.id = t2.ranking_criteria_id where t2.university_id = 32 and t2.year = 2015 | Question: what is the criteria name of the university id 32 in 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, sco... | what is the criteria name of the university id 32 in 2015? |
university | select avg(t2.score) from university as t1 inner join university_ranking_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t3.country_name = 'brazil' | Question: compute the average score of the university located in brazil. | 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,... | compute the average score of the university located in brazil. |
university | select t2.country_id from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2014 order by t1.num_students desc limit 1 | Question: in which country does the most populated university in 2014 located ? | 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... | in which country does the most populated university in 2014 located ? |
university | select cast(t1.num_students * t1.pct_international_students as real) / 100, t2.score from university_year as t1 inner join university_ranking_year as t2 on t1.university_id = t2.university_id where t2.year = 2015 and t1.university_id = 100 | Question: give the score and number of international students in university id 100 in 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... | give the score and number of international students in university id 100 in 2015. |
university | select sum(t1.num_students) from university_year as t1 inner join university_ranking_year as t2 on t1.university_id = t2.university_id where t2.score = 98 and t1.year = 2013 | Question: what is the student population of the university that scored 98 in 2013? | 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... | what is the student population of the university that scored 98 in 2013? |
university | select t2.criteria_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t1.system_name = 'center for world university rankings' | Question: list the criteria names under the ranking system called center for world university ranking. | 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_... | list the criteria names under the ranking system called center for world university ranking. |
university | select distinct t3.country_name from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t2.year = 2013 and t2.num_students * 100 > ( select avg(num_students) from university_year ) * 98 | Question: provide the country name of universities with the number of students greater than 98% of the average student population of all universities in 2013. | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id,... | provide the country name of universities with the number of students greater than 98% of the average student population of all universities in 2013. |
university | select sum(cast(t1.num_students * t1.pct_international_students as real) / 100) / count(*) * 100 from university_year as t1 inner join university_ranking_year as t2 on t1.university_id = t2.university_id where t2.score < 80 and t1.year = 2015 | Question: among universities that score below 80 in 2015, what is the percentage of international students? | 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... | among universities that score below 80 in 2015, what is the percentage of international students? |
university | select sum(num_students) from university_year where year = 2011 | Question: how many students attended universities were there in 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, year, sc... | how many students attended universities were there in 2011? |
university | select sum(cast(num_students * pct_female_students as real) / 100) from university_year where year = 2011 | Question: among all universities, how many female students were there in 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,... | among all universities, how many female students were there in 2011? |
university | select max(student_staff_ratio) from university_year order by student_staff_ratio desc limit 1 | Question: what is the student staff ratio at the university with the greatest 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 -> uni... | what is the student staff ratio at the university with the greatest student staff ratio of all time? |
university | select university_id from university_year where year = 2011 order by num_students desc limit 1 | Question: what is the university id with the most students in 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, year, scor... | what is the university id with the most students in 2011? |
university | select count(*) from university_year where year = 2011 and num_students > 50000 and pct_international_students > 10 | Question: how many institutions with over 50,000 students in 2011 had a percentage of oversea students of more than 10%? | 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_y... | how many institutions with over 50,000 students in 2011 had a percentage of oversea students of more than 10%? |
university | select university_id from university_year where year = 2012 order by pct_female_students desc limit 1 | Question: provide the id of the university with the highest percentage of female students in 2012. | 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, ... | provide the id of the university with the highest percentage of female students in 2012. |
university | select t2.university_name from university_ranking_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2012 order by t1.score desc limit 1 | Question: which university had the highest reputation in 2012? | 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... | which university had the highest reputation in 2012? |
university | select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 order by t1.num_students desc limit 1 | Question: name the university that had the most students in 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, year, score.... | name the university that had the most students in 2011. |
university | select t1.university_name from university as t1 inner join university_ranking_year as t2 on t1.id = t2.university_id inner join ranking_criteria as t3 on t3.id = t2.ranking_criteria_id where t3.criteria_name = 'teaching' order by t2.score desc limit 1 | Question: indicate the university's name with the highest ranking score in teaching. | 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_criter... | indicate the university's name with the highest ranking score in teaching. |
university | select t1.pct_international_students from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 and t2.university_name = 'harvard university' | Question: what is the percentage of harvard university's international students in 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_cr... | what is the percentage of harvard university's international students in 2011? |
university | select cast(t1.num_students * t1.pct_female_students as real) / 100 from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 and t2.university_name = 'stanford university' | Question: how many female students were there at stanford university in 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 female students were there at stanford university in 2011? |
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t1.university_name = 'harvard university' | Question: in which nation is harvard university located? | 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. universi... | in which nation is harvard university located? |
university | select t1.system_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t2.criteria_name = 'teaching' | Question: what is the name of the ranking system for teaching 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, ... | what is the name of the ranking system for teaching criteria? |
university | select t1.university_name from university as t1 inner join university_ranking_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t3.country_name = 'argentina' group by t1.university_name order by sum(t2.score) desc limit 1 | Question: name the most famous university in argentina. | 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. universit... | name the most famous university in argentina. |
university | select count(*) from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'argentina' | Question: in argentina, how many 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. universi... | in argentina, how many universities are there? |
university | select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 and t1.num_students > 100000 | Question: which universities have more than 100,000 students in 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, year, sc... | which universities have more than 100,000 students in 2011? |
university | select count(t2.criteria_name) from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t1.system_name = 'center for world university rankings' | Question: how many criteria are associated with ranking system center for world university rankings? | 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... | how many criteria are associated with ranking system center for world university rankings? |
university | select count(*) from university_year as t1 inner join university_ranking_year as t2 on t1.university_id = t2.university_id where t2.score = 90 and t1.year = 2011 | Question: how many students at the university earned a score of 90 in 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, ye... | how many students at the university earned a score of 90 in 2011? |
university | select distinct t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id group by t2.university_name order by sum(t1.num_students * t1.pct_international_students / 100) desc limit 3 | Question: what are the top three universities with the most international students? | 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_criteri... | what are the top three universities with the most international students? |
university | select sum(t1.num_students) - sum(cast(t1.num_students * t1.pct_international_students as real) / 100) from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'harvard university' and t1.year between 2011 and 2012 | Question: what is the difference in overall student enrollment and international student enrollment at the harvard university from 2011 to 2012? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, university_na... | what is the difference in overall student enrollment and international student enrollment at the harvard university from 2011 to 2012? |
university | select count(*) from university_year where year = 2011 and num_students > 30000 | Question: how many universities had over 30000 students in 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, year, score. ... | how many universities had over 30000 students in 2011? |
university | select country_id from university where university_name = 'university of tokyo' | Question: what is the country id of the university of tokyo? | 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. univ... | what is the country id of the university of tokyo? |
university | select id from ranking_system where system_name = 'center for world university rankings' | Question: provide the ranking system id of the center for world university rankings. | 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_criter... | provide the ranking system id of the center for world university rankings. |
university | select id from ranking_criteria where criteria_name = 'publications rank' | Question: what is the id of the publications rank 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. unive... | what is the id of the publications rank criteria? |
university | select count(*) from university_year where pct_international_students > 30 and year = 2013 | Question: how many universities had above 30% of international students in 2013? | 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_i... | how many universities had above 30% of international students in 2013? |
university | select count(*) from university_ranking_year where ranking_criteria_id = 6 and year = 2011 and score < 50 | Question: how many universities got less than 50 scores under ranking criteria id 6 in 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, rankin... | how many universities got less than 50 scores under ranking criteria id 6 in 2011? |
university | select t1.num_students from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'yale university' and t1.year = 2016 | Question: provide the number of students at yale university in 2016. | 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, sco... | provide the number of students at yale university in 2016. |
university | select t1.university_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'denmark' | Question: list the universities in denmark. | 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 -> un... | list the universities in denmark. |
university | select cast(sum(t1.num_students) as real) / sum(t1.student_staff_ratio) from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'university of auckland' and t1.year = 2015 | Question: provide the number of staff at the university of auckland in 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, y... | provide the number of staff at the university of auckland in 2015. |
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t1.university_name = 'university of so paulo' | Question: which country has the university of so paulo? | 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. universit... | which country has the university of so paulo? |
university | select cast(t2.num_students * t2.pct_international_students as real) / 100 from university as t1 inner join university_year as t2 on t1.id = t2.university_id where t1.university_name = 'harvard university' and t2.year = 2012 | Question: how many international students attended harvard university in 2012? | 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 international students attended harvard university in 2012? |
university | select cast(t2.num_students * t2.pct_female_students as real) / 100 from university as t1 inner join university_year as t2 on t1.id = t2.university_id where t1.university_name = 'arizona state university' and t2.year = 2014 | Question: calculate the number of female students at arizona state university in 2014. | 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_crit... | calculate the number of female students at arizona state university in 2014. |
university | select t1.university_name from university as t1 inner join university_ranking_year as t2 on t1.id = t2.university_id group by t1.university_name order by sum(t2.score) desc limit 1 | Question: provide the universities which got the highest scores. | 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. ... | provide the universities which got the highest scores. |
university | select t2.criteria_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t1.system_name = 'shanghai ranking' | Question: list the ranking criteria under the shanghai ranking system. | 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... | list the ranking criteria under the shanghai ranking system. |
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 = 'teaching' and t2.year = 2011 order by t2.score asc limit 1 | Question: in 2011, which university got the lowest score in teaching 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,... | in 2011, which university got the lowest score in teaching criteria? |
university | select t1.system_name from ranking_system as t1 inner join ranking_criteria as t2 on t1.id = t2.ranking_system_id where t2.criteria_name = 'quality of education rank' | Question: provide the ranking system name for the 'quality of education rank' 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_cri... | provide the ranking system name for the 'quality of education rank' criteria. |
university | select cast(sum(case when t2.score > 80 then 1 else 0 end) as real) / count(*), ( 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 = 'international' and t2.year ... | Question: how many percent of universities got a score above 80 under international criteria in 2016? among them, name the university which got the highest score. | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country... | how many percent of universities got a score above 80 under international criteria in 2016? among them, name the university which got the highest score. |
university | select t1.criteria_name, t2.score 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 t3.university_name = 'harvard university' and t2.year = 2005 | Question: provide the ranking criteria and scores in 2005 that were received by harvard university. | 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,... | provide the ranking criteria and scores in 2005 that were received by harvard university. |
university | select avg(t2.score) from ranking_criteria as t1 inner join university_ranking_year as t2 on t1.id = t2.ranking_criteria_id where t1.criteria_name = 'alumni' and t2.year = 2008 | Question: calculate the average score per university under alumni criteria in 2008. | 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_criteri... | calculate the average score per university under alumni criteria in 2008. |
university | select t1.university_name, t3.country_name from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t2.year = 2015 order by t2.num_students desc limit 1 | Question: name the university and country which had the highest number of international students in 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 -> universi... | name the university and country which had the highest number of international students in 2015. |
university | select num_students from university_year where year = 2011 and university_id = 1 | Question: how many students were there in university id 1 in 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, year, score... | how many students were there in university id 1 in 2011? |
university | select university_id from university_year where year = 2011 order by num_students desc limit 1 | Question: what is the id of the university with the most students in 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, yea... | what is the id of the university with the most students in 2011? |
university | select university_id from university_year where year = 2011 and student_staff_ratio > 15 | Question: please list the ids of the universities with a student staff ratio of over 15 in 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, ra... | please list the ids of the universities with a student staff ratio of over 15 in 2011. |
university | select count(*) from university_year where year = 2011 and pct_international_students > 25 and num_students > 20000 | Question: among the universities with over 20000 students in 2011, how many of them have an international students percentage of over 25% in the same year? | Tables: country -> id, country_name. ranking_system -> id, system_name. ranking_criteria -> id, ranking_system_id, criteria_name. university -> id, country_id, un... | among the universities with over 20000 students in 2011, how many of them have an international students percentage of over 25% in the same year? |
university | select university_id from university_year where year = 2011 order by pct_female_students desc limit 3 | Question: please list the ids of the universities with the top 3 female students percentage in 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... | please list the ids of the universities with the top 3 female students percentage in 2011. |
university | select year from university_year where university_id = 1 order by num_students desc limit 1 | Question: in which year did university id 1 have the most students? | 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, scor... | in which year did university id 1 have the most students? |
university | select t1.num_students from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t2.university_name = 'harvard university' and t1.year = 2011 | Question: how many students did harvard university have in 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, year, score. ... | how many students did harvard university have in 2011? |
university | select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 order by t1.pct_international_students desc limit 1 | Question: what is the name of the university with the most international students in 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_... | what is the name of the university with the most international students in 2011? |
university | select t1.university_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'australia' | Question: please list the names of all the universities in australia. | 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, sc... | please list the names of all the universities in australia. |
university | select count(*) from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t3.country_name = 'australia' and t2.year = 2011 and t2.num_students > 15000 | Question: among the universities in australia, how many of them have more than 15000 students in 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_... | among the universities in australia, how many of them have more than 15000 students in 2011? |
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t1.university_name = 'harvard university' | Question: which country is harvard university in? | 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... | which country is harvard university in? |
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 = 'teaching' and t2.year = 2011 order by t2.score desc limit 1 | Question: what is the name of the university with the highest score in teaching 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, r... | what is the name of the university with the highest score in teaching in the year 2011? |
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 = 'teaching' and t2.year = 2011 and t2.score > 90 | Question: please list the names of the universities with a score in teaching of over 90 in 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, ra... | please list the names of the universities with a score in teaching of over 90 in 2011. |
university | select count(*) 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 = 'teaching' and t2.year = 2011 and t2.score > 90 | Question: among the universities with a score in teaching of over 90 in 2011, how many of them are 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. universit... | among the universities with a score in teaching of over 90 in 2011, how many of them are in the united states of america? |
university | select t1.criteria_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 t3.university_name = 'harvard university' and t2.year = 2011 | Question: please list the names of all the ranking criteria of harvard university in 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_... | please list the names of all the ranking criteria of harvard university in 2011. |
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 = 'teaching' and t2.year = 2011 and t2.score = 98 | Question: what are the names of the universities that got 98 in teaching in 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_... | what are the names of the universities that got 98 in teaching in 2011? |
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 t4.country_name = 'united states of america' and t2.year = 2011 and t2.score < ... | Question: please list the names of all the universities that scored under 60 in teaching in 2011 and are 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. uni... | please list the names of all the universities that scored under 60 in teaching in 2011 and are in the united states of america. |
university | select count(*) from university as t1 inner join university_year as t2 on t1.id = t2.university_id inner join country as t3 on t3.id = t1.country_id where t3.country_name = 'australia' and t2.student_staff_ratio > 15 and t2.year = 2011 | Question: among the universities in australia, how many of them have a student staff ratio of over 15 in 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 -> uni... | among the universities in australia, how many of them have a student staff ratio of over 15 in 2011? |
university | select cast(t1.num_students * t1.pct_female_students as real) / 100 from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 and t2.university_name = 'stanford university' | Question: how many female students did stanford university have in 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, year,... | how many female students did stanford university have in 2011? |
university | select cast(sum(case when t4.country_name = 'united states of america' then 1 else 0 end) as real) * 100 / count(*) as per 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... | Question: among the universities with a score in teaching of over 90 in 2011, what is the percentage of those 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... | among the universities with a score in teaching of over 90 in 2011, what is the percentage of those in the united states of america? |
university | select id from ranking_system where system_name = 'center for world university rankings' | Question: give the id of 'center for world university rankings'. | 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. ... | give the id of 'center for world university rankings'. |
university | select country_id from university where university_name = 'university of veterinary medicine vienna' | Question: which country is university of veterinary medicine vienna located in? give its country id. | 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... | which country is university of veterinary medicine vienna located in? give its country id. |
university | select id from ranking_criteria where criteria_name = 'citations rank' | Question: what is the id of the criteria 'citations 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 -> university_id, ranking_criteria_id, year, score. univer... | what is the id of the criteria 'citations rank'? |
university | select id from university where university_name = 'university of orlans' | Question: show the id of university of orlans. | 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 ->... | show the id of university of orlans. |
university | select num_students from university_year where university_id = 268 and year = 2013 | Question: for the university id 268, show its number of students in 2013. | 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... | for the university id 268, show its number of students in 2013. |
university | select country_name from country where id = 66 | Question: show the name of country id 66. | 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 -> univ... | show the name of country id 66. |
university | select t2.country_name from university as t1 inner join country as t2 on t1.country_id = t2.id where t1.university_name = 'mcmaster university' | Question: which country is mcmaster university located in? | 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... | which country is mcmaster university located in? |
university | select count(*) from university as t1 inner join country as t2 on t1.country_id = t2.id where t2.country_name = 'turkey' | Question: how many turkish universities are there in the database? | 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... | how many turkish universities are there in the database? |
university | select t2.university_name from university_year as t1 inner join university as t2 on t1.university_id = t2.id where t1.year = 2011 order by t1.num_students desc limit 1 | Question: which university had the most students in 2011? show its name. | 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,... | which university had the most students in 2011? show its name. |
university | select count(*) from university as t1 inner join university_year as t2 on t1.id = t2.university_id where t1.university_name = 'university of michigan' and t2.year = 2011 | Question: how many students were there in university of michigan in 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, year... | how many students were there in university of michigan in 2011? |
university | select t2.score 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 t3.university_name = 'chosun university' and t1.criteria_name = 'influence rank' and t2.year = 2015 | Question: for chosun university, what was its score on 'influence rank' in 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_i... | for chosun university, what was its score on 'influence rank' in 2015? |
university | select t2.pct_international_students from university as t1 inner join university_year as t2 on t1.id = t2.university_id where t1.university_name = 'university of oslo' and t2.year = 2015 | Question: what is the percentage of the international students in university of oslo in 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, ranki... | what is the percentage of the international students in university of oslo in 2015? |
university | select t1.criteria_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 t3.university_name = 'university of southampton' and t2.year = 2015 order by t2.score desc limit 1 | Question: for the university of southampton in 2015, on which criteria did it score the best? | 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, ranki... | for the university of southampton in 2015, on which criteria did it score the best? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.