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】
    Give the location id of West Sussex State.

    【Evidence】
    

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

SQL: SELECT DISTINCT LocationID FROM location WHERE State = 'West Sussex'
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 reshared tweets are there in Texas? reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State

    【Evidence】
    reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State

    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.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.State = 'Texas' 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】
    For the tweet which got a reach number of 547851, which country did it come from? reach number of 547851 refers to Reach = 547851

    【Evidence】
    reach number of 547851 refers to Reach = 547851

    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 T2.LocationID = T1.LocationID WHERE T1.Reach = 547851
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 number of positive tweets from Ha Noi. positive tweet refers to Sentiment > 0; 'Ha Noi' is the State

    【Evidence】
    positive tweet refers to Sentiment > 0; 'Ha Noi' is the State

    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.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Sentiment > 0 AND T2.State = 'Ha Noi'
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】
    Show the text of the tweet with the highest klout from Connecticut. highest klout refers to Max(Klout); 'Connecticut' is the State

    【Evidence】
    highest klout refers to Max(Klout); 'Connecticut' is the State

    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 T2.LocationID = T1.LocationID WHERE T2.State = 'Connecticut' ORDER BY T1.Klout 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】
    How many female Twitter users are there from Wisconsin? female users refers to Gender = 'Female'; 'Wisconsin' is the State

    【Evidence】
    female users refers to Gender = 'Female'; 'Wisconsin' is the State

    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.Likes) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.State = 'Wisconsin' AND T3.Gender = 'Female'
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】
    What is the gender of the user who tweeted `tw-715909161071091712`? "tw-715909161071091712" is the TweetID

    【Evidence】
    "tw-715909161071091712" 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.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.TweetID = 'tw-715909161071091712'
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】
    Give the name of the city of the user who tweeted `One of our favorite stories is @FINRA_News's move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a`. "One of our favorite stories is @FINRA_News's move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a" is the text

    【Evidence】
    "One of our favorite stories is @FINRA_News's move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a" is the text

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

SQL: SELECT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.text = 'One of our favorite stories is @FINRA_News''s move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a'
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】
    What is the gender of the user whose tweet got 535 retweets? tweet got 535 retweets refers to RetweetCount = 535

    【Evidence】
    tweet got 535 retweets refers to RetweetCount = 535

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

SQL: SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.RetweetCount = 535
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】
    Give the gender of the user who made the highest klout tweet on Wednesdays. highest klout refers to Max(Klout); 'Wednesday' is the Weekday

    【Evidence】
    highest klout refers to Max(Klout); 'Wednesday' is the Weekday

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

SQL: SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Weekday = 'Wednesday' ORDER BY T1.Klout 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】
    For the tweet which got the most likes, state the gender of the user who tweeted it. most likes refers to Max(Likes)

    【Evidence】
    most likes refers to Max(Likes)

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

SQL: SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID ORDER BY T1.Likes 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】
    State the number of tweets from Michigan on Thursdays. "Michigan" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)

    【Evidence】
    "Michigan" is the State; 'Thursday' is the Weekday; number of tweets refers to 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 COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Weekday = 'Thursday' AND T2.State = 'Michigan'
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 state was the tweet `tw-685681052912873473` from? Give the state code. tw-685681052912873473' is the TweetID

    【Evidence】
    tw-685681052912873473' 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.StateCode FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.TweetID = 'tw-685681052912873473'