question
stringlengths 19
187
| answer
stringlengths 1
333
โ | type
stringclasses 5
values | columns_used
stringlengths 2
161
โ | column_types
stringclasses 132
values | sample_answer
stringlengths 1
228
โ | dataset
stringclasses 80
values |
---|---|---|---|---|---|---|
List the top 3 items most frequently bought in the morning.
|
['Coffee', 'Bread', 'Pastry']
|
list[category]
|
[Item, period_day]
|
['category', 'category']
|
['Coffee', 'Bread', 'Farm House']
|
060_Bakery
|
Name the top 2 most purchased during the afternoon.
|
['Coffee', 'Bread']
|
list[category]
|
[Item, period_day]
|
['category', 'category']
|
['Coffee', 'Bread']
|
060_Bakery
|
Identify the top 2 items sold on weekends. If a tie then sort alphabetical.
|
['Coffee', 'Bread']
|
list[category]
|
[Item, weekday_weekend]
|
['category', 'category']
|
['Brownie', 'Coke']
|
060_Bakery
|
What are the 4 items that were bought two times in the evening?
|
['Art Tray', 'Mighty Protein', 'Mortimer', 'Vegan mincepie']
|
list[category]
|
[Item, period_day]
|
['category', 'category']
|
[]
|
060_Bakery
|
Which are the 4 transaction numbers with the most items bought?
|
[6474, 6716, 6279, 6412]
|
list[number]
|
[Transaction]
|
['number[uint16]']
|
[6103, 1259, 628, 4627]
|
060_Bakery
|
Identify the highest 5 transaction numbers.
|
[9680, 9681, 9682, 9683, 9684]
|
list[number]
|
[Transaction]
|
['number[uint16]']
|
[9133, 7776, 7497, 7435, 7221]
|
060_Bakery
|
List the highest 4 transaction numbers during which 'Bread' was purchased.
|
[9680, 9679, 9673, 9671]
|
list[number]
|
[Transaction, Item]
|
['number[uint16]', 'category']
|
[7776, 7104, 5816, 2850]
|
060_Bakery
|
Name the lowest 2 transaction numbers where purchases were made in the morning.
|
[1, 2]
|
list[number]
|
[Transaction, period_day]
|
['number[uint16]', 'category']
|
[956, 2711]
|
060_Bakery
|
Are all the reviews from Australia positive (rating > 3)?
|
False
|
boolean
|
['Reviewer_Location', 'Rating']
|
['category', 'number[uint8]']
|
True
|
061_Disneyland
|
Is Disneyland_HongKong the most reviewed branch?
|
False
|
boolean
|
['Branch']
|
['category']
|
False
|
061_Disneyland
|
Are there any reviews with a rating of 1?
|
True
|
boolean
|
['Rating']
|
['number[uint8]']
|
True
|
061_Disneyland
|
Does every reviewer location have at least one review with a rating of 5?
|
False
|
boolean
|
['Reviewer_Location', 'Rating']
|
['category', 'number[uint8]']
|
True
|
061_Disneyland
|
How many unique reviewer locations are there?
|
162
|
number
|
['Reviewer_Location']
|
['category']
|
9
|
061_Disneyland
|
What is the average rating for Disneyland_HongKong?
|
4.204158004158004
|
number
|
['Branch', 'Rating']
|
['category', 'number[uint8]']
|
4.25
|
061_Disneyland
|
What is the maximum review ID? If there is a tie then pick the highest ID.
|
670801367
|
number
|
['Review_ID']
|
['number[uint32]']
|
644423763
|
061_Disneyland
|
How many reviews were made in 2019?
|
786
|
number
|
['Year_Month']
|
['category']
|
2
|
061_Disneyland
|
What is the most common reviewer location?
|
United States
|
category
|
['Reviewer_Location']
|
['category']
|
United States
|
061_Disneyland
|
What is the branch with the lowest average rating?
|
Disneyland_Paris
|
category
|
['Branch', 'Rating']
|
['category', 'number[uint8]']
|
Disneyland_California
|
061_Disneyland
|
In which date was the first most negative review (rating=1) made?
|
2010-12
|
category
|
['Year_Month', 'Rating']
|
['category', 'number[uint8]']
|
2011-10
|
061_Disneyland
|
What is the reviewer location with the highest average rating? If there is a tie then pick the first one alphabetically
|
Armenia
|
category
|
['Reviewer_Location', 'Rating']
|
['category', 'number[uint8]']
|
Australia
|
061_Disneyland
|
What are the top 3 reviewer locations with the most reviews?
|
['United States', 'United Kingdom', 'Australia']
|
list[category]
|
['Reviewer_Location']
|
['category']
|
['United States', 'Australia', 'Malta']
|
061_Disneyland
|
What are the bottom 2 branches in terms of average rating?
|
['Disneyland_Paris', 'Disneyland_HongKong']
|
list[category]
|
['Branch', 'Rating']
|
['category', 'number[uint8]']
|
['Disneyland_California', 'Disneyland_HongKong']
|
061_Disneyland
|
What are the 4 dates with the most reviews? Include those missing.
|
['missing', '2015-8', '2015-7', '2015-12']
|
list[category]
|
['Year_Month']
|
['category']
|
['missing', '2019-1', '2015-12', '2012-5']
|
061_Disneyland
|
What are the bottom 3 reviewer locations in terms of average rating?
|
['Turks and Caicos Islands', 'South Sudan', 'Suriname']
|
list[category]
|
['Reviewer_Location', 'Rating']
|
['category', 'number[uint8]']
|
['Canada', 'United States', 'United Kingdom']
|
061_Disneyland
|
What are the highest 5 review IDs in terms of rating? If you find a tie then keep the highest IDs.
|
[670801367, 670760708, 670721950, 670606796, 670585330]
|
list[number]
|
['Review_ID', 'Rating']
|
['number[uint32]', 'number[uint8]']
|
[644423763, 643982268, 635972926, 621724235, 576395715]
|
061_Disneyland
|
What are the lowest 4 review IDs in terms of rating? If there are more than four with the same rating keep the lowest IDs
|
[1534364, 2718239, 2831747, 2945119]
|
list[number]
|
['Review_ID', 'Rating']
|
['number[uint32]', 'number[uint8]']
|
[119781124, 337648026, 620582661, 124120037]
|
061_Disneyland
|
What are the top 3 (not necessarily unique) ratings given by reviewers from Australia?
|
[5, 5, 5]
|
list[number]
|
['Reviewer_Location', 'Rating']
|
['category', 'number[uint8]']
|
[5, 5, 5]
|
061_Disneyland
|
What are the lowest 2 ratings given for Disneyland_HongKong?
|
[1, 1]
|
list[number]
|
['Branch', 'Rating']
|
['category', 'number[uint8]']
|
[5, 2]
|
061_Disneyland
|
Are all the tweets in English?
|
False
|
boolean
|
['lang']
|
['category']
|
True
|
062_Trump
|
Has the author ever been retweeted?
|
True
|
boolean
|
['retweets']
|
['number[UInt32]']
|
True
|
062_Trump
|
Are there any tweets with more than 10000 retweets?
|
True
|
boolean
|
['retweets']
|
['number[uint32]']
|
True
|
062_Trump
|
Have any of the tweets been favorited more than 50000 times?
|
True
|
boolean
|
['favorites']
|
['number[uint32]']
|
True
|
062_Trump
|
How many unique authors are there?
|
1
|
number
|
['author_name']
|
['category']
|
1
|
062_Trump
|
What is the average number of retweets?
|
8774.52044683822
|
number
|
['retweets']
|
['number[uint32]']
|
8111.15
|
062_Trump
|
What is the maximum number of favorites received for a single tweet?
|
589793
|
number
|
['favorites']
|
['number[uint32]']
|
105448
|
062_Trump
|
How many tweets were posted in 2018?
|
2891
|
number
|
['date']
|
['date[ns, UTC]']
|
2
|
062_Trump
|
What is the most common author name?
|
Donald J. Trump
|
category
|
['author_name']
|
['category']
|
Donald J. Trump
|
062_Trump
|
What is the tweet with the most favorites?
|
Such a beautiful and important evening! The forgotten man and woman will never be forgotten again. We will all come together as never before
|
category
|
['text', 'favorites']
|
['text', 'number[uint32]']
|
I have great confidence that China will properly deal with North Korea. If they are unable to do so, the U.S., with its allies, will! U.S.A.
|
062_Trump
|
In which language is the tweet with the most retweets written?
|
und
|
category
|
['lang', 'retweets']
|
['category', 'number[uint32]']
|
en
|
062_Trump
|
What is the most common language of the tweets?
|
en
|
category
|
['lang']
|
['category']
|
en
|
062_Trump
|
What are the top 3 author handlers with the most tweets?
|
['realDonaldTrump']
|
list[category]
|
['author_handler']
|
['category']
|
['realDonaldTrump']
|
062_Trump
|
What are the bottom 2 languages in terms of tweet count? If there are more than two give priority to those starting with the letter p
|
['pl', 'pt']
|
list[category]
|
['lang']
|
['category']
|
['en']
|
062_Trump
|
What are the top 4 mentioned names in the tweets?
|
['realDonaldTrump', 'FoxNews', 'CNN', 'foxandfriends']
|
list[category]
|
['mention_names']
|
['list[category]']
|
['[]', '"realDonaldTrump"]', '["IvankaTrump"', '"trumpferrypoint"']
|
062_Trump
|
What are the bottom 3 author names in terms of tweet count?
|
['Donald J. Trump']
|
list[category]
|
['author_name']
|
['category']
|
['Donald J. Trump']
|
062_Trump
|
What are the top 5 tweet IDs in terms of retweet count?
|
[881503147168071680, 795954831718498305, 929511061954297857, 796315640307060738, 948355557022420992]
|
list[number]
|
['id', 'retweets']
|
['number[int64]', 'number[uint32]']
|
[852508752142114816, 900150814081036288, 1017190186269184001, 822501939267141634, 761711856457125888]
|
062_Trump
|
What are the bottom 4 tweet IDs in terms of favorite count?
|
[591222909626114050, 591412084895838208, 586751374286721024, 575589231160127489]
|
list[number]
|
['id', 'favorites']
|
['number[int64]', 'number[uint32]']
|
[603361519192174592, 589632894177533953, 616672730319069185, 618552478653616128]
|
062_Trump
|
What are the top 6 favorite counts of the tweets?
|
[589793, 589750, 557779, 539249, 476457, 376626]
|
list[number]
|
['favorites']
|
['number[uint32]']
|
[105448, 85433, 84944, 79544, 67612, 59793]
|
062_Trump
|
What are the bottom 3 retweet counts of the tweets?
|
[1, 1, 2]
|
list[number]
|
['retweets']
|
['number[uint32]']
|
[10, 14, 376]
|
062_Trump
|
Are there any organizations in the dataset?
|
False
|
boolean
|
['is_organization']
|
['boolean']
|
False
|
063_Influencers
|
Are there any individuals (non-organizations) in the dataset?
|
True
|
boolean
|
['is_organization']
|
['boolean']
|
True
|
063_Influencers
|
Do all entities have a picture?
|
True
|
boolean
|
['pic']
|
['url']
|
True
|
063_Influencers
|
Are there any entities with a weight greater than 500?
|
True
|
boolean
|
['weight']
|
['number[double]']
|
False
|
063_Influencers
|
How many unique communities are there?
|
9
|
number
|
['community']
|
['number[uint32]']
|
6
|
063_Influencers
|
What is the average page rank norm?
|
0.08848033260794509
|
number
|
['page_rank_norm']
|
['number[double]']
|
0.0923955552240227
|
063_Influencers
|
What is the maximum weight of an entity?
|
770.5
|
number
|
['weight']
|
['number[double]']
|
324.5
|
063_Influencers
|
How many entities have a community identifier of 16744206?
|
651
|
number
|
['community']
|
['number[uint32]']
|
11
|
063_Influencers
|
What is the most common name?
|
Christophe Viau
|
category
|
['name']
|
['category']
|
Peter Skomoroch
|
063_Influencers
|
Which entity has the highest page rank norm?
|
Mike Bostock
|
category
|
['name', 'page_rank_norm']
|
['category', 'number[double]']
|
Data Science Fact
|
063_Influencers
|
What is the picture URL of the entity with the maximum weight?
|
category
|
['pic', 'weight']
|
['url', 'number[double]']
|
063_Influencers
|
||
Which entity has the highest y-coordinate?
|
The Gibson Project
|
category
|
['name', 'y']
|
['category', 'number[double]']
|
Paul Klemm
|
063_Influencers
|
What are the top 3 entity names with the highest weights?
|
['Lynn Cherny', 'Alberto Cairo', 'Sinan Aral']
|
list[category]
|
['name', 'weight']
|
['category', 'number[double]']
|
['Peter Skomoroch', 'Nieman Lab', 'Munmun De Choudhury']
|
063_Influencers
|
What are the bottom 2 entities in terms of page rank norm?
|
['LIFE', 'New Options Project']
|
list[category]
|
['name', 'page_rank_norm']
|
['category', 'number[double]']
|
['Christopher', 'Chris J. Headleand']
|
063_Influencers
|
What are the top 4 entities with the highest x-coordinates?
|
['Detective.io', 'The Thrust', 'Open Budgets', 'NewsFuturist']
|
list[category]
|
['name', 'x']
|
['category', 'number[double]']
|
['Catherine Rampell', 'Nieman Lab', 'Deok Gun Park', 'ESFL']
|
063_Influencers
|
What are the bottom 3 entities in terms of y-coordinates?
|
['digital PR cat', 'Ismail Onur Filiz', 'Dave Golland']
|
list[category]
|
['name', 'y']
|
['category', 'number[double]']
|
['ESFL', 'WikipediaLiveMonitor', 'Alberto Perdomo']
|
063_Influencers
|
What are the top 5 entity IDs in terms of weight?
|
[568, 423, 6392, 4548, 579]
|
list[number]
|
['id', 'weight']
|
['number[uint32]', 'number[double]']
|
[527, 498, 411, 8031, 91203]
|
063_Influencers
|
What are the bottom 4 entity IDs in terms of page rank norm?
|
[177, 240, 294, 369]
|
list[number]
|
['id', 'page_rank_norm']
|
['number[uint32]', 'number[double]']
|
[35070, 35046, 35106, 35054]
|
063_Influencers
|
What are the top 6 page rank norms of the entities?
|
[1.0, 0.6029751067034804, 0.5666707687637932, 0.5202348027491394, 0.5110606617858531, 0.5081183103684572]
|
list[number]
|
['page_rank_norm']
|
['number[double]']
|
[0.4905835057931528, 0.2858285808469396, 0.2194061763508274, 0.2171608658929857, 0.1213462154304343, 0.1023296876109954]
|
063_Influencers
|
What are the bottom 3 weights of the entities?
|
[1.0, 1.0, 1.0]
|
list[number]
|
['weight']
|
['number[double]']
|
[3.0, 5.0, 7.0]
|
063_Influencers
|
Are there any animals with feathers in the dataset?
|
True
|
boolean
|
['feathers']
|
['number[uint8]']
|
True
|
064_Clustering
|
Are there any venomous animals in the dataset?
|
True
|
boolean
|
['venomous']
|
['number[uint8]']
|
True
|
064_Clustering
|
Do all animals breathe?
|
False
|
boolean
|
['breathes']
|
['number[uint8]']
|
False
|
064_Clustering
|
Are there any domesticated animals in the dataset?
|
True
|
boolean
|
['domestic']
|
['number[uint8]']
|
True
|
064_Clustering
|
How many unique types of animals are there?
|
7
|
number
|
['class_type']
|
['number[uint8]']
|
4
|
064_Clustering
|
What is the average number of legs?
|
2.8415841584158414
|
number
|
['legs']
|
['number[uint8]']
|
3.1
|
064_Clustering
|
What is the maximum number of legs an animal has?
|
8
|
number
|
['legs']
|
['number[uint8]']
|
6
|
064_Clustering
|
How many animals are there with 2 legs?
|
27
|
number
|
['legs']
|
['number[uint8]']
|
4
|
064_Clustering
|
What is the most common class type?
|
1
|
category
|
['class_type']
|
['number[uint8]']
|
1
|
064_Clustering
|
What is the name of the first animal with 8 legs?
|
octopus
|
category
|
['animal_name', 'legs']
|
['category', 'number[uint8]']
| null |
064_Clustering
|
What is the class type of the animals with the most legs?
|
7
|
category
|
['class_type', 'legs']
|
['number[uint8]', 'number[uint8]']
|
6
|
064_Clustering
|
What is the name of the first animal in the dataset that is venomous?
|
frog
|
category
|
['animal_name', 'venomous']
|
['category', 'number[uint8]']
|
honeybee
|
064_Clustering
|
What are the top 3 animal names with the most legs? If there are more than two with the lowest number go with alphabetical order
|
['octopus', 'scorpion', 'crayfish']
|
list[category]
|
['animal_name', 'legs']
|
['category', 'number[uint8]']
|
['honeybee', 'gnat', 'wasp']
|
064_Clustering
|
What are the bottom 2 animal names in terms of the number of legs? If there are more than two with the lowest number go with alphabetical order
|
['bass', 'carp']
|
list[category]
|
['animal_name', 'legs']
|
['category', 'number[uint8]']
|
['porpoise', 'dogfish']
|
064_Clustering
|
What are the most common 4 class types with the most animals?
|
[1, 2, 4, 7]
|
list[category]
|
['class_type']
|
['number[uint8]']
|
[1, 6, 4, 2]
|
064_Clustering
|
What are the least common 3 class types with the least animals?
|
[5, 3, 6]
|
list[category]
|
['class_type']
|
['number[uint8]']
|
[4, 2, 7]
|
064_Clustering
|
What are the most common 5 class types with the most combined total legs?
|
[1, 6, 2, 7, 5]
|
list[number]
|
['class_type', 'legs']
|
['number[uint8]', 'number[uint8]']
|
[1, 6, 2, 4, 7]
|
064_Clustering
|
What are the bottom 4 class types with the least combined total legs?
|
[4, 3, 5, 7]
|
list[number]
|
['class_type', 'legs']
|
['number[uint8]', 'number[uint8]']
|
[4, 7, 2, 6]
|
064_Clustering
|
What are the most common 4 numbers of legs that animals have?
|
[4, 2, 0, 6]
|
list[number]
|
['legs']
|
['number[uint8]']
|
[4, 2, 0, 6]
|
064_Clustering
|
What are the least common 3 numbers of legs that animals have?
|
[5, 8, 6]
|
list[number]
|
['legs']
|
['number[uint8]']
|
[2, 0, 6]
|
064_Clustering
|
Are all the quantities greater than 0?
|
False
|
boolean
|
['Quantity']
|
['number[int32]']
|
False
|
065_RFM
|
Are all the unit prices greater than 0?
|
False
|
boolean
|
['UnitPrice']
|
['number[double]']
|
True
|
065_RFM
|
Are there any missing customer IDs?
|
True
|
boolean
|
['CustomerID']
|
['number[UInt16]']
|
True
|
065_RFM
|
Are there any transactions from the United Kingdom?
|
True
|
boolean
|
['Country']
|
['category']
|
True
|
065_RFM
|
How many unique stock codes are there?
|
4070
|
number
|
['StockCode']
|
['category']
|
20
|
065_RFM
|
What is the average unit price?
|
4.611113626088513
|
number
|
['UnitPrice']
|
['number[double]']
|
3.5415
|
065_RFM
|
What is the maximum quantity ordered in a single transaction?
|
80995
|
number
|
['Quantity']
|
['number[int32]']
|
25
|
065_RFM
|
How many transactions were made in the United Kingdom?
|
495478
|
number
|
['Country']
|
['category']
|
19
|
065_RFM
|
Which country made the most transactions?
|
United Kingdom
|
category
|
['Country']
|
['category']
|
United Kingdom
|
065_RFM
|
What is the description of the item with the highest unit price?
|
Manual
|
category
|
['Description', 'UnitPrice']
|
['category', 'number[double]']
|
RETROSPOT LAMP
|
065_RFM
|
What is the description of the item with the highest quantity ordered?
|
PAPER CRAFT , LITTLE BIRDIE
|
category
|
['Description', 'Quantity']
|
['category', 'number[int32]']
|
BLUE POLKADOT WRAP
|
065_RFM
|
Which country does the customer with the lowest ID come from?
|
United Kingdom
|
category
|
['Country', 'CustomerID']
|
['category', 'number[UInt16]']
|
Australia
|
065_RFM
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.