db_id stringclasses 68 values | question stringlengths 24 325 | evidence stringlengths 0 580 | SQL stringlengths 23 728 |
|---|---|---|---|
university | Name the university that had the most students in 2011. | in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name; | 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 |
university | Indicate the university's name with the highest ranking score in Teaching. | university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching' | 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 |
university | What is the percentage of Harvard university's international students in 2011? | Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students | 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' |
university | How many female students were there at Stanford University in 2011? | in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford 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' |
university | In which nation is Harvard University located? | Harvard University refers to university_name = 'Harvard University'; nation refers to country_name | 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' |
university | What is the name of the ranking system for Teaching criteria? | Teaching criteria refers to criteria_name = 'Teaching'; name of the ranking system refers to system_name | 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' |
university | Name the most famous university in Argentina. | in Argentina refers to country_name = 'Argentina'; most famous refers to MAX(SUM(score)) | 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 |
university | In Argentina, how many universities are there? | In Argentina refers to country_name = 'Argentina'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Argentina' |
university | Which universities have more than 100,000 students in 2011? | in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name; | 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 |
university | How many criteria are associated with ranking system Center for World University Rankings? | ranking system Center for World University Rankings refers to system_name = 'Center for World University Rankings'; | 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' |
university | How many students at the university earned a score of 90 in 2011? | in 2011 refers to year 2011; earned a score of 90 refers to score = 90; | 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 |
university | What is the difference in overall student enrollment and international student enrollment at the Harvard university from 2011 to 2012? | Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012 | 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 |
university | How many universities had over 30000 students in 2011? | in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000; | SELECT COUNT(*) FROM university_year WHERE year = 2011 AND num_students > 30000 |
university | What is the country ID of the University of Tokyo? | University of Tokyo refers to university_name = 'University of Tokyo'; | SELECT country_id FROM university WHERE university_name = 'University of Tokyo' |
university | Provide the ranking system ID of the Center for World University Rankings. | the Center for World University Rankings refers to system_name = 'Center for World University Rankings'; | SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings' |
university | What is the ID of the Publications Rank criteria? | Publications Rank criteria refers to criteria_name = 'Publications Rank'; | SELECT id FROM ranking_criteria WHERE criteria_name = 'Publications Rank' |
university | How many universities had above 30% of international students in 2013? | had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013 | SELECT COUNT(*) FROM university_year WHERE pct_international_students > 30 AND year = 2013 |
university | How many universities got less than 50 scores under ranking criteria ID 6 in 2011? | in 2011 refers to year 2011; less than 50 scores refers to score < 50; | SELECT COUNT(*) FROM university_ranking_year WHERE ranking_criteria_id = 6 AND year = 2011 AND score < 50 |
university | Provide the number of students at Yale University in 2016. | number of students refers to num_students; Yale University refers to university_name = 'Yale University'; in 2016 refers to year = 2016 | 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 |
university | List the universities in Denmark. | in Denmark refers to country_name = 'Denmark'; name of university refers to university_name; | SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Denmark' |
university | Provide the number of staff at the University of Auckland in 2015. | University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio) | 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 |
university | Which country has the University of São Paulo? | the University of São Paulo refers to university_name = 'University of São Paulo'; which country refers to country_name; | 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 São Paulo' |
university | How many international students attended Harvard University in 2012? | Harvard University refers to university_name = 'Harvard University'; international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); in 2012 refers to year = 2012 | 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 |
university | Calculate the number of female students at Arizona State University in 2014. | female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); at Arizona State University refers to university_name = 'Arizona State University'; in 2014 refers to year = 2014 | 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 |
university | Provide the universities which got the highest scores. | got the highest scores refers to MAX(SUM(score)) | 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 |
university | List the ranking criteria under the Shanghai Ranking system. | Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name | 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' |
university | In 2011, which university got the lowest score in teaching criteria? | in 2011 refers to year 2011; got the lowest score refers to MIN(score), teaching criteria refers to criteria_name = 'Teaching' | 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 |
university | Provide the ranking system name for the "Quality of Education Rank" criteria. | the "Quality of Education Rank" criteria refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name | 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' |
university | 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. | got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score) | 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 = 2016 AND T2.score > 80 ORDER BY T2.score DESC LIMIT 1 ) AS max 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 = 2016 |
university | Provide the ranking criteria and scores in 2005 that were received by Harvard University. | Harvard University refers to university_name = 'Harvard University'; in 2005 refers to year = 2005; ranking criteria refers to criteria_name; | 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 |
university | Calculate the average score per university under Alumni criteria in 2008. | under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id)) | 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 |
university | Name the university and country which had the highest number of international students in 2015. | highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name; | 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 |
university | How many students were there in university ID 1 in 2011? | in 2011 refers to year 2011; | SELECT num_students FROM university_year WHERE year = 2011 AND university_id = 1 |
university | What is the ID of the university with the most students in 2011? | in 2011 refers to year 2011; with the most students refers to MAX(num_students); ID of the university refers to university_id | SELECT university_id FROM university_year WHERE year = 2011 ORDER BY num_students DESC LIMIT 1 |
university | Please list the IDs of the universities with a student staff ratio of over 15 in 2011. | in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id | SELECT university_id FROM university_year WHERE year = 2011 AND student_staff_ratio > 15 |
university | 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? | in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25; | SELECT COUNT(*) FROM university_year WHERE year = 2011 AND pct_international_students > 25 AND num_students > 20000 |
university | Please list the IDs of the universities with the top 3 female students percentage in 2011. | in 2011 refers to year 2011; top 3 female students percentage refers to MAX(pct_female_students) LIMIT 3; ID of the university refers to university_id | SELECT university_id FROM university_year WHERE year = 2011 ORDER BY pct_female_students DESC LIMIT 3 |
university | In which year did university ID 1 have the most students? | have the most students refers to MAX(num_students) | SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1 |
university | How many students did Harvard University have in 2011? | in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard 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 |
university | What is the name of the university with the most international students in 2011? | in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_id | 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 |
university | Please list the names of all the universities in Australia. | in Australia refers to country_name = 'Australia'; name of university refers to university_name | SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Australia' |
university | Among the universities in Australia, how many of them have more than 15000 students in 2011? | in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia'; | 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 |
university | Which country is Harvard University in? | Harvard University refers to university_name = 'Harvard University'; which country refers to country_name | 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' |
university | What is the name of the university with the highest score in teaching in the year 2011? | with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name; | 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 |
university | Please list the names of the universities with a score in teaching of over 90 in 2011. | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; name of university refers to university_name; | 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 |
university | Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America? | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America'; | 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 |
university | Please list the names of all the ranking criteria of Harvard University in 2011. | in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name | 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 |
university | What are the names of the universities that got 98 in teaching in 2011? | in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name | 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 |
university | Please list the names of all the universities that scored under 60 in teaching in 2011 and are in the United States of America. | scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America'; | 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 < 60 AND T1.criteria_name = 'Teaching' |
university | Among the universities in Australia, how many of them have a student staff ratio of over 15 in 2011? | in 2011 refers to year 2011; in Australia refers to country_name = 'Australia'; student staff ratio of over 15 refers to student_staff_ratio > 15 | 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 |
university | How many female students did Stanford University have in 2011? | in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford 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' |
university | 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? | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(COUNT(country_name = 'United States of America'), COUNT(id)) | 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.country_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 |
university | Give the id of "Center for World University Rankings". | "Center for World University Rankings" refers to system_name = 'Center for World University Rankings'; | SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings' |
university | Which country is University of Veterinary Medicine Vienna located in? Give its country id. | University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna'; | SELECT country_id FROM university WHERE university_name = 'University of Veterinary Medicine Vienna' |
university | What is the id of the criteria "Citations Rank"? | criteria "Citations Rank" refers to criteria_name = 'Citations Rank'; | SELECT id FROM ranking_criteria WHERE criteria_name = 'Citations Rank' |
university | Show the id of University of Orléans. | University of Orléans refers to university_name = 'University of Orléans'; | SELECT id FROM university WHERE university_name = 'University of Orléans' |
university | For the university id 268, show its number of students in 2013. | number of students refers to num_students; in 2013 refers to year = 2013 | SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013 |
university | Show the name of country id 66. | name of country refers to country_name | SELECT country_name FROM country WHERE id = 66 |
university | Which country is McMaster University located in? | McMaster University refers to university_name = 'McMaster University'; which country refers to country_name | 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' |
university | How many Turkish universities are there in the database? | Turkish universities refers to country_name = 'Turkey'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey' |
university | Which university had the most students in 2011? Show its name. | in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name; | 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 |
university | How many students were there in University of Michigan in 2011? | in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan'; | 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 |
university | For Chosun University, what was its score on "Influence Rank" in 2015? | Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on "Influence Rank" refers to criteria_name = 'Influence Rank'; | 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 |
university | What is the percentage of the international students in University of Oslo in 2015? | percentage of the international students refers to pct_international_students; in 2015 refers to year = 2015; in University of Oslo refers to university_name = 'University of Oslo'; | 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 |
university | For the University of Southampton in 2015, on which criteria did it score the best? | University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name | 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 |
university | Which ranking system is criteria "Total Shanghai" in? | criteria "Total Shanghai" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name | 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 = 'Total Shanghai' |
university | How many female students were there in Pierre and Marie Curie University in 2015? | female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); in Pierre and Marie Curie University refers to university_name = 'Pierre and Marie Curie University'; in 2015 refers to year = 2015 | 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 = 2015 AND T2.university_name = 'Pierre and Marie Curie University' |
university | What was the score for University of Florida in "N and S" in 2014? | University of Florida refers to university_name = 'University of Florida'; in 2014 refers to year = 2014; in "N and S" refers to criteria_name = 'N and S' | 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 = 'University of Florida' AND T2.year = 2014 AND T1.criteria_name = 'N and S' |
university | Calculate the number of international students of University of Wisconsin-Madison in 2013. | international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013 | SELECT 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 T1.year = 2013 AND T2.university_name = 'University of Wisconsin-Madison' |
university | Show the name of the university with the lowest number of students in 2015. | lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name; | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students ASC LIMIT 1 |
university | How many times more was the number of students of University of Ottawa than Joseph Fourier University in 2013? | Joseph Fourier University refers to university_name = 'Joseph Fourier University'; University of Ottawa refers to university_name = 'University of Ottawa'; in 2013 refers to year = 2013; how many times more refers to DIVIDE(SUM(num_students where university_name = 'University of Ottawa'), SUM(num_students where university_name = 'Joseph Fourier University')) | SELECT CAST(SUM(CASE WHEN T2.university_name = 'University of Ottawa' THEN T1.num_students ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.university_name = 'Joseph Fourier University' THEN T1.num_students ELSE 0 END) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 |
university | Calculate the average number of criterias among "Times Higher Education World University Ranking","Shanghai Ranking" and "Center for World University Rankings". | average number of criterias refers to DIVIDE(SUM(id), 3); "Times Higher Education World University Ranking", "Shanghai Ranking" and "Center for World University Rankings" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings'); | SELECT (SUM(CASE WHEN T1.system_name = 'Center for World University Rankings' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Shanghai Ranking' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Times Higher Education World University Ranking' THEN 1 ELSE 0 END)) / 3 FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id |
university | Calculate the average number of students of all universities in 2012. | average number of students refers to avg(num_students); in 2012 refers to year = 2012 | SELECT AVG(num_students) FROM university_year WHERE year = 2012 |
university | What is the score of university ID 68 in 2015? | in 2015 refers to year = 2015 | SELECT score FROM university_ranking_year WHERE year = 2015 AND university_id = 68 |
university | Provide the country ID of Cyprus. | Cyprus refers to country_name = 'Cyprus'; | SELECT id FROM country WHERE country_name = 'Cyprus' |
university | What is the ID of university with the largest percentage of international students? | largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id | SELECT university_id FROM university_year ORDER BY pct_international_students DESC LIMIT 1 |
university | Provide the criteria name of the ranking criteria ID 13. | SELECT criteria_name FROM ranking_criteria WHERE id = 13 | |
university | What is the average score of all universities in 2012? | average score refers to avg(score); in 2012 refers to year = 2012 | SELECT AVG(score) FROM university_ranking_year WHERE year = 2012 |
university | In years 2011 to 2013, what is the total number of female students in university ID 40? | total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013 | SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40 |
university | Calculate the average score of university ID 79 between year 2013 to 2015. | average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015 | SELECT AVG(score) FROM university_ranking_year WHERE year BETWEEN 2013 AND 2015 AND university_id = 79 |
university | Give the student staff ratio of university ID 35. | SELECT student_staff_ratio FROM university_year WHERE university_id = 35 | |
university | Provide the score of the most populated university in 2011. | most populated university refers to MAX(num_students); in 2011 refers to year = 2011; | SELECT T2.score FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 |
university | Give the criteria name where Harvard University scored 100. | Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100 | SELECT DISTINCT T3.criteria_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 T1.university_name = 'Harvard University' AND T2.score = 100 |
university | Provide the university name and ID of the university found in Turkey. | found in Turkey refers to country_name = 'Turkey'; | SELECT T1.university_name, T1.id FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey' |
university | What is the total number of ranking criteria under the ranking system called Shanghai Ranking? | ranking system called Shanghai Ranking refers to system_name = 'Shanghai Ranking'; | SELECT COUNT(*) FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Shanghai Ranking' |
university | Give the name and score of the university ID 124. | name of university refers to university_name; | SELECT T2.university_name, T1.score FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.id = 124 |
university | How many female students are there in University of Pennsylvania in 2011? | in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); University of Pennsylvania refers to a university name; | 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 = 'University of Pennsylvania' |
university | List down all universities that scored below 50. | scored below 50 refers to score < 50; all universities refers to university_name; | SELECT DISTINCT T2.university_name FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.score < 50 |
university | How many universities are located in Japan? | located in Japan refers to country_name = 'Japan'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Japan' |
university | Provide the name of the university with the highest number of male students. | highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name | 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 * T1.pct_female_students / 100 - T1.num_students DESC LIMIT 1 |
university | List the countries of universities that scored 70 and below in 2016. | scored 70 and below refers to score < 70; in 2016 refers to year = 2016 | SELECT DISTINCT T3.country_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 T2.score < 70 AND T2.year = 2016 |
university | Calculate number of male students in Emory University in 2011. | in 2011 refers to year 2011; number of male students refers to SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_male_students), 100)); in Emory University refers to university_name = 'Emory University' | SELECT CAST((T1.num_students - (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 T2.university_name = 'Emory University' AND T1.year = 2011 |
university | In which country does Johns Hopkins University located? | Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Johns Hopkins University' |
university | Give the names of universities with number of students ranges from 400 to 1000. | number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name | SELECT DISTINCT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.num_students BETWEEN 400 AND 1000 |
university | In what year does the Brown University score the highest? | Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score) | SELECT T1.year FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Brown University' ORDER BY T1.score DESC LIMIT 1 |
university | Calculate the average score of Emory University from 2011 to 2016. | average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016; | SELECT AVG(T1.score) FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Emory University' AND T1.year BETWEEN 2011 AND 2016 |
university | Give the name of the university with the most number of students in 2015. | most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name; | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students DESC LIMIT 1 |
university | What is the location and number of female students in university ID 23 in 2011? | in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); location refers to country_name | SELECT T3.country_name, 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 INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.year = 2011 AND T1.id = 23 |
university | How many universities scored 40 in teaching criteria? | scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching' | SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T2.score = 40 AND T1.criteria_name = 'Teaching' AND T2.score = 40 |
university | Among the universities in United States of America, what is the percentage of female students in year 2016? | female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students)) | SELECT SUM(CAST(T2.pct_female_students * T2.num_students AS REAL) / 100) * 100 / 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 = 'United States of America' AND T2.year = 2016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.