Database containing superhero information including powers, attributes, and publishers.
| Column Name | Description |
|---|---|
id |
- |
superhero_name |
- |
full_name |
- |
gender_id |
- |
eye_colour_id |
- |
hair_colour_id |
- |
skin_colour_id |
- |
race_id |
- |
publisher_id |
- |
alignment_id |
- |
height_cm |
- |
weight_kg |
- |
| Column Name | Description |
|---|---|
id |
- |
gender |
- |
| Column Name | Description |
|---|---|
id |
- |
colour |
- |
| Column Name | Description |
|---|---|
id |
- |
race |
- |
| Column Name | Description |
|---|---|
id |
- |
publisher_name |
- |
| Column Name | Description |
|---|---|
id |
- |
alignment |
- |
| Column Name | Description |
|---|---|
id |
- |
power_name |
- |
| Column Name | Description |
|---|---|
id |
- |
attribute_name |
- |
| Column Name | Description |
|---|---|
hero_id |
- |
power_id |
- |
| Column Name | Description |
|---|---|
hero_id |
- |
attribute_id |
- |
attribute_value |
- |
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'
Abomination refers to superhero_name = 'Abomination'; superpower refers to power_name;
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'
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 T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id WHERE T1.superhero_name = 'Apocalypse'
Apocalypse refers to superhero_name = 'Apocalypse'; colour of skin refers to colour where skin_colour_id = colour.id
SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
vampire heroes refers to race = 'Vampire';
SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
who refers to superhero_name; tallest superhero refers to MAX(height_cm);