db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
talkingdata | select avg(age) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' | Question: what is the average age of all the vivo device users? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_re... | what is the average age of all the vivo device users? |
talkingdata | select count(device_id) from gender_age where `group` = 'f27-28' and gender = 'f' | Question: how many female users belong to the age group of 27 to 28? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. even... | how many female users belong to the age group of 27 to 28? |
talkingdata | select max(age) from gender_age where gender = 'm' | Question: what is the age of the oldest male user of the app? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rele... | what is the age of the oldest male user of the app? |
talkingdata | select count(app_id) from app_events where is_installed = 1 and is_active = 0 | Question: how many users installed the app but are not active? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rel... | how many users installed the app but are not active? |
talkingdata | select min(age) from gender_age where gender = 'f' | Question: what is the age of the youngest female user of the app? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_... | what is the age of the youngest female user of the app? |
talkingdata | select count(device_id) from phone_brand_device_model2 where phone_brand = 'vivo' | Question: how many models does the vivo phone brand released? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rele... | how many models does the vivo phone brand released? |
talkingdata | select device_model from phone_brand_device_model2 where phone_brand = 'oppo' limit 15 | Question: list at least 15 phone models released under the oppo brand. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. ev... | list at least 15 phone models released under the oppo brand. |
talkingdata | select t1.device_model from phone_brand_device_model2 as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t2.`group` = 'm39+' and t2.gender = 'm' limit 10 | Question: list at least 10 device models that male users over the age of 39 usually use. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longi... | list at least 10 device models that male users over the age of 39 usually use. |
talkingdata | select t1.device_model from phone_brand_device_model2 as t1 inner join events as t2 on t1.device_id = t2.event_id inner join app_events as t3 on t2.event_id = t3.event_id where t3.is_active = 1 and t3.is_installed = 1 limit 5 | Question: list 5 device models that users use to install the app and are active in using the app. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timesta... | list 5 device models that users use to install the app and are active in using the app. |
talkingdata | select count(t1.app_id) from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id where t2.category = 'financial information' | Question: how many users belong to 'financial information' category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. even... | how many users belong to 'financial information' category? |
talkingdata | select count(t1.app_id) from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id where t2.category = 'game-art style' | Question: how many users belong to 'game-art style' category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rele... | how many users belong to 'game-art style' category? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'oppo' and t1.gender = 'm' | Question: provide the total number of the male users that use oppo as their phone brand. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longi... | provide the total number of the male users that use oppo as their phone brand. |
talkingdata | select device_model from phone_brand_device_model2 where device_id in ( select device_id from gender_age where age = ( select min(age) from gender_age ) ) | Question: what is the brand of the youngest user's device? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevan... | what is the brand of the youngest user's device? |
talkingdata | select t1.category from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id order by t2.label_id limit 3 | Question: list at least 3 categories with the lowest number of users. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. eve... | list at least 3 categories with the lowest number of users. |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'galaxy ace plus' and t1.gender = 'm' | Question: how many male users use the galaxy ace plus model? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relev... | how many male users use the galaxy ace plus model? |
talkingdata | select t.`group` from ( select t1.`group`, count(t1.`group`) as num from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'oppo' group by t1.`group` ) as t order by t.num desc limit 1 | Question: what is the age group of most oppo users? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> ev... | what is the age group of most oppo users? |
talkingdata | select t.device_model from ( select t2.device_model, count(t2.device_model) as num from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.gender = 'f' group by t2.device_model ) as t order by t.num desc limit 5 | Question: list at least 5 device models that are commonly used by female users. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lat... | list at least 5 device models that are commonly used by female users. |
talkingdata | select sum(iif(t1.category = '80s japanese comic', 1, 0)) / count(t1.label_id) as j8 , sum(iif(t1.category = '90s japanese comic', 1, 0)) / count(t1.label_id) as j9 from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id | Question: calculate the ratio in percentage between the average number of app users belonging to '80s japanese comic' and '90s japanese comic'. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, la... | calculate the ratio in percentage between the average number of app users belonging to '80s japanese comic' and '90s japanese comic'. |
talkingdata | select sum(iif(t1.phone_brand = 'oppo', 1, 0)) / sum(iif(t1.device_id = 'r815t', 1, 0)) as num from phone_brand_device_model2 as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t2.gender = 'f' | Question: among the female users that uses oppo as their phone brand, what is the percentage of them of the user that uses r815t model to install the app? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels ->... | among the female users that uses oppo as their phone brand, what is the percentage of them of the user that uses r815t model to install the app? |
talkingdata | select phone_brand from phone_brand_device_model2 where device_model = '' | Question: what is the phone brand of the device model ''? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant... | what is the phone brand of the device model ''? |
talkingdata | select count(device_id) from phone_brand_device_model2 where device_model = '' | Question: give the number of device models for '' phone brand. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rel... | give the number of device models for '' phone brand. |
talkingdata | select `group` from gender_age where age = '24' | Question: which group does age 24 belong to? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> event_id,... | which group does age 24 belong to? |
talkingdata | select timestamp from events where event_id = '887711' | Question: give the time stamp for event no.887711. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> eve... | give the time stamp for event no.887711. |
talkingdata | select count(event_id) from events where substr(`timestamp`, 1, 10) = '2016-05-06' | Question: provide the number of events that happened on 2016/5/6. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_... | provide the number of events that happened on 2016/5/6. |
talkingdata | select t1.device_model from phone_brand_device_model2 as t1 inner join events as t2 on t1.device_id = t2.event_id where t2.longitude = '113' and t2.latitude = '28' and t2.timestamp = '2016-05-07 23:55:16' | Question: for the event which happened at 23:55:16 on 2016/5/7, in the location coordinate(113, 28), on what device did it happen? give the name of the device model. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. ap... | for the event which happened at 23:55:16 on 2016/5/7, in the location coordinate(113, 28), on what device did it happen? give the name of the device model. |
talkingdata | select count(t2.app_id) from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t1.category = 'game-fishing' | Question: give the number of 'game-fishing' apps. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> even... | give the number of 'game-fishing' apps. |
talkingdata | select count(t2.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.`group` = 'f29-32' and t2.device_model = 'note 2' | Question: state the number of the 'note 2' users who are in the 'f29-32' group. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lat... | state the number of the 'note 2' users who are in the 'f29-32' group. |
talkingdata | select count(t3.device_id) from app_events as t1 inner join events as t2 on t1.event_id = t2.event_id inner join gender_age as t3 on t2.device_id = t3.device_id where substr(`timestamp`, 1, 10) = '2016-05-02' and t1.is_active = 1 and t3.age = '30' | Question: give the number of 30-year-old users who were active in the events on 2016/5/2. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, long... | give the number of 30-year-old users who were active in the events on 2016/5/2. |
talkingdata | select count(t1.event_id) from app_events as t1 inner join events as t2 on t1.event_id = t2.event_id where substr(t2.`timestamp`, 1, 10) = '2016-05-06' and t1.is_installed = '1' | Question: for the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, ti... | for the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved? |
talkingdata | select count(t2.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.gender = 'f' and t2.phone_brand = 'e' | Question: give the number of female users of 'e' brand devices. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_re... | give the number of female users of 'e' brand devices. |
talkingdata | select count(t1.device_id) from phone_brand_device_model2 as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t1.device_model = 'galaxy s5' and t2.gender = 'm' | Question: how many male users of the 'galaxy s5' device model? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rel... | how many male users of the 'galaxy s5' device model? |
talkingdata | select count(t1.app_id) from app_events as t1 inner join events as t2 on t1.event_id = t2.event_id inner join gender_age as t3 on t2.event_id = t3.device_id where substr(t2.`timestamp`, 1, 10) = '2016-05-07' and t1.is_active = '1' and t3.`group` = 'f29-32' | Question: how many users from the group 'f29-32' who were active in the events on 2016/5/7? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, lo... | how many users from the group 'f29-32' who were active in the events on 2016/5/7? |
talkingdata | select t1.category from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t2.app_id = '894384172610331000' | Question: which category does the app id no.894384172610331000 belong to? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude.... | which category does the app id no.894384172610331000 belong to? |
talkingdata | select count(t1.app_id) from app_events as t1 inner join events as t2 on t1.event_id = t2.event_id where t2.timestamp = '2016-05-06 14:09:49' and t1.is_active = '1' and t2.longitude = '116' and t2.latitude = '40' | Question: for the event which happened at 14:09:49 on 2016/5/6, in the location coordinate(116, 40), how many apps were active? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -... | for the event which happened at 14:09:49 on 2016/5/6, in the location coordinate(116, 40), how many apps were active? |
talkingdata | select sum(iif(timestamp = '2016-05-02 7:50:28', 1, 0)) / sum(iif(timestamp = '2016-05-02 7:41:03', 1, 0)) as num from events as t1 inner join app_events as t2 on t1.event_id = t2.event_id where t2.is_active = '1' | Question: how many times is the number of active apps in the event that happened at 7:50:28 on 2016/5/2 than in the event that happened at 7:41:03 on 2016/5/2? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labe... | how many times is the number of active apps in the event that happened at 7:50:28 on 2016/5/2 than in the event that happened at 7:41:03 on 2016/5/2? |
talkingdata | select count(device_id) from phone_brand_device_model2 where phone_brand = 'vivo' | Question: how many devices are of the brand vivo? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> even... | how many devices are of the brand vivo? |
talkingdata | select sum(iif(phone_brand = 'vivo', 1, 0)) - sum(iif(phone_brand = 'lg', 1, 0)) as num from phone_brand_device_model2 | Question: how many more devices are there of the brand vivo than of the brand lg? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, l... | how many more devices are there of the brand vivo than of the brand lg? |
talkingdata | select device_id from gender_age where age = ( select min(age) from gender_age ) | Question: what is the id of the device used by the youngest user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_... | what is the id of the device used by the youngest user? |
talkingdata | select count(device_id) from gender_age where age > 30 and gender = 'f' | Question: among the female users of the devices, how many of them are over 30? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | among the female users of the devices, how many of them are over 30? |
talkingdata | select gender from gender_age where age = ( select max(age) from gender_age ) | Question: is the oldest device user male or female? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> ev... | is the oldest device user male or female? |
talkingdata | select min(age) from gender_age where gender = 'f' | Question: what is the age of the youngest female device user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rele... | what is the age of the youngest female device user? |
talkingdata | select t1.age from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' order by t1.age limit 1 | Question: among all the users who use a vivo device, what is the age of the youngest user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, lon... | among all the users who use a vivo device, what is the age of the youngest user? |
talkingdata | select t2.app_id from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t1.category = 'securities' | Question: please list the app ids of all the users in the securities category. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | please list the app ids of all the users in the securities category. |
talkingdata | select t1.gender from gender_age as t1 inner join events as t2 on t1.device_id = t2.device_id where t2.timestamp = '2016-05-01 00:55:25' | Question: for the device with an event occurring on 2016/5/1 at 0:55:25, what is the gender of its user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, ... | for the device with an event occurring on 2016/5/1 at 0:55:25, what is the gender of its user? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join events as t2 on t1.device_id = t2.device_id where strftime('%y', t2.timestamp) = '2016' and t1.`group` = 'm23-26' | Question: among the devices with an event occurring in 2016, how many of them are owned by a user in the m23-26 user group? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> ev... | among the devices with an event occurring in 2016, how many of them are owned by a user in the m23-26 user group? |
talkingdata | select t.phone_brand from ( select t2.phone_brand, count(t1.device_id) as num from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.`group` = 'm23-26' group by t2.phone_brand ) as t order by t.num desc limit 1 | Question: what is the brand of the device used by the most users in the m23-26 user group? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, lon... | what is the brand of the device used by the most users in the m23-26 user group? |
talkingdata | select t1.longitude, t1.latitude from events as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'galaxy note 2' | Question: please list the location coordinates of all the galaxy note 2 devices when an event happened. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, t... | please list the location coordinates of all the galaxy note 2 devices when an event happened. |
talkingdata | select t1.device_model from phone_brand_device_model2 as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t2.gender = 'f' | Question: please list all the models of the devices used by a female user. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude... | please list all the models of the devices used by a female user. |
talkingdata | select t1.category from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t2.app_id = 7324884708820020000 | Question: what are the categories that app user id7324884708820020000 belongs to? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, l... | what are the categories that app user id7324884708820020000 belongs to? |
talkingdata | select count(t2.app_id) from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id inner join app_events as t3 on t2.app_id = t3.app_id where t3.is_active = 0 and t1.category = 'property industry 1.0' and t3.event_id = 2 | Question: among the app users who were not active when event no.2 happened, how many of them belong to the category property industry 1.0? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_i... | among the app users who were not active when event no.2 happened, how many of them belong to the category property industry 1.0? |
talkingdata | select count(*) from ( select count(distinct t1.category) as result from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id inner join app_events as t3 on t2.app_id = t3.app_id where t3.event_id = 2 and t3.is_active = 0 group by t1.category ) t | Question: how many categories in total do the app users who were not active when event no.2 happened belong to? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, devi... | how many categories in total do the app users who were not active when event no.2 happened belong to? |
talkingdata | select t.device_model from ( select t2.device_model, count(t2.device_model) as num from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.age > 30 and t1.gender = 'f' group by t2.device_model ) as t order by t.num desc limit 1 | Question: what is the device model used by the most female users over 30? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude.... | what is the device model used by the most female users over 30? |
talkingdata | select t2.device_model from events as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.longitude = 121 and t1.latitude = 31 | Question: please list the models of all the devices with an event under the location coordinates (121, 31). | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_i... | please list the models of all the devices with an event under the location coordinates (121, 31). |
talkingdata | select t.category from ( select t2.category, count(t1.app_id) as num from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id group by t2.category ) as t order by t.num desc limit 3 | Question: what are the top 3 categories with the most app users? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_r... | what are the top 3 categories with the most app users? |
talkingdata | select t2.event_id from gender_age as t1 inner join events as t2 on t1.device_id = t2.device_id order by t1.age desc limit 1 | Question: please list the event ids of the events that have happened on the device of the oldest user. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, ti... | please list the event ids of the events that have happened on the device of the oldest user. |
talkingdata | select count(t1.event_id) from events as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t2.gender = 'f' group by t1.event_id, t2.age order by t2.age limit 1 | Question: how many events have happened on the device of the youngest female user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, ... | how many events have happened on the device of the youngest female user? |
talkingdata | select count(t1.device_id) from events as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t1.timestamp = '2016-05-01' and t2.gender = 'm' | Question: among the devices on which an event happened on 2016/5/1, how many of them are used by a male user? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device... | among the devices on which an event happened on 2016/5/1, how many of them are used by a male user? |
talkingdata | select iif(sum(iif(t2.category = 'securities', 1, 0)) - sum(iif(t2.category = 'finance', 1, 0)) > 0, 'securities', 'finance') as diff from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id | Question: which category has more app users, securities or finance? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. event... | which category has more app users, securities or finance? |
talkingdata | select t2.device_model from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.`group` = 'm23-26' | Question: please list the device models of all the devices used by a user in the m23-26 user group. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, times... | please list the device models of all the devices used by a user in the m23-26 user group. |
talkingdata | select avg(t1.age) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' and t1.gender = 'f' | Question: what is the average age of the female users who uses a vivo device? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latit... | what is the average age of the female users who uses a vivo device? |
talkingdata | select sum(iif(t1.gender = 'm', 1, 0)) / sum(iif(t1.gender = 'f', 1, 0)) as per from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' | Question: what is the ratio of female users to male users who uses a vivo device? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, l... | what is the ratio of female users to male users who uses a vivo device? |
talkingdata | select sum(iif(t2.category = 'securities', 1, 0)) / sum(iif(t2.category = 'finance', 1, 0)) as per from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id | Question: what is the ratio of the number of app users that belong to the securities category to the number of app users that belong to the finance category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels... | what is the ratio of the number of app users that belong to the securities category to the number of app users that belong to the finance category? |
talkingdata | select label_id from label_categories where category = 'third-party card management' | Question: what is the label id of 'third-party card management' category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude.... | what is the label id of 'third-party card management' category? |
talkingdata | select sum(iif(is_active = 1, 1, 0)) / sum(iif(is_active = 0, 1, 0)) as per from app_events where event_id = 58 | Question: what is the ratio of active and inactive app users of the event id '58'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, ... | what is the ratio of active and inactive app users of the event id '58'? |
talkingdata | select count(event_id) from events where device_id = 3915082290673130000 | Question: how many events did the device id '3915082290673130000' join? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. e... | how many events did the device id '3915082290673130000' join? |
talkingdata | select sum(iif(gender = 'm', 1, 0)) / count(device_id) as per from gender_age | Question: calculate the percentage of male users among all device users. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. ... | calculate the percentage of male users among all device users. |
talkingdata | select count(event_id) from events where longitude = -156 | Question: how many events were participated by the users at longitude of '-156'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, la... | how many events were participated by the users at longitude of '-156'? |
talkingdata | select count(app_id) from app_labels where label_id = 48 | Question: how many app users belong to label id of '48'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant ... | how many app users belong to label id of '48'? |
talkingdata | select count(label_id) from label_categories where category like 'game%' | Question: how many category names start with the word 'game'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_rele... | how many category names start with the word 'game'? |
talkingdata | select count(event_id) from events where longitude = 80 and latitude = 37 | Question: provide the number of events participated by the device users at coordinates of (80,37). | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timest... | provide the number of events participated by the device users at coordinates of (80,37). |
talkingdata | select t1.label_id, t2.category from app_labels as t1 inner join label_categories as t2 on t1.label_id = t2.label_id where t1.app_id = 5758400314709850000 | Question: list down the labels' ids and categories of the app id '5758400314709850000'. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longit... | list down the labels' ids and categories of the app id '5758400314709850000'. |
talkingdata | select t2.app_id from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t1.category = 'game-rowing' | Question: list down the app ids under the category of game-rowing . | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. event... | list down the app ids under the category of game-rowing . |
talkingdata | select t1.label_id, t2.app_id from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t1.category = 'chinese classical mythology' | Question: what are the label ids and app ids of the chinese classical mythology category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, long... | what are the label ids and app ids of the chinese classical mythology category? |
talkingdata | select count(t1.app_id), t2.longitude, t2.latitude from app_events as t1 inner join events as t2 on t1.event_id = t2.event_id where t1.event_id = 79641 group by t2.longitude, t2.latitude | Question: describe the number of app ids and location of the event id '79641'. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | describe the number of app ids and location of the event id '79641'. |
talkingdata | select t1.longitude, t1.latitude, t1.timestamp from events as t1 inner join app_events as t2 on t1.event_id = t2.event_id where t2.app_id = 8715964299802120000 | Question: provide the locations and times of the events of app id '8715964299802120000'. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longi... | provide the locations and times of the events of app id '8715964299802120000'. |
talkingdata | select count(t1.device_id) from events as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'oppo' and strftime('%y-%m-%d', t1.`timestamp`) = '2016-05-01' | Question: how many oppo users participated in events which were held around 12 am on 1st may,2016? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timest... | how many oppo users participated in events which were held around 12 am on 1st may,2016? |
talkingdata | select sum(iif(t1.gender = 'm', 1, 0)) / sum(iif(t1.gender = 'f', 1, 0)) as per from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' and t2.device_model = 'x5pro' | Question: what is the ratio of male and female users of vivo x5pro model? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude.... | what is the ratio of male and female users of vivo x5pro model? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.gender = 'f' and t2.device_model = 'z1' and t1.`group` = 'f23-' and t2.phone_brand = 'zuk' | Question: how many females use zuk z1 phones in the age group under 23? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. e... | how many females use zuk z1 phones in the age group under 23? |
talkingdata | select t2.phone_brand, t2.device_model from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.age < 10 | Question: list the phone brands and models of the users under 10 years of age. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | list the phone brands and models of the users under 10 years of age. |
talkingdata | select sum(iif(t1.gender = 'f' and t1.age > 80, 1, 0)) / count(t1.device_id) as per from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'htc' | Question: among the htc users, calculate the percentage of female users who are over 80. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longi... | among the htc users, calculate the percentage of female users who are over 80. |
talkingdata | select t2.phone_brand, t2.device_model from events as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.event_id = 6701 | Question: which phone brand and model was used for event id '6701'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. event... | which phone brand and model was used for event id '6701'? |
talkingdata | select t.age, t.gender from ( select t2.age, t2.gender, count(t1.device_id) as num from events as t1 inner join gender_age as t2 on t1.device_id = t2.device_id where t1.device_id between -9215352913819630000 and -9222956879900150000 group by t2.age, t2.gender ) as t order by t.num desc limit 1 | Question: between device id of '-9215352913819630000' and '-9222956879900150000', mention the age and gender of device user who participated more events. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> ... | between device id of '-9215352913819630000' and '-9222956879900150000', mention the age and gender of device user who participated more events. |
talkingdata | select timestamp from events where event_id = 12 | Question: list out the time of the event id 12. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> event_... | list out the time of the event id 12. |
talkingdata | select count(app_id) from app_events where is_active = 1 | Question: how many active users are there in the event? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -... | how many active users are there in the event? |
talkingdata | select count(device_id) from phone_brand_device_model2 where device_model = 'a51' | Question: how many devices belong to model 'a51'? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant -> even... | how many devices belong to model 'a51'? |
talkingdata | select gender from gender_age where device_id = -9222956879900150000 | Question: state the gender of users who use the device '-9222956879900150000'. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | state the gender of users who use the device '-9222956879900150000'. |
talkingdata | select count(label_id) from label_categories where category = 'game-card' | Question: how many labels belong to the game-card category? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_releva... | how many labels belong to the game-card category? |
talkingdata | select t1.`group` from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'vivo' | Question: what is the age group of users who use phone brand of vivo? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. eve... | what is the age group of users who use phone brand of vivo? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'galaxy note 2' and t1.age < 30 | Question: how many users who are under 30 years old use device model of galaxy note 2? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitu... | how many users who are under 30 years old use device model of galaxy note 2? |
talkingdata | select sum(iif(t1.age < 50, 1, 0)) / count(t1.device_id) as per from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'oppo' | Question: among the users who use oppo, calculate the percentage of those who are under 50 years old. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, tim... | among the users who use oppo, calculate the percentage of those who are under 50 years old. |
talkingdata | select sum(t1.age) / count(t1.device_id) as avg from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'r7' | Question: what is the average age of the users who use model device of r7? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude... | what is the average age of the users who use model device of r7? |
talkingdata | select t1.category from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t2.app_id = 5902120154267990000 | Question: what is the category of the label that represented the behavior category of app id 5902120154267990000? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, de... | what is the category of the label that represented the behavior category of app id 5902120154267990000? |
talkingdata | select t1.`group` from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.phone_brand = 'lg' | Question: mention the group of age of users who use phone brand of lg. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. ev... | mention the group of age of users who use phone brand of lg. |
talkingdata | select t1.category from label_categories as t1 inner join app_labels as t2 on t1.label_id = t2.label_id where t2.app_id = 4955831798976240000 | Question: state the category of the label that represented the behavior category of app id 4955831798976240000. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, devi... | state the category of the label that represented the behavior category of app id 4955831798976240000. |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.gender = 'f' and t2.device_model = 'mi 3' | Question: how many female users use device model of mi 3? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events_relevant... | how many female users use device model of mi 3? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'desire 820' and t1.gender = 'm' | Question: among the male users, how many users use device model of desire 820? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, lati... | among the male users, how many users use device model of desire 820? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t2.device_model = 'elife e7 mini' and t1.age > 20 | Question: among the users who are above 20, how many users use device model of elife e7 mini? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, ... | among the users who are above 20, how many users use device model of elife e7 mini? |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.age between 20 and 50 and t2.device_model = 'galaxy premier' | Question: state the number of users who are under 50 and above 20 use device model of galaxy premier. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, tim... | state the number of users who are under 50 and above 20 use device model of galaxy premier. |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.gender = 'm' and t2.phone_brand = 'htc' | Question: give the number of male users who use phone branded htc. | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude. events... | give the number of male users who use phone branded htc. |
talkingdata | select count(t1.device_id) from gender_age as t1 inner join phone_brand_device_model2 as t2 on t1.device_id = t2.device_id where t1.age between 20 and 60 and t2.phone_brand = 'tcl' | Question: how many users who are between 20 and 60 use phone brand of tcl? | Tables: app_all -> app_id. app_events -> event_id, app_id, is_installed, is_active. app_events_relevant -> event_id, app_id, is_installed, is_active. app_labels -> app_id, label_id. events -> event_id, device_id, timestamp, longitude, latitude... | how many users who are between 20 and 60 use phone brand of tcl? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.