QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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

    【Evidence】
    number of students refers to num_students; in 2013 refers to year = 2013

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    Show the name of country id 66. name of country refers to country_name

    【Evidence】
    name of country refers to country_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT country_name FROM country WHERE id = 66
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    Which country is McMaster University located in? McMaster University refers to university_name = 'McMaster University'; which country refers to country_name

    【Evidence】
    McMaster University refers to university_name = 'McMaster University'; which country refers to country_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    How many Turkish universities are there in the database? Turkish universities refers to country_name = 'Turkey';

    【Evidence】
    Turkish universities refers to country_name = 'Turkey';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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;

    【Evidence】
    in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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';

    【Evidence】
    in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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';

    【Evidence】
    Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on "Influence Rank" refers to criteria_name = 'Influence Rank';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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';

    【Evidence】
    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';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    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

    【Evidence】
    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

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 university
【Schema】
# Table: university_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(num_students:INTEGER, Examples: [20152, 2243, 11074]),
(student_staff_ratio:REAL, Examples: [8.9, 6.9, 9.0]),
(pct_international_students:INTEGER, Examples: [25, 27, 33]),
(pct_female_students:INTEGER, Examples: [33, 37, 42])
]
# Table: country
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_name:TEXT, Examples: [Argentina, Australia, Austria])
]
# Table: university
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(country_id:INTEGER, Examples: [73, 72, 33]),
(university_name:TEXT, Examples: [Harvard University])
]
# Table: university_ranking_year
[
(university_id:INTEGER, Examples: [1, 5, 2]),
(ranking_criteria_id:INTEGER, Examples: [1, 2, 3]),
(year:INTEGER, Examples: [2011, 2012, 2013]),
(score:INTEGER, Examples: [100, 98, 91])
]
# Table: ranking_system
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(system_name:TEXT, Examples: [Times Higher Education World University Ranking])
]
# Table: ranking_criteria
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(ranking_system_id:INTEGER, Examples: [1, 2, 3]),
(criteria_name:TEXT, Examples: [Teaching, International, Research])
]
【Foreign keys】
university_year.university_id=university.id
university.country_id=country.id
university_ranking_year.ranking_criteria_id=ranking_criteria.id
university_ranking_year.university_id=university.id
ranking_criteria.ranking_system_id=ranking_system.id

    【Question】
    Which ranking system is criteria "Total Shanghai" in? criteria "Total Shanghai" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name

    【Evidence】
    criteria "Total Shanghai" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'