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】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    How many female users reshared their tweets? female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'

    【Evidence】
    female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'

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

SQL: SELECT COUNT(T1.UserID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Female' AND T1.IsReshare = 'TRUE'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Which country's tweets collected the most likes? country collected the most likes refers to Country where Max(Sum(Likes))

    【Evidence】
    country collected the most likes refers to Country where Max(Sum(Likes))

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

SQL: SELECT T.Country FROM ( SELECT T2.Country, SUM(T1.Likes) AS num FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID GROUP BY T2.Country ) T ORDER BY T.num DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Tweet with ID tw-682723090279841798 was posted from which country? "tw-682723090279841798" is the TweetID

    【Evidence】
    "tw-682723090279841798" is the TweetID

    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 FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.TweetID = 'tw-682723090279841798'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    List down all the tweet text posted from Australia. "Australia" is the Country

    【Evidence】
    "Australia" is the Country

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

SQL: SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Australia'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Write down the tweet text posted from Rawang, Selangor, Malaysia. "Rawang" is the City; "Selangor" is the State; "Malaysia" is the Country

    【Evidence】
    "Rawang" is the City; "Selangor" is the State; "Malaysia" is the Country

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

SQL: SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.City = 'Rawang' AND T2.State = 'Selangor' AND T2.Country = 'Malaysia'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Tweets that were posted from Brazil are in what languague? "Brazil" is the Country; language refers to Lang

    【Evidence】
    "Brazil" is the Country; language refers to Lang

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

SQL: SELECT DISTINCT T1.Lang FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Brazil'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    State the country where the most positive sentiment tweets were posted. country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))

    【Evidence】
    country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))

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

SQL: SELECT T.Country FROM ( SELECT T2.Country, SUM(T1.Sentiment) AS num FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.Sentiment > 0 GROUP BY T2.Country ) T ORDER BY T.num DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Calculate the total likes collected by tweets in `ru` posted by male users. 'ru' refers to Lang = 'ru'; male user refers to Gender = 'Male'

    【Evidence】
    'ru' refers to Lang = 'ru'; male user refers to Gender = 'Male'

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

SQL: SELECT SUM(T1.Likes) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Lang = 'ru' AND T2.Gender = 'Male'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Calculate the average number of male users who posted tweets in a week. male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))

    【Evidence】
    male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))

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

SQL: SELECT COUNT(DISTINCT T1.TweetID) / COUNT(DISTINCT T1.UserID) / 7 AS avg FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' AND T1.Day BETWEEN 1 AND 31
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    How many tweets have a klout of over 50? klout of over 50 refers to Klout > 50

    【Evidence】
    klout of over 50 refers to Klout > 50

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

SQL: SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Klout > 50
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Please list the texts of all the tweets that are not in English. not in English refers to Lang <> en'

    【Evidence】
    not in English refers to Lang <> en'

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

SQL: SELECT text FROM twitter WHERE Lang != 'en'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Please give the user ID of the user who has posted the most tweets. users with the most tweet refers to UserID where Max(Count (TweetID))

    【Evidence】
    users with the most tweet refers to UserID where Max(Count (TweetID))

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

SQL: SELECT UserID FROM twitter GROUP BY UserID ORDER BY COUNT(DISTINCT TweetID) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 social_media
【Schema】
# Table: user
[
(UserID:TEXT, Primary Key, Examples: [nknow531394, tw-10000632, tw-100012605]),
(Gender:TEXT, Examples: [Unknown, Male, Unisex])
]
# Table: twitter
[
(TweetID:TEXT, Primary Key, Examples: [tw-682712873332805633]),
(Weekday:TEXT, Examples: [Thursday, Friday, Saturday]),
(Hour:INTEGER, Examples: [17, 18, 19]),
(Day:INTEGER, Examples: [31, 1, 2]),
(Lang:TEXT, Examples: [en, _u, es]),
(IsReshare:TEXT, Examples: [FALSE, TRUE]),
(Reach:INTEGER, Examples: [44, 1810, 282]),
(RetweetCount:INTEGER, Examples: [0, 5, 4]),
(Likes:INTEGER, Examples: [0, 131, 40]),
(Klout:INTEGER, Examples: [35, 53, 47]),
(Sentiment:REAL, Examples: [0.0, 2.0, -1.0]),
(text:TEXT),
(LocationID:INTEGER, Examples: [3751, 3989, 3741]),
(UserID:TEXT, Examples: [tw-40932430, tw-3179389829, tw-4624808414])
]
# Table: location
[
(LocationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Country:TEXT, Examples: [Albania, Algeria, Andorra]),
(State:TEXT, Examples: [Elbasan, Tirane, Souk Ahras]),
(StateCode:TEXT, Examples: [AL, DZ, AD]),
(City:TEXT, Examples: [Elbasan, Tirana, Souk Ahras])
]
【Foreign keys】
twitter.LocationID=location.LocationID
twitter.UserID=user.UserID

    【Question】
    Among all the tweets posted on Mondays, how many of them are reshared? "Monday" is the Weekday; reshare refers to IsReshare = 'TRUE'

    【Evidence】
    "Monday" is the Weekday; reshare refers to IsReshare = 'TRUE'

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

SQL: SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Weekday = 'Monday' AND IsReshare = 'TRUE'