1sf/bird-sql-train-with-schema huggingface dataset:
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: List the price for Zetacoin on 13/11/1 and the next 7 consecutive days. What is the average price for these 7 days?
Evidence: on 1/11/13 and the next 7 consecutive days refers to DATE BETWEEN '2013-11-01' AND '2013-11-07'; average price refers to AVG(price); Zetacoin refers to name = 'Zetacoin'
SQL: SELECT T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07' UNION ALL SELECT AVG(T2.PRICE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: For all transactions for WRAP in August 2016, list the time to achieve highest price and the time to achieve the lowest price.
Evidence: in May 2013 refers to month(date) = 5 AND year(date) = 2013; time to achieve the highest price refers to time_high; time to achieve the lowest price refers to time_low; WRAP refers to name = 'WARP'
SQL: SELECT T2.time_high, T2.time_low, T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'WARP' AND STRFTIME('%Y-%m', T2.date) = '2016-08'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: State the transaction date whereby DigixDAO was transacted at the hightest price.
Evidence: the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'
SQL: SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'DigixDAO' ORDER BY T2.price DESC LIMIT 1
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Name the coin with the highest percentage price changed in 24 hours. State the transaction date and price.
Evidence: the highest percentage price changed in 24 hours refers to max(percent_change_24h)
SQL: SELECT T1.name, T2.DATE, T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.percent_change_24h = ( SELECT MAX(percent_change_24h) FROM historical )
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What is the average monthly circulating supply for Frozen in 2014.
Evidence: average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'
SQL: SELECT CAST(SUM(T2.circulating_supply) AS REAL) / 12 FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Frozen' AND STRFTIME('%Y', T2.date) = '2014'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: List all the inactive coins and state the last date of its transaction?
Evidence: the last date refers to max(date); inactive coins refers to status = 'inactive'
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the price of 1 Bitcoin in 2016?
Evidence: 2016 refers to historical date where year(date) = 2016
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'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: State the transaction date and the price when Bitcoin was bottomed?
Evidence: was bottomed refers to min(price)
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: For all coins with average price more than $1000. State the current status of the coin.
Evidence: average price more than $1000 refers to AVG(price)>1000
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Name the coin and date of transactions with the greatest decline in percent change in 1 hour.
Evidence: the greatest decline in percent change in 1 hour refers to max(percent_change_1h)
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 )
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Name the coin under the token category that gives the highest max profit.
Evidence: the highest max profit refers to max(subtract(high, low))
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Name the coin that have higher than average percentage price changed from the previous 24 hours for transaction on 2013/6/22.
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'
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Which crytocurrency was ranked the first by CoinMarketCap on 2013/4/28?
Evidence: ranked the first refers to cmc_rank = 1; on 2013/4/28 refers to date = '2013-04-28'
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
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: How much dollars was a Bitcoin worth on 2013/4/28 according to the coin market?
Evidence: worth refers to price; on 2013/4/28 refers to date = '2013-04-28'
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'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Which crytocurrency was not opened on 2013/5/3?
Evidence: not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'
SQL: SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-03' AND T2.open IS NULL
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the price of Bitcoin when it closed at the end of the day on 2013/4/29?
Evidence: price when it closed refers to close; on 2013/4/29 refers to date = '2013-04-29'
SQL: SELECT T2.close FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T1.name = 'Bitcoin'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: When did Bitcoin reach its highest price on 2013/4/29?
Evidence: time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'
SQL: SELECT T2.time_high FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T1.name = 'Bitcoin'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the max profit a user can make on Bitcoin on 2013/4/28?
Evidence: the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'
SQL: SELECT T2.high - T2.low 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'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the number of Bitcoins verifiably burned until 2013/4/28?
Evidence: the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'
SQL: SELECT T2.max_supply - T2.total_supply 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'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Which crytocurrency was traded in the highest value on 2016/1/8?
Evidence: traded in the highest value refers to max(volume_24h); on 2016/1/8 refers to date = '2016-01-08'
SQL: SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2016-01-08' AND T2.volume_24h = ( SELECT MAX(volume_24h) FROM historical WHERE date = '2016-01-08' )
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Please list the names of the crytocurrencies that have a total amount of existence of over 10000000 on 2013/4/28.
Evidence: a total amount of existence of over 10000000 refers to total_supply>10000000; on 2013/4/28 refers to date = '2013-04-28'
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.total_supply > 10000000
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Had Bitcoin's price increased or decreased on 2013/5/5 compared with the price 7 days before?
Evidence: price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'
SQL: SELECT (CASE WHEN T2.percent_change_7d > 0 THEN 'INCREASED' ELSE 'DECREASED' END) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-05' AND T1.name = 'Bitcoin'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: Which crytocurrency had a bigger number of coins circulating in the market and in the general public's hands on 2013/4/28, Bitcoin or Litecoin?
Evidence: a bigger number of coins circulating in the market refers to max(circulating_supply); on 2013/4/28 refers to date = '2013-04-28'
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 T1.name IN ('Bitcoin', 'Litecoin') ORDER BY T2.circulating_supply DESC LIMIT 1
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: How much was a Bitcoin on 2013/4/28?
Evidence: how much refers to price; on 2013/4/28 refers to date = '2013-04-28'
SQL: SELECT T2.price 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'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the average price of a Bitcoin in the year 2013?
Evidence: average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013
SQL: SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE STRFTIME('%Y', T2.date) = '2013' AND T1.name = 'Bitcoin'
Database: coinmarketcap
Tables: coins, historical
Columns (table index, column name): -1, *, 0, id, 0, name, 0, slug, 0, symbol, 0, status, 0, category, 0, description, 0, subreddit, 0, notice, 0, tags, 0, tag_names, 0, website, 0, platform_id, 0, date_added, 0, date_launched, 1, date, 1, coin_id, 1, cmc_rank, 1, market_cap, 1, price, 1, open, 1, high, 1, low, 1, close, 1, time_high, 1, time_low, 1, volume_24h, 1, percent_change_1h, 1, percent_change_24h, 1, percent_change_7d, 1, circulating_supply, 1, total_supply, 1, max_supply, 1, num_market_pairs
Question: What was the percentage of the Bitcoins verifiably burned until 2018/4/28?
Evidence: the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'
SQL: SELECT CAST((SUM(T2.max_supply) - SUM(T2.total_supply)) AS REAL) / SUM(T2.total_supply) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date < '2018-04-28' AND T1.name = 'Bitcoin'