Dludora/Bird-minidev-sqlserver-oracle huggingface dataset:
Database: superhero

Question: Which superheroes have blue eyes with brown hair?
Evidence: which superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;
SQL (SQLite): SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'
SQL (SQL Server): SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'
SQL (Oracle): SELECT T1.superhero_name FROM superhero T1 INNER JOIN colour T2 ON T1.eye_colour_id = T2.id INNER JOIN colour T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Brown'

Question: What is the publisher for Hawkman, Karate Kid and Speedy?
Evidence: publisher refers to publisher_name; Hawkman refers to superhero_name = 'Hawkman'; Karate Kid refers to superhero_name = 'Karate Kid'; Speedy refers to superhero_name = 'Speedy';
SQL (SQLite): SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name IN ('Hawkman', 'Karate Kid', 'Speedy')
SQL (SQL Server): SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name IN ('Hawkman', 'Karate Kid', 'Speedy')
SQL (Oracle): SELECT T2.publisher_name FROM superhero T1 INNER JOIN publisher T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name IN ('Hawkman', 'Karate Kid', 'Speedy')

Question: Calculate the percentage of superheroes with blue eyes.
Evidence: percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id =  eye_colour_id = 7;
SQL (SQLite): SELECT CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id
SQL (SQL Server): SELECT TRY_CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(T1.id) AS _agg1 FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id
SQL (Oracle): SELECT CAST(COUNT(CASE WHEN T2.colour = 'Blue' THEN 1 ELSE NULL END) AS BINARY_DOUBLE) * 100 / COUNT(T1.id) FROM superhero T1 INNER JOIN colour T2 ON T1.eye_colour_id = T2.id
Database: superhero

Question: Find the ratio between male superheroes and female superheroes.
Evidence: ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2)); male superheroes refers to gender = 'Female'; female superheroes refers to gender = 'Male';
SQL (SQLite): SELECT CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id
SQL (SQL Server): SELECT TRY_CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS FLOAT) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) AS _agg1 FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id
SQL (Oracle): SELECT CAST(COUNT(CASE WHEN T2.gender = 'Male' THEN T1.id ELSE NULL END) AS BINARY_DOUBLE) / COUNT(CASE WHEN T2.gender = 'Female' THEN T1.id ELSE NULL END) FROM superhero T1 INNER JOIN gender T2 ON T1.gender_id = T2.id

Question: Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.
Evidence: eye colour refers to colour.colour where eye_colour_id = colour.id; Karen Beecher-Duncan is the full name of superhero;
SQL (SQLite): SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'
SQL (SQL Server): SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'
SQL (Oracle): SELECT T2.colour FROM superhero T1 INNER JOIN colour T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'

Question: In superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color.
Evidence: missing weight data refers to weight_kg = 0 OR T1.weight_kg = NULL; difference = SUBTRACT(SUM(colour.id = 7), SUM(colour.id = 1)); blue eyes refers to eye_colour_id WHERE colour.id = 7; no eye color refers to eye_colour_id WHERE colour.id = 1;
SQL (SQLite): SELECT SUM(CASE WHEN T2.id = 7 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg = 0 OR T1.weight_kg is NULL
SQL (SQL Server): SELECT SUM(CASE WHEN T2.id = 7 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) AS _agg1 FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg = 0 OR T1.weight_kg is NULL
SQL (Oracle): SELECT SUM(CASE WHEN T2.id = 7 THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) - SUM(CASE WHEN T2.id = 1 THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) FROM superhero T1 INNER JOIN colour T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg = 0 OR T1.weight_kg is NULL
Database: superhero

Question: How many green-skinned villains are there in the superhero universe?
Evidence: green-skinned refers to colour.colour = 'Green' WHERE skin_colour_id = colour.id; villains refers to alignment = 'Bad';
SQL (SQLite): SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'
SQL (SQL Server): SELECT COUNT(T1.id) AS _agg1 FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'
SQL (Oracle): SELECT COUNT(T1.id) FROM superhero T1 INNER JOIN alignment T2 ON T1.alignment_id = T2.id INNER JOIN colour T3 ON T1.skin_colour_id = T3.id WHERE T2.alignment = 'Bad' AND T3.colour = 'Green'

Question: Identify superheroes who can control wind and list their names in alphabetical order.
Evidence: superheroes refers to superhero_name; can control wind refers to power_name = 'Wind Control';
SQL (SQLite): SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Wind Control' ORDER BY T1.superhero_name
SQL (SQL Server): SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Wind Control' ORDER BY T1.superhero_name
SQL (Oracle): SELECT T1.superhero_name FROM superhero T1 INNER JOIN hero_power T2 ON T1.id = T2.hero_id INNER JOIN superpower T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Wind Control' ORDER BY T1.superhero_name

Question: Identify the gender of the superhero who has the ability of Phoenix Force.
Evidence: ability of Phoenix Force refers to power_name = 'Phoenix Force';
SQL (SQLite): SELECT T4.gender FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.power_name = 'Phoenix Force'
SQL (SQL Server): SELECT T4.gender FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.power_name = 'Phoenix Force'
SQL (Oracle): SELECT T4.gender FROM superhero T1 INNER JOIN hero_power T2 ON T1.id = T2.hero_id INNER JOIN superpower T3 ON T2.power_id = T3.id INNER JOIN gender T4 ON T1.gender_id = T4.id WHERE T3.power_name = 'Phoenix Force'
Database: superhero

Question: Which publisher created more superheroes: DC or Marvel Comics? Find the difference in the number of superheroes.
Evidence: DC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; difference = SUBTRACT(SUM(publisher_name = 'DC Comics'), SUM(publisher_name = 'Marvel Comics'));
SQL (SQLite): SELECT SUM(CASE WHEN T2.publisher_name = 'DC Comics' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id
SQL (SQL Server): SELECT SUM(CASE WHEN T2.publisher_name = 'DC Comics' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) AS _agg1 FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id
SQL (Oracle): SELECT SUM(CASE WHEN T2.publisher_name = 'DC Comics' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) - SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) FROM superhero T1 INNER JOIN publisher T2 ON T1.publisher_id = T2.id
Database: codebase_community

Question: Which user has a higher reputation, Harlan or Jarrod Dixon?
Evidence: "Harlan" and "Jarrod Dixon" are both DisplayName; highest reputation refers to Max(Reputation)
SQL (SQLite): SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )
SQL (SQL Server): SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) AS _agg1 FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )
SQL (Oracle): SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )

Question: Please list the display names of all the users whose accounts were created in the year 2011.
Evidence: account created in the year 2011 refers to year(CreationDate) = 2011
SQL (SQLite): SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'
SQL (SQL Server): SELECT DisplayName FROM users WHERE YEAR(CreationDate) = '2011'
SQL (Oracle): SELECT DisplayName FROM users WHERE SUBSTR(CreationDate, 1, 4) = '2011'

Question: How many users last accessed the website after 2014/9/1?
Evidence: last accessed after 2014/9/1 refers to LastAccessDate > '2014-09-01'
SQL (SQLite): SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'
SQL (SQL Server): SELECT COUNT(Id) AS _agg1 FROM users WHERE CONVERT(DATE, LastAccessDate) > '2014-09-01'
SQL (Oracle): SELECT COUNT(Id) FROM users WHERE SUBSTR(LastAccessDate, 1, 10) > '2014-09-01'

Question: Who is the owner of the post "Eliciting priors from experts"?
Evidence: "Eliciting priors from experts" is the Title of post; owner refers to DisplayName
SQL (SQLite): SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'
SQL (SQL Server): SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'
SQL (Oracle): SELECT T2.DisplayName FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'

Question: How many posts does the user csgillespie own?
Evidence: "csgillespie" is the DisplayName of user
SQL (SQLite): SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
SQL (SQL Server): SELECT COUNT(T1.id) AS _agg1 FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
SQL (Oracle): SELECT COUNT(T1.id) FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
Database: codebase_community

Question: What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"?
Evidence: "Examples for teaching: Correlation does not mean causation" is the Title of post; user who last edited refers to LastEditorUserId
SQL (SQLite): 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'
SQL (SQL Server): 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'
SQL (Oracle): SELECT T2.DisplayName FROM posts T1 INNER JOIN users T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'

Question: Among the posts owned by an elder user, how many of them have a score of over 19?
Evidence: elder users refers to Age > 65; Score of over 19 refers to Score > = 20
SQL (SQLite): 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
SQL (SQL Server): SELECT COUNT(T1.Id) AS _agg1 FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65
SQL (Oracle): SELECT COUNT(T1.Id) FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65

Question: From which post is the tag "bayesian" excerpted from? Please give the body of the post.
Evidence: "bayesian" is the TagName; excerpt from refers to ExcerptPostId
SQL (SQLite): SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'
SQL (SQL Server): SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'
SQL (Oracle): SELECT T2.Body FROM tags T1 INNER JOIN posts T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'

Question: What is the average score of the posts owned by the user csgillespie?
Evidence: "csgillespie" is the DisplayName of user; average score refers to AVG(Score)
SQL (SQLite): SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
SQL (SQL Server): SELECT AVG(TRY_CAST(T1.Score AS FLOAT)) AS _agg1 FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
SQL (Oracle): SELECT AVG(T1.Score) FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
Database: codebase_community

Question: Among the posts with a score of over 5, what is the percentage of them being owned by an elder user?
Evidence: score of over 5 refers to Score > 5; elder user refers to Age > 65; percentage = Divide (Count(Id where Age>65), Count(Id)) * 100
SQL (SQLite): 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 > 5
SQL (SQL Server): SELECT TRY_CAST(SUM(IIF(T2.Age > 65, TRY_CAST(1 AS FLOAT), 0.0)) AS FLOAT) * 100 / COUNT(T1.Id) AS _agg1 FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5
SQL (Oracle): SELECT CAST(SUM(CASE WHEN T2.Age > 65 THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(T1.Id) FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5

Question: 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?
Evidence: 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'
SQL (SQLite): 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
SQL (SQL Server): 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
SQL (Oracle): SELECT T1.FavoriteCount FROM posts T1 INNER JOIN comments T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025

Question: User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished?
Evidence: 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
SQL (SQLite): 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'
SQL (SQL Server): 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'
SQL (Oracle): SELECT CASE WHEN T2.ClosedDate IS NULL THEN 'NOT well-finished' ELSE 'well-finished' END AS resylt FROM comments T1 INNER JOIN posts T2 ON T1.PostId = T2.Id WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0'
Database: codebase_community

Question: For the user with the display name of "Tiago Pasqualini", how many posts did he/she own?
Evidence: "Tiago Pasqualini" is the DisplayName;
SQL (SQLite): SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'
SQL (SQL Server): SELECT COUNT(T1.Id) AS _agg1 FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'
SQL (Oracle): SELECT COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'

Question: Provide the display name of the user who made the vote No.6347.
Evidence: vote no. 6347 refers to Id = '6347'
SQL (SQLite): SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347
SQL (SQL Server): SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347
SQL (Oracle): SELECT T1.DisplayName FROM users T1 INNER JOIN votes T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347

Question: For the user No.24, how many times is the number of his/her posts compared to his/her votes?
Evidence: user no. 24 refers to UserId = OwnerUserId = '24'; times of his/her post than votes = Divide (Count(post.Id), Count(votes.Id))
SQL (SQLite): SELECT CAST(COUNT(DISTINCT 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
SQL (SQL Server): SELECT TRY_CAST(COUNT(DISTINCT T2.Id) AS FLOAT) / COUNT(DISTINCT T1.Id) AS _agg1 FROM votes AS T1 INNER JOIN posts AS T2 ON T1.UserId = T2.OwnerUserId WHERE T1.UserId = 24
SQL (Oracle): SELECT CAST(COUNT(DISTINCT T2.Id) AS BINARY_DOUBLE) / COUNT(DISTINCT T1.Id) FROM votes T1 INNER JOIN posts T2 ON T1.UserId = T2.OwnerUserId WHERE T1.UserId = 24

Question: How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get?
Evidence: "Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer" is the Title of post; views refers to ViewCount
SQL (SQLite): SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'
SQL (SQL Server): SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'
SQL (Oracle): SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'

Question: Write the contents of comments with a score of 17.
Evidence: score of 17 refers to Score = 17; contents of comments refers to Text
SQL (SQLite): SELECT Text FROM comments WHERE Score = 17
SQL (SQL Server): SELECT Text FROM comments WHERE Score = 17
SQL (Oracle): SELECT Text FROM comments WHERE Score = 17
Database: codebase_community

Question: Name the user that commented 'thank you user93!'
Evidence: "thank you user93" is the Text of comment; user refers to DisplayName
SQL (SQLite): SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'
SQL (SQL Server): SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'
SQL (Oracle): SELECT T1.DisplayName FROM users T1 INNER JOIN comments T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'

Question: Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?
Evidence: "Understanding what Dassault iSight is doing?" is the Title of post; user refers to DisplayName;
SQL (SQLite): 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?'
SQL (SQL Server): 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?'
SQL (Oracle): SELECT T1.DisplayName, T1.Reputation FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'

Question: Who is the owner of the post titled 'Open source tools for visualizing multi-dimensional data?'
Evidence: 'Open source tools for visualizing multi-dimensional data' is the Title of Post; owner refers to DisplayName;
SQL (SQLite): 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?'
SQL (SQL Server): 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?'
SQL (Oracle): SELECT T2.DisplayName FROM posts T1 INNER JOIN users T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?'

Question: 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?'
Evidence: "Why square the difference instead of taking the absolute value in standard deviation?" is the Title of post;
SQL (SQLite): 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?'
SQL (SQL Server): 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?'
SQL (Oracle): SELECT T2."COMMENT" FROM posts T1 INNER JOIN postHistory T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'