query_id
int64 0
1.53k
| database_id
stringclasses 11
values | table_id
sequencelengths 1
4
| query
stringlengths 23
286
| answer
stringlengths 29
1.45k
| difficulty
stringclasses 3
values | evidence
stringlengths 0
591
|
---|---|---|---|---|---|---|
500 | card_games | [
"cards",
"set_translations"
] | Tell the Japanese name of the set which card "Fellwar Stone" is in it. | SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language = 'Japanese' AND T2.translation IS NOT NULL | moderate | Japanese name refers to language = 'Japanese'; card "Fellwar Stone" refers to name = 'Fellwar Stone' |
501 | card_games | [
"cards",
"sets"
] | Which card name in the set 'Journey into Nyx Hero's Path' has the highest converted mana cost. | SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Journey into Nyx Hero''s Path' ORDER BY T1.convertedManaCost DESC LIMIT 1 | moderate | set 'Journey into Nyx Hero's Path' refers to name = 'Journey into Nyx Hero''s Path' |
502 | card_games | [
"sets",
"set_translations"
] | What is the release date for the set "Ola de frío"? | SELECT T1.releaseDate FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Ola de frío' | simple | release date is the date of card set being released; set "Ola de frío" refers to translation = 'Ola de frío' |
503 | card_games | [
"cards",
"sets"
] | What was the expansion type for the set which card "Samite Pilgrim" in it? | SELECT type FROM sets WHERE code IN ( SELECT setCode FROM cards WHERE name = 'Samite Pilgrim' ) | simple | expansion type refers to type; card "Samite Pilgrim" refers to name = 'Samite Pilgrim' |
504 | card_games | [
"cards",
"sets"
] | How many cards are there in the set 'World Championship Decks 2004' with the converted mana cost as '3'. | SELECT COUNT(id) FROM cards WHERE setCode IN ( SELECT code FROM sets WHERE name = 'World Championship Decks 2004' ) AND convertedManaCost = 3 | simple | the set 'World Championship Decks 2004' refers to name = 'World Championship Decks 2004' |
505 | card_games | [
"sets",
"set_translations"
] | Show the Simplified Chinese translation of the name of the set "Mirrodin"? | SELECT translation FROM set_translations WHERE setCode IN ( SELECT code FROM sets WHERE name = 'Mirrodin' ) AND language = 'Chinese Simplified' | moderate | Simplified Chinese translation refers to language = 'Chinese Simplified'; name of the set "Mirrodin" refers to name = 'Mirrodin' |
506 | card_games | [
"sets",
"set_translations"
] | For all the set of cards that has Japanese translation, what is the percentage of them are only available in non-foil? | SELECT CAST(SUM(CASE WHEN isNonFoilOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Japanese' ) | challenging | Japanese translation refers to language = 'Japanese'; in non-foil refers to isNonFoilOnly = 1; percentage of Japanese non foil in Japanese cards refers to DIVIDE(SUM(isNonFoilOnly = 1), SUM(language = 'Japanese'))*100 |
507 | card_games | [
"sets",
"set_translations"
] | For all the set of cards that has Brazil Portuguese translation, what is the percentage of them are only available online? | SELECT CAST(SUM(CASE WHEN isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Portuguese (Brazil)' ) | challenging | Brazil Portuguese translation refers to language = 'Portuguese (Brazil)'; only available online refers to isOnlineOnly = 1; percentage of online only Brazil Portuguese in all Brazil Portuguese cards refers to DIVIDE(SUM(isOnlineOnly = 1), SUM(language = 'Portuguese (Brazil)))*100 |
508 | card_games | [
"cards"
] | What are the available printing types of the cards that doesn't have a text box created by Aleksi Briclot? | SELECT DISTINCT availability FROM cards WHERE artist = 'Aleksi Briclot' AND isTextless = 1 | moderate | created by Aleksi Briclot refers to artist = 'Aleksi Briclot'; doesn't have a text box refers to isTextless = 1; available printing types refers to availability |
509 | card_games | [
"sets"
] | What is the unique id of the set that has the highest number of cards? | SELECT id FROM sets ORDER BY baseSetSize DESC LIMIT 1 | simple | the highest number of cards refers to MAX(baseSetSize); unique id refers to id |
510 | card_games | [
"cards"
] | Among the cards that doesn't have multiple faces on the same card, who is the illustrator of the card art that has the highest cost of converted mana? | SELECT artist FROM cards WHERE side IS NULL ORDER BY convertedManaCost DESC LIMIT 1 | simple | doesn't have multiple faces refers to side IS NULL; illustrator refers to artist |
511 | card_games | [
"cards"
] | What is the most common visual frame effects among the incredibly powerful foils? | SELECT frameEffects FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL GROUP BY frameEffects ORDER BY COUNT(frameEffects) DESC LIMIT 1 | moderate | when both cardKingdomFoilId and cardKingdomId are not null, this foil is incredibly powerful; most common visual frame effects refers to MAX(frameEffects) |
512 | card_games | [
"cards"
] | How many cards with unknown power that can't be found in foil is in duel deck A? | SELECT SUM(CASE WHEN power LIKE '%*%' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE hasFoil = 0 AND duelDeck = 'a' | simple | unknown power refers to power IS NULL or power = '*'; can't be found in foil refers to hasFoil = 0; duel deck A refers to duelDeck = 'a' |
513 | card_games | [
"sets"
] | Among the sets whose expansion type is Commander, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set. | SELECT id FROM sets WHERE type = 'commander' ORDER BY totalSetSize DESC LIMIT 1 | challenging | expansion type refers to type where type = 'commander'; totalSetSize: The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications; highest total number of cards refers to MAX(totalSetSize) |
514 | card_games | [
"cards",
"legalities"
] | In duels, what are the top 10 cards with the highest uncoverted mana cost? | SELECT DISTINCT name FROM cards WHERE uuid IN ( SELECT uuid FROM legalities WHERE format = 'duel' ) ORDER BY manaCost DESC LIMIT 0, 10 | simple | duels refer to format = 'duel'; the highest uncoverted mana cost refers to MAX(manaCost) |
515 | card_games | [
"cards",
"legalities"
] | When was the oldest mythic card released and what are its legal play formats? | SELECT T1.originalReleaseDate, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'mythic' AND T1.originalReleaseDate IS NOT NULL AND T2.status = 'Legal' ORDER BY T1.originalReleaseDate LIMIT 1 | moderate | the oldest card refers to MIN(originalReleaseDate); mythic card refers to rarity = 'mythic'; legal play refers to status = 'legal'; play format refers to format |
516 | card_games | [
"cards",
"foreign_data"
] | How many cards did Volkan Baǵa illustrated whose foreign language is in French? | SELECT COUNT(T3.id) FROM ( SELECT T1.id FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Volkan Baǵa' AND T2.language = 'French' GROUP BY T1.id ) AS T3 | moderate | Volkan Baǵa refers to artist = 'Volkan Baga'; foreign language is in French refers to language = 'French' |
517 | card_games | [
"cards",
"legalities"
] | How many rare enchantment Abundance cards are there whose play format status are all legal? | SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.rarity = 'rare' AND T1.types = 'Enchantment' AND T1.name = 'Abundance' AND T2.status = 'Legal' | moderate | rare refers to rarity = 'rare'; enchantment card refers to types = 'Enchantment'; Abundance cards refers to name = 'Abundance'; format status are all legal refers to status = 'Legal' |
518 | card_games | [
"cards",
"legalities"
] | Which of the play formats has the highest number of banned status? Indicate the play format and the name of the card. | SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T2.status = 'Banned' GROUP BY T2.format ORDER BY COUNT(T2.status) DESC LIMIT 1 | moderate | play format refers to format uuid; banned status refers to status = 'banned'; the highest number of banned status refers to MAX(status = 'banned') |
519 | card_games | [
"sets",
"set_translations"
] | What is the language of the "Battlebond" set? | SELECT language FROM set_translations WHERE id IN ( SELECT id FROM sets WHERE name = 'Battlebond' ) | simple | "Battlebond" set refers to name = 'Battlebond' |
520 | card_games | [
"cards",
"legalities"
] | Who is the illustrator that illustrated the least amount of cards? List the format of play of the cards that he/she illustrated. | SELECT T1.artist, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid GROUP BY T1.artist ORDER BY COUNT(T1.id) ASC LIMIT 1 | moderate | format of the cards refers to format; illustrator refers to artist; the least amount of cards refers to MIN(artist) |
521 | card_games | [
"cards",
"legalities"
] | Among the cards whose version of frame style is 1997, what is the status of the card illustrated by D. Alexander Gregory in legacy play format that has sensitive content or Wizards of the Coast? | SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.frameVersion = 1997 AND T1.hasContentWarning = 1 AND T1.artist = 'D. Alexander Gregory' AND T2.format = 'legacy' | challenging | version of frame style is 1997 refers to frameVersion = '1997'; illustrated by D. Alexander Gregory refers to artist = 'D. Alexander Gregory'; sensitive content refers to hasContentWarning = 1; legacy play format refers to format = 'legacy'; status of the card refers to status |
522 | card_games | [
"cards",
"legalities"
] | Which cards are ranked 1st on EDHRec? List all of the cards name and its banned play format. | SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status = 'Banned' GROUP BY T1.name, T2.format | moderate | ranked 1st on EDHRec refers to edhrecRank = 1; banned refers to status = 'banned'; play format refers to format; cards name refers to name |
523 | card_games | [
"sets",
"set_translations"
] | What is the annual average number of sets that were released between 1/1/2012 to 12/31/2015? Indicate the common langugage of the card. | SELECT (CAST(SUM(T1.id) AS REAL) / COUNT(T1.id)) / 4, T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.id = T2.id WHERE T1.releaseDate BETWEEN '2012-01-01' AND '2015-12-31' GROUP BY T1.releaseDate ORDER BY COUNT(T2.language) DESC LIMIT 1 | challenging | AVG(id); releaseDate BETWEEN 1/1/2012 AND 12/31/2015; the common language refers to MAX(COUNT(language)) |
524 | card_games | [
"cards"
] | List the artists who illustrated cards with black borders which are available only in arena. | SELECT DISTINCT artist FROM cards WHERE availability = 'arena' AND BorderColor = 'black' | simple | black borders refers to BorderColor = 'black'; available only in arena refers to availability = 'arena' |
525 | card_games | [
"legalities"
] | Find the uuid of cards in which the old school format is restricted or banned. | SELECT uuid FROM legalities WHERE format = 'oldschool' AND (status = 'Banned' OR status = 'Restricted') | simple | old school format refers to format = 'oldschool'; restricted or banned refers to status = 'banned' or 'restricted' |
526 | card_games | [
"cards"
] | Among the card designed by Matthew D. Wilson, how many are available only in the paper? | SELECT COUNT(id) FROM cards WHERE artist = 'Matthew D. Wilson' AND availability = 'paper' | simple | card designed by Matthew D. Wilson refers to artist = 'Matthew D. Wilson'; available only in the paper refers to availability = 'paper' |
527 | card_games | [
"cards",
"rulings"
] | What are the rulings for the card named and designed by Kev Walker? List them in descending order of dates. | SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Kev Walker' ORDER BY T2.date DESC | moderate | rulings refers to text; card named and designed by Kev Walker refers to artist = 'Kev Walker'; descending order of dates refers to MAX(date); |
528 | card_games | [
"cards",
"legalities",
"sets"
] | List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal. | SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' ) | challenging | the set Hour of Devastation refers to set.name = 'Hour of Devastation'; names of all the cards in the set refers to cards.name; legal cards refers to status = 'legal'; the formats refers to format |
529 | card_games | [
"sets",
"set_translations"
] | Find and list the names of sets which doesn't have Japanese translation but have Korean translation. | SELECT name FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Korean' AND language NOT LIKE '%Japanese%' ) | moderate | names of sets refers to name; doesn't have Japanese translation refers to language not like '%Japanese%'; have Korean translation refers to language = 'Korean' |
530 | card_games | [
"cards",
"legalities"
] | List all the frame styles and cards Allen Williams worked on and find any banned cards if there are any. | SELECT DISTINCT T1.frameVersion, T1.name , IIF(T2.status = 'Banned', T1.name, 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams' | moderate | frame styles refers to frameVersion; cards Allen Williams worked on refers to artist = 'Allen Williams'; banned cards refers to status = 'banned' |
531 | codebase_community | [
"users"
] | Which user has a higher reputation, Harlan or Jarrod Dixon? | SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') ) | simple | "Harlan" and "Jarrod Dixon" are both DisplayName; highest reputation refers to Max(Reputation) |
532 | codebase_community | [
"users"
] | Please list the display names of all the users whose accounts were created in the year 2014. | SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2014' | simple | account created in the year 2014 refers to year(CreationDate) = 2014 |
533 | codebase_community | [
"users"
] | How many users last accessed the website after 2014/9/1? | SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01' | simple | last accessed after 2014/9/1 refers to LastAccessDate > '2014-09-01 00:00:00' |
534 | codebase_community | [
"users"
] | What is the display name of the user who has the most number of views? | SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users ) | simple | user who has the most number of view refers to Max(Views) |
535 | codebase_community | [
"users"
] | Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes? | SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1 | simple | more than 100 upvotes refers to Upvotes > 100; more than 1 downvotes refers to Downvotes > 1 |
536 | codebase_community | [
"users"
] | How many users with more than 10 views created their account after the year 2013? | SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10 | simple | more than 10 views refers to Views > 10; created after the year 2013 refers to year (CreationDate) > 2013 |
537 | codebase_community | [
"users",
"posts"
] | How many posts does the user csgillespie own? | SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user |
538 | codebase_community | [
"users",
"posts"
] | Please list the titles of the posts owned by the user csgillespie? | SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user |
539 | codebase_community | [
"users",
"posts"
] | Who is the owner of the post "Eliciting priors from experts"? | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts' | simple | "Eliciting priors from experts" is the Title of post; owner refers to DisplayName |
540 | codebase_community | [
"users",
"posts"
] | What is the title of the post that is owned by csgillespie and has the highest popularity? | SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' ORDER BY T1.ViewCount DESC LIMIT 1 | simple | "csgillespie" is the DisplayName of user; highest popularity refers to Max(ViewCount) |
541 | codebase_community | [
"users",
"posts"
] | What is the display name of the user who is the owner of the most valuable post? | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1 | simple | most valuable post refers to Max(FavoriteCount) |
542 | codebase_community | [
"users",
"posts"
] | What is the total number of comments of all the posts owned by csgillespie? | SELECT SUM(T1.CommentCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user; total number of comments refers to Sum(CommentCount) |
543 | codebase_community | [
"users",
"posts"
] | For the post that got the most number of answers owned by csgillespie, how many answers did it get? | SELECT MAX(T1.AnswerCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user; the most number of answer refers to Max(AnswerCount) |
544 | codebase_community | [
"users",
"posts"
] | What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"? | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation' | moderate | "Examples for teaching: Correlation does not mean causation" is the Title of post; user who last edited refers to LastEditorUserId |
545 | codebase_community | [
"users",
"posts"
] | Among the posts owned by csgillespie, how many of them are root posts? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' AND T1.ParentId IS NULL | simple | "csgillespie" is the DisplayName of user; root post refers to ParentId IS Null |
546 | codebase_community | [
"users",
"posts"
] | Please list the display names of all the users who owns a post that is well-finished. | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL | simple | the post that is well-finished refers to ClosedDate IS NOT Null |
547 | codebase_community | [
"users",
"posts"
] | Among the posts owned by an elder user, how many of them have a score of over 19? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65 | simple | elder users refers to Age > 65; Score of over 19 refers to Score > = 20 |
548 | codebase_community | [
"users",
"posts"
] | What is the location of the owner of the post "Eliciting priors from experts"? | SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts' | simple | Owner refers to OwnerUserId; 'Eliciting priors from experts' is the Title of post |
549 | codebase_community | [
"tags",
"posts"
] | From which post is the tag "bayesian" excerpted from? Please give the body of the post. | SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian' | simple | "bayesian" is the TagName; excerpt from refers to ExcerptPostId |
550 | codebase_community | [
"tags",
"posts"
] | From which post is the most popular tag excerpted from? Please give the body of the post. | SELECT Body FROM posts WHERE id = ( SELECT ExcerptPostId FROM tags ORDER BY Count DESC LIMIT 1 ) | simple | most popular tag refers to Max(Count); excerpt from refer to ExcerptPostId |
551 | codebase_community | [
"badges",
"users"
] | How many badges has the user csgillespie obtained? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user |
552 | codebase_community | [
"badges",
"users"
] | Please list the names of the badges obtained by csgillespie. | SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user |
553 | codebase_community | [
"badges",
"users"
] | Among the badges obtained by csgillespie, how many of them were obtained in the year 2011? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user; obtained in 2011 refers to YEAR (Date) = 2011 |
554 | codebase_community | [
"badges",
"users"
] | What is the display name of the user who has obtained the most number of badges? | SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.DisplayName ORDER BY COUNT(T1.Id) DESC LIMIT 1 | simple | who obtained the most number of badges refers to UserID with Max(Count(Id)) |
555 | codebase_community | [
"users",
"posts"
] | What is the average score of the posts owned by the user csgillespie? | SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | "csgillespie" is the DisplayName of user; average score refers to AVG(Score) |
556 | codebase_community | [
"badges",
"users"
] | What is the average number of badges obtained by a user with over 200 views? | SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200 | simple | user with over 200 views refers to Views > 200; average number of badges = Divide (Count(Id), Count(DisplayName)) |
557 | codebase_community | [
"users",
"posts"
] | Among the posts with a score of over 20, what is the percentage of them being owned by an elder user? | SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 20 | moderate | score of over 20 refers to Score > 20; elder user refers to Age > 65; percentage = Divide (Count(Id where Age>65), Count(Id)) * 100 |
558 | codebase_community | [
"votes"
] | How many votes did the user No.58 take on 2010/7/19? | SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19' | simple | user no. 58 refers to UserId = 58; on 2010/7/19 refers to CreationDate = '2010-07-19' |
559 | codebase_community | [
"votes"
] | Indicate the creation date of the maximum number of votes. | SELECT CreationDate FROM votes GROUP BY CreationDate ORDER BY COUNT(Id) DESC LIMIT 1 | simple | the creation date of the maximum number of votes refers to CreationDate where Max(Count(Id)) |
560 | codebase_community | [
"badges"
] | Give the number of "Revival" badges. | SELECT COUNT(Id) FROM badges WHERE Name = 'Revival' | simple | number refers to Id; 'Revival' is the Name of badge |
561 | codebase_community | [
"comments",
"posts"
] | What is the title for the post which got the highest score comment? | SELECT Title FROM posts WHERE Id = ( SELECT PostId FROM comments ORDER BY Score DESC LIMIT 1 ) | simple | highest score comment refers to Max(comments.Score) |
562 | codebase_community | [
"comments",
"posts"
] | For the post which got 1910 view counts, how many comments does it get? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910 | simple | |
563 | codebase_community | [
"comments",
"posts"
] | User No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get? | SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025 | moderate | user no. 3025 refers to UserId = '3025'; comment at 20:29:39 on 2014/4/23 refers to CreationDate = '2014/4/23 20:29:39.0' |
564 | codebase_community | [
"comments",
"posts"
] | Give the only one comment text of the post with parent id 107829. | SELECT T2.Text FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ParentId = 107829 AND T1.CommentCount = 1 | simple | one comment refers to CommentCount = '1' |
565 | codebase_community | [
"comments",
"posts"
] | User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? | SELECT IIF(T2.ClosedDate IS NULL, 'NOT well-finished', 'well-finished') AS resylt FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0' | moderate | user no. 23853 refers to UserId = '23853'; at 9:08:18 on 2013/7/12 refers to CreationDate = '2013-07-12 09:08:18.0'; not well-finished refers to ClosedDate IS NULL and vice versa |
566 | codebase_community | [
"users",
"posts"
] | For the owner user of post No. 65041, what is his/her reputation points? | SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041 | simple | post no. 65041 refers to Id = '65041'; reputation point refers to Reputation |
567 | codebase_community | [
"users",
"posts"
] | For the user with the display name of "Tiago Pasqualini", how many posts did he/she own? | SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini' | simple | "Tiago Pasqualini" is the DisplayName; |
568 | codebase_community | [
"users",
"votes"
] | Provide the display name of the user who made the vote No.6347. | SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347 | simple | vote no. 381800 refers to Id = '6347' |
569 | codebase_community | [
"votes",
"posts"
] | Give the number of votes for the post about data visualization. | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%' | simple | About data visualization is the Title that contains 'data visualization'; |
570 | codebase_community | [
"badges",
"users"
] | For the user whose display name is "DatEpicCoderGuyWhoPrograms", what is his/her badge's name? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms' | simple | "DatEpicCoderGuyWhoPrograms" is the DisplayName; |
571 | codebase_community | [
"votes",
"posts"
] | For the user No.24, how many times is the number of his/her posts compared to his/her votes? | SELECT CAST(COUNT(T2.Id) AS REAL) / COUNT(DISTINCT T1.Id) FROM votes AS T1 INNER JOIN posts AS T2 ON T1.UserId = T2.OwnerUserId WHERE T1.UserId = 24 | moderate | user no. 24 refers to UserId = OwnerUserId = '24'; times of his/her post than votes = Divide (Count(post.Id), Count(votes.Id)) |
572 | codebase_community | [
"posts"
] | How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get? | SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' | moderate | "Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer" is the Title of post; views refers to ViewCount |
573 | codebase_community | [
"comments"
] | Write the contents of comments with a score of 17. | SELECT Text FROM comments WHERE Score = 17 | simple | score of 17 refers to Score = 17; contents of comments refers to Text |
574 | codebase_community | [
"users"
] | Which user has the website URL listed at 'http://stackoverflow.com' | SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com' | simple | "http://stackoverflow.com" is the WebsiteUrl; user refers to DisplayName |
575 | codebase_community | [
"badges",
"users"
] | What is the badge name that user 'SilentGhost' obtained? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost' | simple | "SilentGhost" is the DisplayName of user; |
576 | codebase_community | [
"users",
"comments"
] | Name the user that commented 'thank you user93!' | SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!' | simple | "thank you user93" is the Text of comment; user refers to DisplayName |
577 | codebase_community | [
"users",
"comments"
] | Write all comments made by user 'A Lion.' | SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion' | simple | "A Lion" is the DisplayName of user; comment refers to Text |
578 | codebase_community | [
"users",
"posts"
] | Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user? | SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?' | moderate | "Understanding what Dassault iSight is doing?" is the Title of post; user refers to DisplayName; |
579 | codebase_community | [
"comments",
"posts"
] | Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?' | SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'How does gentle boosting differ from AdaBoost?' | simple | "How does gentle boosting differ from AdaBoost?" is the Title of post; comments refers to Text |
580 | codebase_community | [
"badges",
"users"
] | Name 10 users with the badge name 'Necromancer.' | SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Necromancer' LIMIT 10 | simple | "Necromancer" is the Name of badge; users refers to DisplayName |
581 | codebase_community | [
"users",
"posts"
] | Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?' | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?' | moderate | 'Open source tools for visualizing multi-dimensional data' is the Title of Post |
582 | codebase_community | [
"users",
"posts"
] | List the title of posts which were edited by Vebjorn Ljosa. | SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'Vebjorn Ljosa' | simple | "Vebjorn Ljosa" is the DisplayName; last edited refers to LastEditorUserId |
583 | codebase_community | [
"users",
"posts"
] | What is the total score of the posts edited by Yevgeny and include the user's website URL. | SELECT SUM(T1.Score), T2.WebsiteUrl FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'Yevgeny' GROUP BY T2.WebsiteUrl | simple | "Yevgeny" is the DisplayName; edited refers to LastEditorUserId |
584 | codebase_community | [
"postHistory",
"posts"
] | Write all the comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?' | SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?' | moderate | "Why square the difference instead of taking the absolute value in standard deviation?" is the Title of post; |
585 | codebase_community | [
"votes",
"posts"
] | How much is the total bounty amount of the post titled about 'data' | SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%' | simple | About data means the title contains 'data'; total bounty Amount refers to Sum(BountyAmount) |
586 | codebase_community | [
"users",
"votes",
"posts"
] | Which user added a bounty amount of 50 to the post title mentioning variance? | SELECT T3.DisplayName, T1.Title FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%' | challenging | "bounty amount of 50 refers to BountyAmount = 50; user refers to DisplayName |
587 | codebase_community | [
"comments",
"posts"
] | Calculate the average view count of posts tagged as 'humor' and write the title and the comments of the posts alongside their scores if applicable. | SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.Id = T1.PostId WHERE T2.Tags = '<humor>' | moderate | "humor" is the Tags; comment of the post refers to Text; average view count = AVG(ViewCount) |
588 | codebase_community | [
"comments"
] | Give the total number of comments posted by user ID 13. | SELECT COUNT(Id) FROM comments WHERE UserId = 13 | simple | |
589 | codebase_community | [
"users"
] | Which user ID has the highest reputation? | SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users ) | simple | highest reputation refers to Max(Reputation) |
590 | codebase_community | [
"users"
] | Which user ID has the lowest view? | SELECT Id FROM users WHERE Views = ( SELECT MIN(Views) FROM users ) | simple | lowest views refers to Min(Views) |
591 | codebase_community | [
"badges"
] | How many users are awarded with supporter badge during year 2011? | SELECT COUNT(Id) FROM badges WHERE STRFTIME('%Y', Date) = '2011' AND Name = 'Supporter' | simple | "Supporter" is the Name of badge; in year 2011 refers to year(Date) = 2011 |
592 | codebase_community | [
"badges"
] | How many users are awarded with more than 5 badges? | SELECT UserId FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5 | simple | more than 5 badges refers to Count (Name) > 5; user refers to UserId |
593 | codebase_community | [
"badges",
"users"
] | How many users from New York have a teacher and supporter badge? | SELECT COUNT(DISTINCT T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Name IN ('Supporter', 'Teacher') AND T2.Location = 'New York' | simple | "Supporter" and "Teachers" are both Name of badge; 'New York' is the Location; user refers to UserId |
594 | codebase_community | [
"users",
"comments"
] | Which user created post ID 1 and what is the reputation of this user? | SELECT T2.Id, T2.Reputation FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.PostId = 1 | simple | |
595 | codebase_community | [
"postHistory",
"users",
"posts"
] | Which user have only one post history per post and having at least 1000 views? | SELECT T2.UserId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T3.ViewCount >= 1000 GROUP BY T2.UserId HAVING COUNT(DISTINCT T2.PostHistoryTypeId) = 1 | moderate | having at least 1000 view refers to Views > = 1000; user refers to UserId |
596 | codebase_community | [
"badges",
"comments"
] | Which users have posted the most comments. List out the user's badge? | SELECT Name FROM badges AS T1 INNER JOIN comments AS T2 ON T1.UserId = t2.UserId GROUP BY T2.UserId ORDER BY COUNT(T2.UserId) DESC LIMIT 1 | simple | user with the most comments refers to UserId where Max(Count(Id) |
597 | codebase_community | [
"badges",
"users"
] | How many users from India have the teacher badges? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Location = 'India' AND T1.Name = 'Teacher' | simple | "India" is the Location; "Teacher" is the Name of badge |
598 | codebase_community | [
"badges"
] | What is the percentage difference of student badges given during 2010 and 2011? | SELECT CAST(SUM(IIF(STRFTIME('%Y', Date) = '2010', 1, 0)) AS REAL) * 100 / COUNT(Id) - CAST(SUM(IIF(STRFTIME('%Y', Date) = '2011', 1, 0)) AS REAL) * 100 / COUNT(Id) FROM badges WHERE Name = 'Student' | challenging | "Students" is the Name of badge; during 2010 refers to Year(Date) = 2010; 2011 refers to Year(Date) = 2011; percentage difference = Subtract (Divide(Count(Name where Year(Date) = 2010), Count (Name)) *100, Divide(Count(Name where Year(Date) = 2011), Count(Name)) * 100) |
599 | codebase_community | [
"postHistory",
"comments"
] | What are the post history type IDs for post ID 3720 and how many unique users have commented on the post? | SELECT T1.PostHistoryTypeId, (SELECT COUNT(DISTINCT UserId) FROM comments WHERE PostId = 3720) AS NumberOfUsers FROM postHistory AS T1 WHERE T1.PostId = 3720 | simple |