question_id
int32
0
128
db_id
stringclasses
1 value
question
stringlengths
23
196
evidence
stringlengths
0
264
sql
stringlengths
47
335
view_name
stringclasses
2 values
iql_filters
stringlengths
23
84
iql_filters_unsupported
bool
2 classes
iql_aggregation
stringclasses
8 values
iql_aggregation_unsupported
bool
2 classes
iql_context
bool
1 class
difficulty
stringclasses
3 values
0
superhero
Please list all the superpowers of 3-D Man.
3-D Man refers to superhero_name = '3-D Man'; superpowers refers to power_name
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'
null
null
false
null
false
false
simple
1
superhero
How many superheroes have the super power of "Super Strength"?
super power of "Super Strength" refers to power_name = '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'
SuperheroView
null
true
count_superheroes()
false
false
simple
2
superhero
Among the superheroes with the super power of "Super Strength", how many of them have a height of over 200cm?
super power of "Super Strength" refers to power_name = 'Super Strength'; a height of over 200cm refers to height_cm > 200
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
SuperheroView
null
true
count_superheroes()
false
false
moderate
3
superhero
Please list the full names of all the superheroes with over 15 super powers.
15 super powers refers to COUNT(full_name) > 15
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
SuperheroView
null
true
null
false
false
simple
4
superhero
How many superheroes have blue eyes?
blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id;
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue'
SuperheroView
filter_by_eye_colour("Blue")
false
count_superheroes()
false
false
simple
5
superhero
What is the colour of Apocalypse's skin?
Apocalypse refers to superhero_name = 'Apocalypse'; colour of skin refers to colour where skin_colour_id = colour.id
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id WHERE T1.superhero_name = 'Apocalypse'
SuperheroView
filter_by_superhero_name("Apocalypse")
false
null
false
false
simple
6
superhero
Among the superheroes with blue eyes, how many of them have the super power of "Agility"?
blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; super power of "Agility" refers to power_name = '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'
SuperheroView
null
true
count_superheroes()
false
false
moderate
7
superhero
Please list the superhero names of all the superheroes that have blue eyes and blond hair.
blue eyes refers to colour = 'Blue' and eye_colour_id = colour.id; blond hair refers to colour = 'Blond' and hair_colour_id = colour.id; super power of "Agility" refers to power_name = 'Agility'
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'
SuperheroView
filter_by_eye_colour("Blue") AND filter_by_hair_colour("Blond")
false
null
false
false
challenging
8
superhero
How many superheroes are published by Marvel Comics?
published by Marvel Comics refers to publisher_name = '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'
SuperheroView
filter_by_publisher_name("Marvel Comics")
false
count_superheroes()
false
false
simple
9
superhero
Rank heroes published by Marvel Comics by their height in descending order.
name refers to superhero_name; the tallest hero refers to MAX(height_cm); published by Marvel Comics refers to publisher_name = 'Marvel Comics'
SELECT superhero_name, height_cm, RANK() OVER (ORDER BY height_cm DESC) AS HeightRank FROM superhero INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics'
SuperheroView
filter_by_publisher_name("Marvel Comics")
false
null
false
false
moderate
10
superhero
Who is the publisher of Sauron?
the publisher refers to publisher_name; Sauron refers to superhero_name = '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'
PublisherView
null
true
null
false
false
simple
11
superhero
Rank superheroes from Marvel Comics by their eye color popularity, starting with the most common color.
the superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; most common color refers to COUNT(superhero.id) DESC;
SELECT colour.colour AS EyeColor, COUNT(superhero.id) AS Count, RANK() OVER (ORDER BY COUNT(superhero.id) DESC) AS PopularityRank FROM superhero INNER JOIN colour ON superhero.eye_colour_id = colour.id INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics' GROUP BY colour.colour
SuperheroView
filter_by_publisher_name("Marvel Comics")
false
null
false
false
moderate
12
superhero
What is the average height of the superheroes from Marvel Comics?
superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; average height of the superheroes refers to AVG(height_cm)
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'
SuperheroView
filter_by_publisher_name("Marvel Comics")
false
average_height()
false
false
simple
13
superhero
List the superheroes from Marvel Comics who have the super power of 'Super Strength'.
the superheroes from Marvel Comics refers to publisher_name = 'Marvel Comics'; super power of "Super Strength" refers to power_name = 'Super Strength';
SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_power AS T2 INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.id = T2.hero_id)AND EXISTS (SELECT 1 FROM publisher AS T4 WHERE T4.publisher_name = 'Marvel Comics' AND T1.publisher_id = T4.id)
SuperheroView
null
true
null
false
false
challenging
14
superhero
How many superheroes did DC Comics publish?
superheroes that DC Comics published refers to publisher_name = 'DC Comics'
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'
SuperheroView
filter_by_publisher_name("DC Comics")
false
count_superheroes()
false
false
simple
15
superhero
Which publisher published the slowest superhero?
the slowest superhero refers to attribute_name = 'Speed' where MIN(attribute_value); publisher refers to publisher_name
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
PublisherView
null
true
null
false
false
moderate
16
superhero
How many gold-eyed superheroes did Marvel Comics publish?
gold-eyed refers to colour = 'Gold' where eye_colour_id = colour.id; superheroes that Marvel Comics published refers to publisher_name = 'Marvel Comics'
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'
SuperheroView
filter_by_eye_colour("Gold") AND filter_by_publisher_name("Marvel Comics")
false
count_superheroes()
false
false
moderate
17
superhero
What is the publisher's name of Blue Beetle II?
Blue Beetle II refers to superhero_name = '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'
SuperheroView
filter_by_superhero_name("Blue Beetle II")
false
null
false
false
simple
18
superhero
How many superheroes with blonde hair are there?
superheroes with blonde hair refers to colour = 'Blond' where hair_colour_id = colour.id
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond'
SuperheroView
filter_by_hair_colour("Blond")
false
count_superheroes()
false
false
simple
19
superhero
Who is the dumbest superhero?
the dumbest superhero refers to MIN(attribute_value) where attribute_name = 'Intelligence'
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
SuperheroView
null
true
null
false
false
moderate
20
superhero
What is Copycat's race?
Copycat is the superhero_name;
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat'
SuperheroView
filter_by_superhero_name("Copycat")
false
null
false
false
simple
21
superhero
Which superheroes have a durability attribute value of less than 50?
durability of less than 50 refers to attribute_name = 'Durability' AND attribute_value < 50
SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_attribute AS T2 INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Durability' AND T2.attribute_value < 50 AND T1.id = T2.hero_id)
SuperheroView
null
true
null
false
false
simple
22
superhero
What are the names of the superheroes with the power of death touch?
name of superheroes refers to refers to superhero_name; the power of death touch refers to power_name = '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'
SuperheroView
null
true
null
false
false
moderate
23
superhero
How many female superheroes have a strength value of 100?
female refers to gender = 'Female'; strength value of 100 refers to attribute_name = 'Strength' AND attribute_value = 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'
SuperheroView
null
true
count_superheroes()
false
false
moderate
24
superhero
What is the name of the superhero that has the most powers?
name of the superhero refers to superhero_name; superhero that has the most powers refers to MAX(COUNT(superhero_name))
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
SuperheroView
null
true
null
false
false
simple
25
superhero
How many vampire superheroes are there?
vampire superheroes refers to race = 'Vampire'
SELECT COUNT(T1.superhero_name) FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
SuperheroView
filter_by_race("Vampire")
false
count_superheroes()
false
false
simple
26
superhero
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.
published by Marvel Comics refers to publisher_name = 'Marvel Comics'; superheroes who act in their own self-interest or make decisions based on their own moral code refers to alignment = 'Bad'; calculation = MULTIPLY(DIVIDE(SUM(alignment = 'Bad); count(id)), 100)
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'
SuperheroView
filter_by_alignment("Bad")
false
null
true
false
challenging
27
superhero
Between DC and Marvel Comics, which publisher has published more superheroes? Find the difference in the number of superheroes they have published.
DC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = SUBTRACT(SUM(publisher_name = 'Marvel Comics'), SUM(publisher_name = 'DC Comics'))
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
PublisherView
null
false
null
true
false
challenging
28
superhero
Give the publisher ID of Star Trek.
Star Trek is the publisher_name;
SELECT id FROM publisher WHERE publisher_name = 'Star Trek'
PublisherView
filter_by_publisher_name("Star Trek")
false
null
false
false
simple
29
superhero
Calculate the average attribute value of all superheroes.
average attribute value of all superheroes refers to AVG(attribute_value)
SELECT AVG(attribute_value) FROM hero_attribute
null
null
false
null
false
false
simple
30
superhero
What is the total number of superheroes without full name?
superheroes without full name refers to full_name IS NULL
SELECT COUNT(id) FROM superhero WHERE full_name IS NULL
SuperheroView
filter_by_missing_superhero_full_name()
false
count_superheroes()
false
false
simple
31
superhero
What is the eye colour of superhero with superhero ID 75?
eye colour refers to colour where eye_colour_id = colour.id;
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.id = 75
SuperheroView
filter_by_superhero_id(75)
false
null
false
false
simple
32
superhero
Provide the superpowers of the superhero called Deathlok.
superpowers refers to power_name; Deathlok refers to superhero_name = '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'
null
null
false
null
false
false
simple
33
superhero
What is the average weight of all female superheroes?
female refers to gender = 'Female'; average weight refers to AVG(weight_kg)
SELECT AVG(T1.weight_kg) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Female'
SuperheroView
filter_by_gender("Female")
false
average_weight()
false
false
simple
34
superhero
List down at least five superpowers of male superheroes.
male refers to gender = 'Male'; superpowers refers to power_name;
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
null
null
false
null
false
false
moderate
35
superhero
Give the name of the alien superheroes.
alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'
SuperheroView
filter_by_race("Alien")
false
null
false
false
simple
36
superhero
Among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.
height from 170 to 190 refers to height_cm BETWEEN 170 AND 190; no eye color refers to colour = 'No Colour'
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 = 'No Colour'
SuperheroView
filter_by_height_cm_between(170, 190) AND filter_by_eye_colour("No Colour")
false
null
false
false
moderate
37
superhero
What is the superpower of hero ID 56?
superpower refers to hero_power
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
null
null
false
null
false
false
simple
38
superhero
List down at least five full name of Demi-God superheroes.
Demi-God superheroes refers to race = 'Demi-God'
SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Demi-God'
SuperheroView
filter_by_race("Demi-God")
false
null
false
false
simple
39
superhero
How many bad superheroes are there?
bad superheroes refers to alignment_id = Bad
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Bad'
SuperheroView
filter_by_alignment("Bad")
false
count_superheroes()
false
false
simple
40
superhero
Identify the race of the superhero who weighed 169 kg.
weighed 169 kg refers to weight_kg = 169
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.weight_kg = 169
SuperheroView
filter_by_weight_kg(169)
false
null
false
false
simple
41
superhero
Provide the hair colour of the human superhero who is 185 cm tall.
185 cm tall refers to height_cm = 185; human superhero refers to race = 'human'; hair colour refers to colour where hair_colour_id = colour.id;
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'
SuperheroView
filter_by_race("Human") AND filter_by_height_cm(185)
false
null
false
false
moderate
42
superhero
What is the eye clolour of the heaviest superhero?
the heaviest superhero refers to MAX(weight_kg); eye colour refers to colour where eye_colour_id = colour.id;
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
SuperheroView
filter_by_the_heaviest()
false
null
false
false
simple
43
superhero
In superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?
height between 150 to 180 refers to height_cm BETWEEN 150 AND 180; heroes published by Marvel Comics refers to publisher_name = 'Marvel Comics'; calculation = MULTIPLY(DIVIDE(SUM(publisher.id = 13)), COUNT(publisher.id), 100)
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
SuperheroView
filter_by_height_cm_between(150, 180)
false
percentage_of_published_by("Marvel Comics")
false
false
challenging
44
superhero
Among the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.
super hero names refers to superhero_name;male superheros refers to gender = 'Male';Calculation = weight_kg > MULTIPLY(AVG(weight_kg), 0.79)
SELECT T1.superhero_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
SuperheroView
filter_by_gender("Male") AND filter_by_weight_greater_than_percentage_of_average(79)
false
null
false
false
moderate
45
superhero
Which power do superheroes have the most of?
power that superheroes have the most refers to MAX(COUNT(power_name))
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
null
null
false
null
false
false
simple
46
superhero
Indicate the attribute value of superhero Abomination.
Abomination refers to superhero_name = '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'
null
null
false
null
false
false
simple
47
superhero
What are the superpowers of heroes with ID 1?
superpowers refers to power_name; heroes with ID 1 refers to hero_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
null
null
false
null
false
false
simple
48
superhero
How many heroes have stealth power?
stealth power refers to power_name = 'stealth';
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'
SuperheroView
null
true
count_superheroes()
false
false
simple
49
superhero
What is the hero's full name with the highest attribute in strength?
highest attribute in strength refers to MAX(attribute_value) WHERE attribute_name = '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
SuperheroView
null
true
null
false
false
moderate
50
superhero
What is the average of superheroes with no skin colour?
average = DIVIDE(COUNT(superhero.id), SUM(skin_colour_id = 1)); no skin colour refers to skin_colour_id WHERE colour.id = 1;
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
SuperheroView
null
false
average_with_skin_colour("No Colour")
false
false
simple
51
superhero
How many superheroes were published by Dark Horse Comics?
published by Dark Horse Comics refers to publisher_name = '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'
SuperheroView
filter_by_publisher_name("Dark Horse Comics")
false
count_superheroes()
false
false
simple
52
superhero
Which superhero has the most durability published by Dark Horse Comics?
which superhero refers to superhero_name; most durability refers to MAX(attribute_value) WHERE attribute_name = 'durability'; published by Dark Horse Comics refers to publisher_name = '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 DESC LIMIT 1
SuperheroView
null
true
null
false
false
challenging
53
superhero
What is the eyes colour of Abraham Sapien?
eye colour refers to colour.colour where eye_colour_id = colour.id; Abraham Sapien is the full name of superhero;
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'
SuperheroView
filter_by_superhero_full_name("Abraham Sapien")
false
null
false
false
simple
54
superhero
List the name of superheroes with flight power.
name of superheroes refers to superhero_name; flight power refers to power_name = 'Flight';
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'
SuperheroView
null
true
null
false
false
simple
55
superhero
List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.
eyes refers to eye_colour_id; hair refers to hair_colour_id; skin colour refers to skin_colour_id; female superheroes refers to gender = 'Female'; published by Dark Horse Comics refers to publisher_name = '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'
SuperheroView
filter_by_publisher_name("Dark Horse Comics") AND filter_by_gender("Female")
false
null
false
false
challenging
56
superhero
Which superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.
which superhero refers to superhero_name; the same eyes, hair and skin colour refers to hair_colour_id = skin_colour_id AND hair_colour_id = eye_colour_id; publisher refers to publisher_name;
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
SuperheroView
filter_by_same_hair_and_eye_colour() AND filter_by_same_eye_and_skin_colour()
false
null
false
false
challenging
57
superhero
Which group does superhero A-Bomb belong to?
group refers to race; A-Bomb refers to superhero_name = 'A-Bomb';
SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'A-Bomb'
SuperheroView
filter_by_superhero_name("A-Bomb")
false
null
false
false
simple
58
superhero
What is the percentage of blue female superheroes among all female superheroes?
percentage = MULTIPLY(DIVIDE(SUM(colour = 'Blue' WHERE gender = 'Female'), COUNT(gender = 'Female')), 100); blue refers to the color = 'Blue' WHERE skin_colour_id = colour.id; female refers to gender = 'Female';
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'
SuperheroView
filter_by_gender("Female")
false
percentage_with_eye_colour("Blue")
false
false
challenging
59
superhero
Provide the hero name and race of Charles Chandler.
hero name refers to superhero_name; Charles Chandler is the full name of superhero;
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'
SuperheroView
filter_by_superhero_full_name("Charles Chandler")
false
null
false
false
simple
60
superhero
What is the gender of Agent 13 hero?
Agent 13 hero refers to superhero_name = 'Agent 13';
SELECT T2.gender FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T1.superhero_name = 'Agent 13'
SuperheroView
filter_by_superhero_name("Agent 13")
false
null
false
false
simple
61
superhero
Provide superheroes' names who have the adaptation power.
adaptation power refers to power_name = 'Adaptation';
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'
SuperheroView
null
true
null
false
false
simple
62
superhero
How many powers does Amazo hero have?
Amazo hero refers to superhero_name = 'Amazo';
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'
null
null
false
null
false
false
simple
63
superhero
List the powers of Hunter Zolomon.
Hunter Zolomon is the full name of superhero; list the powers refers to power_name;
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'
null
null
false
null
false
false
simple
64
superhero
Provide the heights of the heroes whose eye colours are amber.
heights of the heroes refers to height_cm; eye colours are amber refers to colour.colour = 'Amber' WHERE eye_colour_id = colour.id;
SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'
SuperheroView
filter_by_eye_colour("Amber")
false
null
false
false
simple
65
superhero
List the heroes' names whose eyes and hair colours are both black.
heroes' names refers to superhero_name; eyes and hair colours are both black refers to eye_colour_id AND hair_colour_id WHERE colour.colour = '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'
SuperheroView
filter_by_eye_colour("Black") AND filter_by_hair_colour("Black")
false
null
false
false
moderate
66
superhero
Provide the eye colours of the heroes whose skin colours are gold.
skin colours are gold refers to colour.colour = 'Gold' WHERE skin_colour_id = colour.id;
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'
SuperheroView
filter_by_skin_colour("Gold")
false
null
false
false
simple
67
superhero
Provide the full names of vampire heroes.
vampire heroes refers to race = 'Vampire';
SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
SuperheroView
filter_by_power_name("Vampire")
false
null
false
false
simple
68
superhero
Describe the names of neutral alignment superheroes.
names of superheroes refers to superhero_name; neutral alignment refers to alignment = 'Neutral';
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
SuperheroView
filter_by_alignment("Neutral")
false
null
false
false
simple
69
superhero
How many heroes have the highest attribute value in strength?
highest attribute value in strength refers to MAX(attribute_value) WHERE attribute_name = '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 )
null
null
false
null
false
false
moderate
70
superhero
What are the race and alignment of Cameron Hicks?
Cameron Hicks refers to superhero_name = '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'
SuperheroView
filter_by_superhero_name("Cameron Hicks")
false
null
false
false
simple
71
superhero
How many percent of female heroes were published by Marvel Comics?
percent = MULTIPLY(DIVIDE(SUM(gender = 'Female' WHERE publisher_name = 'Marvel Comics'), COUNT(publisher_name = 'Marvel Comics')), 100); female heroes refers to gender = 'Female'; Marvel Comics refers to publisher_name = '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'
SuperheroView
filter_by_gender("Female")
false
percentage_of_published_by("Marvel Comics")
false
false
challenging
72
superhero
Find the average weight of the heroes who are aliens.
average = AVG(weight_kg); aliens refers to race = 'Alien';
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'
SuperheroView
filter_by_race("Alien")
false
average_weight()
false
false
simple
73
superhero
Calculate the difference between Emil Blonsky's weight and Charles Chandler's weight.
difference = SUBTRACT(SUM(weight_kg WHERE full_name = 'Emil Blonsky'), SUM(weight_kg WHERE full_name = 'Charles Chandler')); Emil Blonsky is the full name of superhero; Charles Chandler is the full name of superhero;
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
SuperheroView
null
false
weight_difference_between("Emil Blonsky", "Charles Chandler")
false
false
moderate
74
superhero
Calculate the average height for each superhero.
average = DIVIDE(SUM(height_cm), COUNT(all heros));
SELECT CAST(SUM(height_cm) AS REAL) / COUNT(id) FROM superhero
SuperheroView
null
false
average_height()
false
false
simple
75
superhero
What is Abomination's superpower?
Abomination refers to superhero_name = 'Abomination'; superpower refers to power_name;
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'
null
null
true
null
false
false
simple
76
superhero
Among the superheroes with the race of god/eternal, how many of them are male
race "god/eternal" refers to race_id = 21; male refers to gender.id = 1
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
SuperheroView
filter_by_race("God / Eternal") AND filter_by_gender("Male")
false
count_superheroes()
false
false
simple
77
superhero
Which hero was the fastest?
which hero refers to superhero_name; fastest refers to MAX(attribute_value) WHERE attribute_name = 'Speed';
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
SuperheroView
null
true
null
false
false
moderate
78
superhero
How many superheroes have a neutral alignment?
neutral alignment refers to alignment_id = 3;
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
SuperheroView
filter_by_alignment("Neutral")
false
count_superheroes()
false
false
simple
79
superhero
State all of 3-D Man's attributes along with their values.
3-D Man is the superhero_name. attributes refers to attribute_name; values refers to attribute_value;
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'
null
null
false
null
false
false
moderate
80
superhero
Which superheroes have blue eyes with brown hair?
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;
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'
SuperheroView
filter_by_eye_colour("Blue") AND filter_by_hair_colour("Brown")
false
null
false
false
moderate
81
superhero
What is the publisher for Hawkman, Karate Kid and Speedy?
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';
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')
PublisherView
null
true
null
false
false
moderate
82
superhero
How many superheroes didn't have any publisher?
didn't have any publisher refers to publisher.id = 1;
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.id = 1
SuperheroView
filter_by_missing_publisher()
false
count_superheroes()
false
false
simple
83
superhero
Calculate the percentage of superheroes with blue eyes.
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;
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
SuperheroView
null
false
percentage_with_eye_colour("Blue")
false
false
moderate
84
superhero
Find the ratio between male superheroes and female superheroes.
ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2)); male superheroes refers to gender = 'Female'; female superheroes refers to gender = 'Male';
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
SuperheroView
null
false
null
true
false
moderate
85
superhero
Who is the tallest superhero?
who refers to superhero_name; tallest superhero refers to MAX(height_cm);
SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
SuperheroView
filter_by_the_tallest()
false
null
false
false
simple
86
superhero
What is the power ID of cryokinesis?
power ID refers to superpower.id; cryokinesis refers to power_name = 'cryokinesis';
SELECT id FROM superpower WHERE power_name = 'Cryokinesis'
null
null
false
null
false
false
simple
87
superhero
Provide the name of superhero with superhero ID 294.
name of superhero refers to superhero_name; superhero ID 294 refers to superhero.id = 294;
SELECT superhero_name FROM superhero WHERE id = 294
SuperheroView
filter_by_superhero_id(294)
false
null
false
false
simple
88
superhero
List the full names of superheroes with missing weight.
missing weight refers to weight_kg = 0 OR weight_kg = NULL;
SELECT DISTINCT full_name FROM superhero WHERE full_name IS NOT NULL AND (weight_kg IS NULL OR weight_kg = 0)
SuperheroView
filter_by_missing_weight()
false
null
false
false
simple
89
superhero
Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.
eye colour refers to colour.colour where eye_colour_id = colour.id; Karen Beecher-Duncan is the full name of superhero;
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'
SuperheroView
filter_by_superhero_full_name("Karen Beecher-Duncan")
false
null
false
false
simple
90
superhero
What is the superpowers of the superhero has Helen Parr as their full name?
superpowers refers to power_name; Helen Parr is the full name of superhero;
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 = 'Helen Parr'
null
null
false
null
false
false
simple
91
superhero
Find the race of the superhero who weighs 108kg and is 188cm tall.
weighs 108kg refers to weight_kg = 108; 188cm tall refers to height_cm = 188;
SELECT DISTINCT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.weight_kg = 108 AND T1.height_cm = 188
SuperheroView
filter_by_weight_kg(108) AND filter_by_height_cm(188)
false
null
false
false
simple
92
superhero
What is the publisher name of the superhero ID 38?
superhero ID 38 refers to superhero.id = 38;
SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.id = 38
SuperheroView
filter_by_superhero_id(38)
false
null
false
false
simple
93
superhero
What is the race of the superhero with maximum attribute value?
maximum attribute value refers to MAX(attribute_value);
SELECT T3.race FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN race AS T3 ON T1.race_id = T3.id ORDER BY T2.attribute_value DESC LIMIT 1
SuperheroView
null
true
null
false
false
simple
94
superhero
Give the alignment and superpowers of the superhero named Atom IV.
superpowers refers to power_name;
SELECT T4.alignment, 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 alignment AS T4 ON T1.alignment_id = T4.id WHERE T1.superhero_name = 'Atom IV'
null
null
true
null
false
false
simple
95
superhero
List down at least five full names of superheroes with blue eyes.
blue eyes refers to colour.colour = 'Blue' WHERE eye_colour_id = colour.id; Name of superheroes refers to superhero_name;
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue' LIMIT 5
SuperheroView
filter_by_eye_colour("Blue")
false
null
false
false
simple
96
superhero
Calculate the average attribute value of all neutral superheroes.
average = AVG(attribute_value); neutral superheroes refers to alignment_id = 3;
SELECT AVG(T1.attribute_value) FROM hero_attribute AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id INNER JOIN alignment AS T3 ON T2.alignment_id = T3.id WHERE T3.alignment = 'Neutral'
null
null
false
null
false
false
simple
97
superhero
List the skin colour of the superheroes with 100 attribute value.
skin colour refers to colour.colour where skin_colour_id = colour.id; 100 attribute value refers to attribute_value = 100;
SELECT DISTINCT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id WHERE T3.attribute_value = 100
SuperheroView
null
true
null
false
false
moderate
98
superhero
Count the good female superheroes.
good refers to alignment.id = 1; female refers to gender.id = 2;
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment = 'Good' AND T3.gender = 'Female'
SuperheroView
filter_by_alignment("Good") AND filter_by_gender("Female")
false
count_superheroes()
false
false
simple
99
superhero
Provide the names of superheroes with attribute value between 75 to 80.
names of superheroes refers to superhero_name; attribute value between 75 to 80 refers to attribute_value BETWEEN 75 AND 80;
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id WHERE T2.attribute_value BETWEEN 75 AND 80
SuperheroView
null
true
null
false
false
simple
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
33
Edit dataset card