select * from user_profile;
select device_id,gender,age,university from user_profile;
select distinct university from user_profile;
select device_id from user_profile limit 2;
select device_id as 'user_infos_example' from user_profile limit 2;
select device_id,university from user_profile where university='北京大学';
select device_id,gender,age,university from user_profile where age>24;
select device_id,gender,age from user_profile where age>=20 and age<=23;
select device_id,gender,age,university from user_profile where university!='复旦大学';
select device_id,gender,age,university from user_profile where age is not null;
select device_id,age from user_profile order by age asc;
select device_id,gpa,age from user_profile order by gpa asc, age asc;
select device_id,gpa,age from user_profile order by gpa desc,age desc;
select device_id,gender,age,university,gpa from user_profile where gpa>3.5 and gender='male';
select device_id,gender,age,university,gpa from user_profile where gpa>3.7 or university='北京大学';
select device_id,gender,age,university,gpa from user_profile where university in ('北京大学','复旦大学','山东大学');
select device_id,gender,age,university,gpa from user_profile where (gpa>3.5 and university='山东大学') or (gpa>3.8 and university='复旦大学');
select device_id,age,university from user_profile where university like '%北京%';