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】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    List all the inactive coins and state the last date of its transaction? the last date refers to max(date); inactive coins refers to status = 'inactive'

    【Evidence】
    the last date refers to max(date); inactive coins refers to status = 'inactive'

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

SQL: SELECT T1.NAME, MAX(T2.DATE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.ID = T2.coin_id WHERE T1.status = 'inactive' ORDER BY T2.DATE DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    What was the price of 1 Bitcoin in 2016? 2016 refers to historical date where year(date) = 2016

    【Evidence】
    2016 refers to historical date where year(date) = 2016

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

SQL: SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bitcoin' AND STRFTIME('%Y', T2.date) = '2016'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    State the transaction date and the price when Bitcoin was bottomed? was bottomed refers to min(price)

    【Evidence】
    was bottomed refers to min(price)

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

SQL: SELECT T2.date, T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bitcoin' ORDER BY T2.price LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    For all coins with average price more than $1000. State the current status of the coin. average price more than $1000 refers to AVG(price)>1000

    【Evidence】
    average price more than $1000 refers to AVG(price)>1000

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

SQL: SELECT T1.status FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id GROUP BY T1.name HAVING AVG(T2.price) > 1000
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    Name the coin and date of transactions with the greatest decline in percent change in 1 hour. the greatest decline in percent change in 1 hour refers to max(percent_change_1h)

    【Evidence】
    the greatest decline in percent change in 1 hour refers to max(percent_change_1h)

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

SQL: SELECT T1.name, T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.percent_change_1h = ( SELECT MIN(percent_change_1h) FROM historical )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    Name the coin under the token category that gives the highest max profit. the highest max profit refers to max(subtract(high, low))

    【Evidence】
    the highest max profit refers to max(subtract(high, low))

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

SQL: SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.category = 'token' ORDER BY T2.high - T2.low DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    Name the coin that have higher than average percentage price changed from the previous 24 hours for transaction on 2013/6/22. average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'

    【Evidence】
    average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'

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

SQL: SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2020-06-22' GROUP BY T1.name HAVING AVG(T2.percent_change_24h) > T2.PRICE
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    Which crytocurrency was ranked the first by CoinMarketCap on 2013/4/28? ranked the first refers to cmc_rank = 1; on 2013/4/28 refers to date = '2013-04-28'

    【Evidence】
    ranked the first refers to cmc_rank = 1; on 2013/4/28 refers to date = '2013-04-28'

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

SQL: SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T2.cmc_rank = 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 coinmarketcap
【Schema】
# Table: coins
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(name:TEXT, Examples: [Bitcoin, Litecoin, Namecoin]),
(slug:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(symbol:TEXT, Examples: [BTC, LTC, NMC]),
(status:TEXT, Examples: [active, untracked, inactive]),
(category:TEXT, Examples: [coin, token]),
(description:TEXT),
(subreddit:TEXT, Examples: [bitcoin, litecoin, namecoin]),
(notice:TEXT),
(tags:TEXT),
(tag_names:TEXT),
(website:TEXT),
(platform_id:INTEGER, Examples: [1027, 1765, 1376]),
(date_added:TEXT, Examples: [2013-04-28T00:00:00.000Z]),
(date_launched:TEXT, Examples: [2018-01-16T00:00:00.000Z])
]
# Table: historical
[
(date:DATE, Examples: [2013-04-28]),
(coin_id:INTEGER, Examples: [1, 2, 5]),
(cmc_rank:INTEGER, Examples: [1, 2, 3]),
(market_cap:REAL, Examples: [1488566971.9558687, 74637021.56790735, 7250186.647688276]),
(price:REAL, Examples: [134.210021972656, 4.34840488433838, 0.386524856090546]),
(open:REAL, Examples: [134.44400024414062, 4.366759777069092, 0.3871999979019165]),
(high:REAL, Examples: [147.48800659179688, 4.573599815368652, 0.4247649908065796]),
(low:REAL, Examples: [134.0, 4.225639820098877, 0.37790799140930176]),
(close:REAL, Examples: [144.5399932861328, 4.383900165557861, 0.4088610112667084]),
(time_high:TEXT, Examples: [13:15:01, 13:15:03, 12:45:02]),
(time_low:TEXT, Examples: [05:20:01, 19:25:02, 04:05:04]),
(volume_24h:REAL, Examples: [0.0, 46862728.0, 31112234.0]),
(percent_change_1h:REAL, Examples: [0.639231, 0.799273, -0.934763]),
(percent_change_24h:REAL, Examples: [7.63553, 0.920718, 18.558]),
(percent_change_7d:REAL, Examples: [-13.809, -16.7201, 1.64395]),
(circulating_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(total_supply:REAL, Examples: [11091325.0, 17164230.0, 18757362.0]),
(max_supply:REAL, Examples: [21000000.0, 84000000.0, 42000000.0]),
(num_market_pairs:INTEGER, Examples: [7050, 5146, 382])
]

    【Question】
    How much dollars was a Bitcoin worth on 2013/4/28 according to the coin market? worth refers to price; on 2013/4/28 refers to date = '2013-04-28'

    【Evidence】
    worth refers to price; on 2013/4/28 refers to date = '2013-04-28'

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

SQL: SELECT T2.market_cap FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name = 'Bitcoin'