question
stringlengths
23
286
sql
stringlengths
29
1.45k
db_id
stringclasses
11 values
prompt
stringlengths
1.09k
6.84k
question_id
int64
0
1.53k
difficulty
stringclasses
3 values
Identify the number of posts that offer a bounty amount over 30.
SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
700
simple
Among all the posts posted by the most influential user, identify the percentage with a score above 50.
SELECT CAST(SUM(CASE WHEN T2.Score >= 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId INNER JOIN ( SELECT MAX(Reputation) AS max_reputation FROM users ) T3 ON T1.Reputation = T3.max_reputation
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
701
challenging
How many posts have a score less than 20?
SELECT COUNT(id) FROM posts WHERE Score < 20
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
702
simple
Among the tags with tag ID below 15, how many of them have 20 count of posts and below?
SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
703
simple
What is the excerpt post ID and wiki post ID of the tag named sample?
SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
704
simple
Give the user's reputation and up vote number of the user that commented "fine, you win :)".
SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
705
simple
Give the texts commented on the post about linear regression.
SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
706
simple
Among the posts with views ranging from 100 to 150, what is the comment with the highest score?
SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
707
moderate
List the creation date and age of the user that commented with webiste.
SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
708
moderate
In comments with 0 score, how many of the posts have view count lower than 5?
SELECT COUNT(T1.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T2.Score = 0
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
709
simple
In posts with 1 comment, how many of the comments have 0 score?
SELECT COUNT(T1.id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.CommentCount = 1 AND T2.Score = 0
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
710
simple
Among products comments with 0 score, what is the total number of users ages 40 years old?
SELECT COUNT(T1.id) FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score = 0 AND T2.Age = 40
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
711
simple
What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"?
SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
712
simple
What is the up vote number of the user that commented "R is also lazy evaluated."?
SELECT T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'R is also lazy evaluated.'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
713
simple
List the comments commented by the user with a username of Harvey Motulsky.
SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
714
simple
In comments with score between 1 to 5, list down the display names of the users with 0 down votes.
SELECT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
715
simple
Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?
SELECT CAST(SUM(IIF(T1.UpVotes = 0, 1, 0)) AS REAL) / COUNT(T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10
codebase_community
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #badges (Id integer, UserId integer, Name text, Date datetime, , PRIMARY KEY(Id), FOREIGN KEY(UserId) REFERENCES users(Id)) #comments (Id in...
716
moderate
Please list all the superpowers of 3-D Man.
SELECT T3.power_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 T1.superhero_name = '3-D Man'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
717
simple
How many superheroes have the super power of "Super Strength"?
SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Super Strength'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
718
simple
Among the superheroes with the super power of "Super Strength", how many of them have a height of over 200cm?
SELECT COUNT(T1.id) 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 = 'Super Strength' AND T1.height_cm > 200
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
719
moderate
Please list the full names of all the superheroes with over 15 super powers.
SELECT DISTINCT T1.full_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id GROUP BY T1.full_name HAVING COUNT(T2.power_id) > 15
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
720
simple
How many superheroes have blue eyes?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
721
simple
What is the colour of Apocalypse's skin?
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id WHERE T1.superhero_name = 'Apocalypse'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
722
simple
Among the superheroes with blue eyes, how many of them have the super power of "Agility"?
SELECT COUNT(T1.id) 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 colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
723
moderate
Please list the superhero names of all the superheroes that have blue eyes and blond hair.
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 = 'Blond'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
724
challenging
How many superheroes are published by Marvel Comics?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
725
simple
Please give the full name of the tallest hero published by Marvel Comics.
SELECT T1.full_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics' ORDER BY T1.height_cm DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
726
moderate
Who is the publisher of Sauron?
SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Sauron'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
727
simple
Among the superheroes from Marvel Comics, how many of them have blue eyes?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Blue'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
728
moderate
What is the average height of the superheroes from Marvel Comics?
SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
729
simple
Among the superheroes from Marvel Comics, what is the percentage of those who have the super power of "Super Strength"?
SELECT CAST(COUNT(CASE WHEN T3.power_name = 'Super Strength' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) 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 publisher AS T4 ON T1.publisher_id = T4.id WHERE T4.publisher_name = '...
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
730
challenging
How many superheroes did DC Comics publish?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'DC Comics'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
731
simple
Which publisher published the slowest superhero?
SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id INNER JOIN attribute AS T4 ON T3.attribute_id = T4.id WHERE T4.attribute_name = 'Speed' ORDER BY T3.attribute_value LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
732
moderate
How many gold-eyed superheroes did Marvel Comics publish?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
733
moderate
What is the publisher's name of Blue Beetle II?
SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Blue Beetle II'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
734
simple
How many superheroes with blonde hair are there?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
735
simple
Who is the dumbest superhero?
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Intelligence' ORDER BY T2.attribute_value LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
736
moderate
What is Copycat's race?
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
737
simple
How many superheroes have durability of less than 50?
SELECT COUNT(T1.hero_id) FROM hero_attribute AS T1 INNER JOIN attribute AS T2 ON T1.attribute_id = T2.id WHERE T2.attribute_name = 'Durability' AND T1.attribute_value < 50
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
738
simple
What are the names of the superheroes with the power of death touch?
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 = 'Death Touch'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
739
moderate
How many female superheroes have a strength value of 100?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
740
moderate
What is the name of the superhero that has the most powers?
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id GROUP BY T1.superhero_name ORDER BY COUNT(T2.hero_id) DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
741
simple
How many vampire superheroes are there?
SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
742
simple
What is the percentage of superheroes who act in their own self-interest or make decisions based on their own moral code? Indicate how many of the said superheroes were published by Marvel Comics.
SELECT (CAST(COUNT(*) AS REAL) * 100 / (SELECT COUNT(*) FROM superhero)), CAST(SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) AS REAL) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T3.id = T1.alignment_id WHERE T3.alignment = 'Bad'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
743
challenging
Between DC and Marvel Comics, which publisher has published more superheroes? Find the difference in the number of superheroes they have published.
SELECT SUM(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.publisher_name = 'DC Comics' THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
744
challenging
Give the publisher ID of Star Trek.
SELECT id FROM publisher WHERE publisher_name = 'Star Trek'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
745
simple
Calculate the average attribute value of all superheroes.
SELECT AVG(attribute_value) FROM hero_attribute
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
746
simple
What is the total number of superheroes without full name?
SELECT COUNT(id) FROM superhero WHERE full_name IS NULL
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
747
simple
What is the eye colour of superhero with superhero ID 75?
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.id = 75
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
748
simple
Provide the superpowers of the superhero called Deathlok.
SELECT T3.power_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 T1.superhero_name = 'Deathlok'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
749
simple
What is the average weight of all female superheroes?
SELECT AVG(T1.weight_kg) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Female'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
750
simple
List down at least five superpowers of male superheroes.
SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender = 'Male' LIMIT 5
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
751
moderate
Give the name of the alien superheroes.
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
752
simple
Among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.
SELECT DISTINCT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.height_cm BETWEEN 170 AND 190 AND T2.colour LIKE 'No Colour'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
753
moderate
What is the superpower of hero ID 56?
SELECT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T1.hero_id = 56
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
754
simple
List down at least five full name of Demi-God superheroes.
SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Demi-God'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
755
simple
How many bad superheroes are there?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Bad'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
756
simple
Identify the race of the superhero who weighed 169 kg.
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.weight_kg = 169
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
757
simple
Provide the hair colour of the human superhero who is 185 cm tall.
SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
758
moderate
What is the eye clolour of the heaviest superhero?
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id ORDER BY T1.weight_kg DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
759
simple
In superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?
SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.height_cm BETWEEN 150 AND 180
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
760
challenging
Among the male superheroes, list the full names of superheroes with weight greater than the 79% average weight of all superheroes.
SELECT T1.full_name FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Male' AND T1.weight_kg * 100 > ( SELECT AVG(weight_kg) FROM superhero ) * 79
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
761
moderate
Which power do superheroes have the most of?
SELECT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id GROUP BY T2.power_name ORDER BY COUNT(T1.hero_id) DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
762
simple
Indicate the attribute value of superhero Abomination.
SELECT T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id WHERE T1.superhero_name = 'Abomination'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
763
simple
What are the superpowers of heroes with ID 1?
SELECT DISTINCT T2.power_name FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T1.hero_id = 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
764
simple
How many heroes have stealth power?
SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Stealth'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
765
simple
What is the hero's full name with the highest attribute in strength?
SELECT T1.full_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Strength' ORDER BY T2.attribute_value DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
766
moderate
What is the average of superheroes with no skin colour?
SELECT CAST(COUNT(*) AS REAL) / SUM(CASE WHEN T2.id = 1 THEN 1 ELSE 0 END) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
767
simple
How many superheroes were published by Dark Horse Comics?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Dark Horse Comics'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
768
simple
Which superhero has the most durability published by Dark Horse Comics?
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T3.id = T2.attribute_id INNER JOIN publisher AS T4 ON T4.id = T1.publisher_id WHERE T4.publisher_name = 'Dark Horse Comics' AND T3.attribute_name = 'Durability' ORDER BY T2.attribute_value D...
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
769
challenging
What is the eyes colour of Abraham Sapien?
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Abraham Sapien'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
770
simple
List the name of superheroes with flight power.
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 = 'Flight'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
771
simple
List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.
SELECT T1.eye_colour_id, T1.hair_colour_id, T1.skin_colour_id FROM superhero AS T1 INNER JOIN publisher AS T2 ON T2.id = T1.publisher_id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T2.publisher_name = 'Dark Horse Comics' AND T3.gender = 'Female'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
772
challenging
Which superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.
SELECT T1.superhero_name, T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.eye_colour_id = T1.hair_colour_id AND T1.eye_colour_id = T1.skin_colour_id
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
773
challenging
Which group does superhero A-Bomb belong to?
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'A-Bomb'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
774
simple
What is the percentage of blue female superheroes among all female superheroes?
SELECT CAST(COUNT(CASE WHEN T3.colour = 'Blue' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T2.gender = 'Female'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
775
challenging
Provide the hero name and race of Charles Chandler.
SELECT T1.superhero_name, T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.full_name = 'Charles Chandler'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
776
simple
What is the gender of Agent 13 hero?
SELECT T2.gender FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T1.superhero_name = 'Agent 13'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
777
simple
Provide superheroes' names who have the adaptation power.
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 = 'Adaptation'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
778
simple
How many powers does Amazo hero have?
SELECT COUNT(T1.power_id) FROM hero_power AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id WHERE T2.superhero_name = 'Amazo'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
779
simple
List the powers of Hunter Zolomon.
SELECT T3.power_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 T1.full_name = 'Hunter Zolomon'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
780
simple
Provide the heights of the heroes whose eye colours are amber.
SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
781
simple
List the heroes' names whose eyes and hair colours are both black.
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id AND T1.hair_colour_id = T2.id WHERE T2.colour = 'Black'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
782
moderate
Provide the eye colours of the heroes whose skin colours are gold.
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.skin_colour_id = T3.id WHERE T3.colour = 'Gold'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
783
simple
Provide the full names of vampire heroes.
SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
784
simple
Describe the names of neutral alignment superheroes.
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
785
simple
How many heroes have the highest attribute value in strength?
SELECT COUNT(T1.hero_id) FROM hero_attribute AS T1 INNER JOIN attribute AS T2 ON T1.attribute_id = T2.id WHERE T2.attribute_name = 'Strength' AND T1.attribute_value = ( SELECT MAX(attribute_value) FROM hero_attribute )
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
786
moderate
What are the race and alignment of Cameron Hicks?
SELECT T2.race, T3.alignment FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN alignment AS T3 ON T1.alignment_id = T3.id WHERE T1.superhero_name = 'Cameron Hicks'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
787
simple
How many percent of female heroes were published by Marvel Comics?
SELECT CAST(COUNT(CASE WHEN T2.publisher_name = 'Marvel Comics' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T3.gender = 'Female'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
788
challenging
Find the average weight of the heroes who are aliens.
SELECT CAST(SUM(T1.weight_kg) AS REAL) / COUNT(T1.id) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
789
simple
Calculate the difference between Emil Blonsky's weight and Charles Chandler's weight.
SELECT ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Emil Blonsky' ) - ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Charles Chandler' ) AS CALCULATE
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
790
moderate
Calculate the average height for each superhero.
SELECT CAST(SUM(height_cm) AS REAL) / COUNT(id) FROM superhero
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
791
simple
What is Abomination's superpower?
SELECT T3.power_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 T1.superhero_name = 'Abomination'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
792
simple
Among the superheroes with the race of god/eternal, how many of them are male
SELECT COUNT(*) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN gender AS T3 ON T3.id = T1.gender_id WHERE T1.race_id = 21 AND T1.gender_id = 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
793
simple
Which hero was the fastest?
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Speed' ORDER BY T2.attribute_value DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
794
moderate
How many superheroes have a neutral alignment?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
795
simple
State all of 3-D Man's attributes along with their values.
SELECT T3.attribute_name, T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = '3-D Man'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
796
moderate
Which superheroes have blue eyes with brown hair?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
797
moderate
What is the publisher for Hawkman, Karate Kid and Speedy?
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')
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
798
moderate
How many superheroes didn't have any publisher?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.id = 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
799
simple