db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
superhero | 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 | Question: how many superheroes have durability of less than 50? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin... | how many superheroes have durability of less than 50? |
superhero | 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' | Question: what are the names of the superheroes with the power of death touch? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_... | what are the names of the superheroes with the power of death touch? |
superhero | 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' | Question: how many female superheroes have a strength value of 100? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | how many female superheroes have a strength value of 100? |
superhero | 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 | Question: what is the name of the superhero that has the most powers? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id... | what is the name of the superhero that has the most powers? |
superhero | select count(t1.superhero_name) from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t2.race = 'vampire' | Question: how many vampire superheroes are there? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, ra... | how many vampire superheroes are there? |
superhero | 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' | Question: 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. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender... | 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. |
superhero | 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 | Question: between dc and marvel comics, which publisher has published more superheroes? find the difference in the number of superheroes they have published. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, ra... | between dc and marvel comics, which publisher has published more superheroes? find the difference in the number of superheroes they have published. |
superhero | select id from publisher where publisher_name = 'star trek' | Question: give the publisher id of star trek. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_i... | give the publisher id of star trek. |
superhero | select avg(attribute_value) from hero_attribute | Question: calculate the average attribute value of all superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | calculate the average attribute value of all superheroes. |
superhero | select count(id) from superhero where full_name is null | Question: what is the total number of superheroes without full name? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id,... | what is the total number of superheroes without full name? |
superhero | select t2.colour from superhero as t1 inner join colour as t2 on t1.eye_colour_id = t2.id where t1.id = 75 | Question: what is the eye colour of superhero with superhero id 75? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | what is the eye colour of superhero with superhero id 75? |
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.superhero_name = 'deathlok' | Question: provide the superpowers of the superhero called deathlok. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | provide the superpowers of the superhero called deathlok. |
superhero | select avg(t1.weight_kg) from superhero as t1 inner join gender as t2 on t1.gender_id = t2.id where t2.gender = 'female' | Question: what is the average weight of all female superheroes? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin... | what is the average weight of all female superheroes? |
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 t3.id = t2.power_id inner join gender as t4 on t4.id = t1.gender_id where t4.gender = 'male' limit 5 | Question: list down at least five superpowers of male superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, s... | list down at least five superpowers of male superheroes. |
superhero | select t1.superhero_name from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t2.race = 'alien' | Question: give the name of the alien superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, ra... | give the name of the alien superheroes. |
superhero | 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' | Question: among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_na... | among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color. |
superhero | 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 | Question: what is the superpower of hero id 56? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race... | what is the superpower of hero id 56? |
superhero | select t1.full_name from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t2.race = 'demi-god' | Question: list down at least five full name of demi-god superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id,... | list down at least five full name of demi-god superheroes. |
superhero | select count(t1.id) from superhero as t1 inner join alignment as t2 on t1.alignment_id = t2.id where t2.alignment = 'bad' | Question: how many bad superheroes are there? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_i... | how many bad superheroes are there? |
superhero | select t2.race from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t1.weight_kg = 169 | Question: identify the race of the superhero who weighed 169 kg. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ski... | identify the race of the superhero who weighed 169 kg. |
superhero | 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' | Question: provide the hair colour of the human superhero who is 185 cm tall. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | provide the hair colour of the human superhero who is 185 cm tall. |
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 | Question: what is the eye clolour of the heaviest superhero? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_co... | what is the eye clolour of the heaviest superhero? |
superhero | 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 | Question: in superheroes with height between 150 to 180, what is the percentage of heroes published by marvel comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, ful... | in superheroes with height between 150 to 180, what is the percentage of heroes published by marvel comics? |
superhero | 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 | Question: among the male superheroes, list the full names of superheroes with weight greater than the 79% average weight of all superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> ... | among the male superheroes, list the full names of superheroes with weight greater than the 79% average weight of all superheroes. |
superhero | 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 | Question: which power do superheroes have the most of? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_i... | which power do superheroes have the most of? |
superhero | 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' | Question: indicate the attribute value of superhero abomination. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ski... | indicate the attribute value of superhero abomination. |
superhero | 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 | Question: what are the superpowers of heroes with id 1? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_... | what are the superpowers of heroes with id 1? |
superhero | 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' | Question: how many heroes have stealth power? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_i... | how many heroes have stealth power? |
superhero | 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 | Question: what is the hero's full name with the highest attribute in strength? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_... | what is the hero's full name with the highest attribute in strength? |
superhero | 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 | Question: what is the average of superheroes with no skin colour? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, sk... | what is the average of superheroes with no skin colour? |
superhero | 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' | Question: how many superheroes were published by dark horse comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | how many superheroes were published by dark horse comics? |
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 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... | Question: which superhero has the most durability published by dark horse comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, ha... | which superhero has the most durability published by dark horse comics? |
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' | Question: what is the eyes colour of abraham sapien? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id,... | what is the eyes colour of abraham sapien? |
superhero | 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' | Question: list the name of superheroes with flight power. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colou... | list the name of superheroes with flight power. |
superhero | 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' | Question: list the eyes, hair and skin colour of all female superheroes published by dark horse comics. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender... | list the eyes, hair and skin colour of all female superheroes published by dark horse comics. |
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 | Question: which superhero has the same eyes, hair and skin colour? indicate the publisher of the superhero. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, ge... | which superhero has the same eyes, hair and skin colour? indicate the publisher of the superhero. |
superhero | select t2.race from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t1.superhero_name = 'a-bomb' | Question: which group does superhero a-bomb belong to? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_i... | which group does superhero a-bomb belong to? |
superhero | 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' | Question: what is the percentage of blue female superheroes among all female superheroes? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colou... | what is the percentage of blue female superheroes among all female superheroes? |
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' | Question: provide the hero name and race of charles chandler. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_c... | provide the hero name and race of charles chandler. |
superhero | select t2.gender from superhero as t1 inner join gender as t2 on t1.gender_id = t2.id where t1.superhero_name = 'agent 13' | Question: what is the gender of agent 13 hero? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_... | what is the gender of agent 13 hero? |
superhero | 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' | Question: provide superheroes' names who have the adaptation power. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | provide superheroes' names who have the adaptation power. |
superhero | 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' | Question: how many powers does amazo hero have? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race... | how many powers does amazo hero have? |
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 = 'hunter zolomon' | Question: list the powers of hunter zolomon. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id... | list the powers of hunter zolomon. |
superhero | select t1.height_cm from superhero as t1 inner join colour as t2 on t1.eye_colour_id = t2.id where t2.colour = 'amber' | Question: provide the heights of the heroes whose eye colours are amber. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour... | provide the heights of the heroes whose eye colours are amber. |
superhero | 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' | Question: list the heroes' names whose eyes and hair colours are both black. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | list the heroes' names whose eyes and hair colours are both black. |
superhero | 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' | Question: provide the eye colours of the heroes whose skin colours are gold. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | provide the eye colours of the heroes whose skin colours are gold. |
superhero | select t1.full_name from superhero as t1 inner join race as t2 on t1.race_id = t2.id where t2.race = 'vampire' | Question: provide the full names of vampire heroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, ... | provide the full names of vampire heroes. |
superhero | select t1.superhero_name from superhero as t1 inner join alignment as t2 on t1.alignment_id = t2.id where t2.alignment = 'neutral' | Question: describe the names of neutral alignment superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_... | describe the names of neutral alignment superheroes. |
superhero | 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 ) | Question: how many heroes have the highest attribute value in strength? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_... | how many heroes have the highest attribute value in strength? |
superhero | 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' | Question: what are the race and alignment of cameron hicks? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_col... | what are the race and alignment of cameron hicks? |
superhero | 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' | Question: how many percent of female heroes were published by marvel comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | how many percent of female heroes were published by marvel comics? |
superhero | 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' | Question: find the average weight of the heroes who are aliens. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin... | find the average weight of the heroes who are aliens. |
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 | Question: calculate the difference between emil blonsky's weight and charles chandler's weight. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye... | calculate the difference between emil blonsky's weight and charles chandler's weight. |
superhero | select cast(sum(height_cm) as real) / count(id) from superhero | Question: calculate the average height for each superhero. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colo... | calculate the average height for each superhero. |
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.superhero_name = 'abomination' | Question: what is abomination's superpower? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id,... | what is abomination's superpower? |
superhero | 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 | Question: among the superheroes with the race of god/eternal, how many of them are male | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_... | among the superheroes with the race of god/eternal, how many of them are male |
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 = 'speed' order by t2.attribute_value desc limit 1 | Question: which hero was the fastest? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, publi... | which hero was the fastest? |
superhero | select count(t1.id) from superhero as t1 inner join alignment as t2 on t1.alignment_id = t2.id where t2.alignment = 'neutral' | Question: how many superheroes have a neutral alignment? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour... | how many superheroes have a neutral alignment? |
superhero | 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' | Question: state all of 3-d man's attributes along with their values. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id,... | state all of 3-d man's attributes along with their values. |
superhero | 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' | Question: which superheroes have blue eyes with brown hair? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_col... | which superheroes have blue eyes with brown hair? |
superhero | 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') | Question: what is the publisher for hawkman, karate kid and speedy? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, ... | what is the publisher for hawkman, karate kid and speedy? |
superhero | select count(t1.id) from superhero as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t2.id = 1 | Question: how many superheroes didn't have any publisher? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colou... | how many superheroes didn't have any publisher? |
superhero | 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 | Question: calculate the percentage of superheroes with blue eyes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, sk... | calculate the percentage of superheroes with blue eyes. |
superhero | 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 | Question: find the ratio between male superheroes and female superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colou... | find the ratio between male superheroes and female superheroes. |
superhero | select superhero_name from superhero order by height_cm desc limit 1 | Question: who is the tallest superhero? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, pub... | who is the tallest superhero? |
superhero | select id from superpower where power_name = 'cryokinesis' | Question: what is the power id of cryokinesis? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_... | what is the power id of cryokinesis? |
superhero | select superhero_name from superhero where id = 294 | Question: provide the name of superhero with superhero id 294. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_... | provide the name of superhero with superhero id 294. |
superhero | select distinct full_name from superhero where full_name is not null and (weight_kg is null or weight_kg = 0) | Question: list the full names of superheroes with missing weight. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, sk... | list the full names of superheroes with missing weight. |
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' | Question: provide the eye colour of the superhero who has karen beecher-duncan as their full name. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, ... | provide the eye colour of the superhero who has karen beecher-duncan as their full name. |
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' | Question: what is the superpowers of the superhero has helen parr as their full name? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id... | what is the superpowers of the superhero has helen parr as their full name? |
superhero | 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 | Question: find the race of the superhero who weighs 108kg and is 188cm tall. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | find the race of the superhero who weighs 108kg and is 188cm tall. |
superhero | select t2.publisher_name from superhero as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t1.id = 38 | Question: what is the publisher name of the superhero id 38? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_co... | what is the publisher name of the superhero id 38? |
superhero | 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 | Question: what is the race of the superhero with maximum attribute value? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colou... | what is the race of the superhero with maximum attribute value? |
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 t3.id = t2.power_id where t1.superhero_name = 'atom iv' | Question: give the alignment and superpowers of the superhero named atom iv. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_co... | give the alignment and superpowers of the superhero named atom iv. |
superhero | 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 | Question: list down at least five full names of superheroes with blue eyes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_col... | list down at least five full names of superheroes with blue eyes. |
superhero | 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' | Question: calculate the average attribute value of all neutral superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_col... | calculate the average attribute value of all neutral superheroes. |
superhero | 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 | Question: list the skin colour of the superheroes with 100 attribute value. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_col... | list the skin colour of the superheroes with 100 attribute value. |
superhero | 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' | Question: count the good female superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id... | count the good female superheroes. |
superhero | 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 | Question: provide the names of superheroes with attribute value between 75 to 80. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, ha... | provide the names of superheroes with attribute value between 75 to 80. |
superhero | select t3.race from superhero as t1 inner join colour as t2 on t1.hair_colour_id = t2.id inner join race as t3 on t1.race_id = t3.id inner join gender as t4 on t1.gender_id = t4.id where t2.colour = 'blue' and t4.gender = 'male' | Question: give the race of the blue-haired male superhero. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colo... | give the race of the blue-haired male superhero. |
superhero | select cast(count(case when t3.gender = 'female' then t1.id else null end) as real) * 100 / 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 = 'bad' | Question: among the bad superheroes, what is the percentage of female superheroes? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, h... | among the bad superheroes, what is the percentage of female superheroes? |
superhero | select sum(case when t2.id = 7 then 1 else 0 end) - sum(case when t2.id = 1 then 1 else 0 end) from superhero as t1 inner join colour as t2 on t1.eye_colour_id = t2.id where t1.weight_kg = 0 or t1.weight_kg is null | Question: in superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -... | in superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color. |
superhero | select 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 = 'hulk' and t3.attribute_name = 'strength' | Question: how strong is the hulk? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, publisher... | how strong is the hulk? |
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.superhero_name = 'ajax' | Question: list down ajax's superpowers. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, pub... | list down ajax's superpowers. |
superhero | select count(t1.id) from superhero as t1 inner join alignment as t2 on t1.alignment_id = t2.id inner join colour as t3 on t1.skin_colour_id = t3.id where t2.alignment = 'bad' and t3.colour = 'green' | Question: how many green-skinned villains are there in the superhero universe? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_... | how many green-skinned villains are there in the superhero universe? |
superhero | select 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 t2.publisher_name = 'marvel comics' and t3.gender = 'female' | Question: how many female superheroes are in marvel comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_col... | how many female superheroes are in marvel comics? |
superhero | select t1.superhero_name from superhero as t1 inner join hero_power as t2 on t1.id = t2.hero_id inner join superpower as t3 on t2.power_id = t3.id where t3.power_name = 'wind control' order by t1.superhero_name | Question: identify superheroes who can control wind and list their names in alphabetical order. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye... | identify superheroes who can control wind and list their names in alphabetical order. |
superhero | select t4.gender from superhero as t1 inner join hero_power as t2 on t1.id = t2.hero_id inner join superpower as t3 on t2.power_id = t3.id inner join gender as t4 on t1.gender_id = t4.id where t3.power_name = 'phoenix force' | Question: identify the gender of the superhero who has the ability of phoenix force. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id,... | identify the gender of the superhero who has the ability of phoenix force. |
superhero | select t1.superhero_name from superhero as t1 inner join publisher as t2 on t1.publisher_id = t2.id where t2.publisher_name = 'dc comics' order by t1.weight_kg desc limit 1 | Question: identify the heaviest superhero in dc comics. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_... | identify the heaviest superhero in dc comics. |
superhero | select avg(t1.height_cm) from superhero as t1 inner join publisher as t2 on t1.publisher_id = t2.id inner join race as t3 on t1.race_id = t3.id where t2.publisher_name = 'dark horse comics' and t3.race != 'human' | Question: what is the average height of a non-human superhero in dark horse comics? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, ... | what is the average height of a non-human superhero in dark horse comics? |
superhero | select count(t3.superhero_name) from hero_attribute as t1 inner join attribute as t2 on t1.attribute_id = t2.id inner join superhero as t3 on t1.hero_id = t3.id where t2.attribute_name = 'speed' order by t1.attribute_value desc limit 1 | Question: count the fastest superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, pu... | count the fastest superheroes. |
superhero | select sum(case when t2.publisher_name = 'dc comics' then 1 else 0 end) - sum(case when t2.publisher_name = 'marvel comics' then 1 else 0 end) from superhero as t1 inner join publisher as t2 on t1.publisher_id = t2.id | Question: which publisher created more superheroes: dc or marvel comics? find the difference in the number of superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name... | which publisher created more superheroes: dc or marvel comics? find the difference in the number of superheroes. |
superhero | select t3.attribute_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 t1.superhero_name = 'black panther' order by t2.attribute_value asc limit 1 | Question: identify the weakest attribute of the black panther. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_... | identify the weakest attribute of the black panther. |
superhero | select t2.colour from superhero as t1 inner join colour as t2 on t1.eye_colour_id = t2.id where t1.superhero_name = 'abomination' | Question: what is abomination's eye colour? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id,... | what is abomination's eye colour? |
superhero | select superhero_name from superhero order by height_cm desc limit 1 | Question: name the tallest superhero. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, skin_colour_id, race_id, publi... | name the tallest superhero. |
superhero | select superhero_name from superhero where full_name = 'charles chandler' | Question: name the superhero, otherwise known as charles chandler. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour_id, s... | name the superhero, otherwise known as charles chandler. |
superhero | select cast(count(case when t3.gender = 'female' 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 t2.publisher_name = 'george lucas' | Question: among all superheroes created by george lucas, identify the percentage of female superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender... | among all superheroes created by george lucas, identify the percentage of female superheroes. |
superhero | select cast(count(case when t3.alignment = 'good' then t1.id 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 alignment as t3 on t1.alignment_id = t3.id where t2.publisher_name = 'marvel comics' | Question: among all superheroes in marvel comics, identify the percentage of 'good' superheroes. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, ey... | among all superheroes in marvel comics, identify the percentage of 'good' superheroes. |
superhero | select count(id) from superhero where full_name like 'john%' | Question: what is the total number of superheroes that have john as their first name? | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id... | what is the total number of superheroes that have john as their first name? |
superhero | select hero_id from hero_attribute where attribute_value = ( select min(attribute_value) from hero_attribute ) | Question: give the hero id of superhero with the lowest attribute value. | Tables: alignment -> id, alignment. attribute -> id, attribute_name. colour -> id, colour. gender -> id, gender. publisher -> id, publisher_name. race -> id, race. superhero -> id, superhero_name, full_name, gender_id, eye_colour_id, hair_colour... | give the hero id of superhero with the lowest attribute value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.