1sf/bird-sql-dev-xresults huggingface dataset:
Database: superhero
Question: Which group does superhero A-Bomb belong to?
Evidence: group refers to race; A-Bomb refers to superhero_name = 'A-Bomb';
SQL: SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'A-Bomb'
Database: superhero
Question: What is the percentage of blue female superheroes among all female superheroes?
Evidence: 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';
SQL: 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'
Database: superhero
Question: Provide the hero name and race of Charles Chandler.
Evidence: hero name refers to superhero_name; Charles Chandler is the full name of superhero;
SQL: 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'
Database: superhero
Question: What is the gender of Agent 13 hero?
Evidence: Agent 13 hero refers to superhero_name = 'Agent 13';
SQL: SELECT T2.gender FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T1.superhero_name = 'Agent 13'
Database: superhero
Question: Provide superheroes' names who have the adaptation power.
Evidence: adaptation power refers to power_name = 'Adaptation';
SQL: 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'
Database: superhero
Question: How many powers does Amazo hero have?
Evidence: Amazo hero refers to superhero_name = 'Amazo';
SQL: 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'
Database: superhero
Question: List the powers of Hunter Zolomon.
Evidence: Hunter Zolomon is the full name of superhero; list the powers refers to power_name;
SQL: 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'
Database: superhero
Question: Provide the heights of the heroes whose eye colours are amber.
Evidence: heights of the heroes refers to height_cm; eye colours are amber refers to colour.colour = 'Amber' WHERE eye_colour_id = colour.id;
SQL: SELECT T1.height_cm FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Amber'
Database: superhero
Question: List the heroes' names whose eyes and hair colours are both black.
Evidence: 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';
SQL: 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'
Database: superhero
Question: Provide the eye colours of the heroes whose skin colours are gold.
Evidence: skin colours are gold refers to colour.colour = 'Gold' WHERE skin_colour_id = colour.id;
SQL: 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'
Database: superhero
Question: Provide the full names of vampire heroes.
Evidence: vampire heroes refers to race = 'Vampire';
SQL: SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'
Database: superhero
Question: Describe the names of neutral alignment superheroes.
Evidence: names of superheroes refers to superhero_name; neutral alignment refers to alignment = 'Neutral';
SQL: SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
Database: superhero
Question: How many heroes have the highest attribute value in strength?
Evidence: highest attribute value in strength refers to MAX(attribute_value) WHERE attribute_name = 'Strength';
SQL: 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 )
Database: superhero
Question: What are the race and alignment of Cameron Hicks?
Evidence: Cameron Hicks refers to superhero_name = 'Cameron Hicks';
SQL: 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'
Database: superhero
Question: How many percent of female heroes were published by Marvel Comics?
Evidence: 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';
SQL: 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'
Database: superhero
Question: Find the average weight of the heroes who are aliens.
Evidence: average = AVG(weight_kg); aliens refers to race = 'Alien';
SQL: 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'
Database: superhero
Question: Calculate the difference between Emil Blonsky's weight and Charles Chandler's weight.
Evidence: 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;
SQL: 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
Database: superhero
Question: Calculate the average height for each superhero.
Evidence: average = DIVIDE(SUM(height_cm), COUNT(all heros));
SQL: SELECT CAST(SUM(height_cm) AS REAL) / COUNT(id) FROM superhero
Database: superhero
Question: What is Abomination's superpower?
Evidence: Abomination refers to superhero_name = 'Abomination'; superpower refers to power_name;
SQL: 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'
Database: superhero
Question: Among the superheroes with the race of god/eternal, how many of them are male
Evidence: race "god/eternal" refers to race_id = 21; male refers to gender.id = 1
SQL: 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
Database: superhero
Question: Which hero was the fastest?
Evidence: which hero refers to superhero_name; fastest refers to MAX(attribute_value) WHERE attribute_name = 'Speed';
SQL: 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
Database: superhero
Question: How many superheroes have a neutral alignment?
Evidence: neutral alignment refers to alignment_id = 3;
SQL: SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
Database: superhero
Question: State all of 3-D Man's attributes along with their values.
Evidence: 3-D Man is the superhero_name. attributes refers to attribute_name; values refers to attribute_value;
SQL: 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'
Database: superhero
Question: Which superheroes have blue eyes with brown hair?
Evidence: which superheroes refers to superhero_name; blue eyes refers to color = 'Blue' and color.id = eye_colour_id; brown hair refers to color = 'Brown' and color.id = hair_colour_id;
SQL: 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'
Database: superhero
Question: What is the publisher for Hawkman, Karate Kid and Speedy?
Evidence: publisher refers to publisher_name; Hawkman refers to superhero_name = 'Hawkman'; Karate Kid refers to superhero_name = 'Karate Kid'; Speedy refers to superhero_name = 'Speedy';
SQL: 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')
Database: superhero
Question: How many superheroes didn't have any publisher?
Evidence: didn't have any publisher refers to publisher.id = 1;
SQL: SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.id = 1
Database: superhero
Question: Calculate the percentage of superheroes with blue eyes.
Evidence: percentage = MULTIPLY(DIVIDE(SUM(superhero_name WHERE color = 'Blue'), COUNT(superhero_name)), 100.0); blue eyes refers to color = 'Blue' and color.id =  eye_colour_id = 7;
SQL: 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
Database: superhero
Question: Find the ratio between male superheroes and female superheroes.
Evidence: ratio = DIVIDE(SUM(gender_id = 1) / SUM(gender_id = 2)); male superheroes refers to gender = 'Female'; female superheroes refers to gender = 'Male';
SQL: 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
Database: superhero
Question: Who is the tallest superhero?
Evidence: who refers to superhero_name; tallest superhero refers to MAX(height_cm);
SQL: SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
Database: superhero
Question: What is the power ID of cryokinesis?
Evidence: power ID refers to superpower.id; cryokinesis refers to power_name = 'cryokinesis';
SQL: SELECT id FROM superpower WHERE power_name = 'Cryokinesis'
Database: superhero
Question: Provide the name of superhero with superhero ID 294.
Evidence: name of superhero refers to superhero_name; superhero ID 294 refers to superhero.id = 294;
SQL: SELECT superhero_name FROM superhero WHERE id = 294
Database: superhero
Question: List the full names of superheroes with missing weight.
Evidence: missing weight refers to weight_kg = 0 OR weight_kg = NULL;
SQL: SELECT DISTINCT full_name FROM superhero WHERE full_name IS NOT NULL AND (weight_kg IS NULL OR weight_kg = 0)
Database: superhero
Question: Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.
Evidence: eye colour refers to colour.colour where eye_colour_id = colour.id; Karen Beecher-Duncan is the full name of superhero;
SQL: 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'
Database: superhero
Question: What is the superpowers of the superhero has Helen Parr as their full name?
Evidence: superpowers refers to power_name; Helen Parr is the full name of superhero;
SQL: 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'
Database: superhero
Question: Find the race of the superhero who weighs 108kg and is 188cm tall.
Evidence: weighs 108kg refers to weight_kg = 108; 188cm tall refers to height_cm = 188;
SQL: 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
Database: superhero
Question: What is the publisher name of the superhero ID 38?
Evidence: superhero ID 38 refers to superhero.id = 38;
SQL: SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.id = 38
Database: superhero
Question: What is the race of the superhero with maximum attribute value?
Evidence: maximum attribute value refers to MAX(attribute_value);
SQL: 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
Database: superhero
Question: Give the alignment and superpowers of the superhero named Atom IV.
Evidence: superpowers refers to power_name;
SQL: 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'
Database: superhero
Question: List down at least five full names of superheroes with blue eyes.
Evidence: blue eyes refers to colour.colour = 'Blue' WHERE eye_colour_id = colour.id; Name of superheroes refers to superhero_name;
SQL: 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
Database: superhero
Question: Calculate the average attribute value of all neutral superheroes.
Evidence: average = AVG(attribute_value); neutral superheroes refers to alignment_id = 3;
SQL: 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'
Database: superhero
Question: List the skin colour of the superheroes with 100 attribute value.
Evidence: skin colour refers to colour.colour where skin_colour_id = colour.id; 100 attribute value refers to attribute_value = 100;
SQL: 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
Database: superhero
Question: Count the good female superheroes.
Evidence: good refers to alignment.id = 1; female refers to gender.id = 2;
SQL: 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'
Database: superhero
Question: Provide the names of superheroes with attribute value between 75 to 80.
Evidence: names of superheroes refers to superhero_name; attribute value between 75 to 80 refers to attribute_value BETWEEN 75 AND 80;
SQL: 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
Database: superhero
Question: Give the race of the blue-haired male superhero.
Evidence: blue-haired refers to colour.colour = 'blue' WHERE hair_colour_id = colour.id; male refers to gender = 'male';
SQL: 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'
Database: superhero
Question: Among the bad superheroes, what is the percentage of female superheroes?
Evidence: bad superheroes refers to alignment.id = 2; percentage = MULTIPLY(DIVIDE(SUM(gender.id = 2 WHERE alignment.id = 2), COUNT(alignment.id = 2)), 100.0); female refers to gender.id = 2;
SQL: 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'
Database: superhero
Question: In superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color.
Evidence: missing weight data refers to weight_kg = 0 OR T1.weight_kg = NULL; difference = SUBTRACT(SUM(colour.id = 7), SUM(colour.id = 1)); blue eyes refers to eye_colour_id WHERE colour.id = 7; no eye color refers to eye_colour_id WHERE colour.id = 1;
SQL: 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
Database: superhero
Question: How strong is the Hulk?
Evidence: how strong refers to attribute_value WHERE attribute_name = 'Strength'; the Hulk refers to superhero_name = 'Hulk';
SQL: 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'
Database: superhero
Question: List down Ajax's superpowers.
Evidence: Ajax refers to superhero_name = 'Ajax'; superpowers refers to power_name;
SQL: 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'
Database: superhero
Question: How many green-skinned villains are there in the superhero universe?
Evidence: green-skinned refers to colour.colour = 'Green' WHERE skin_colour_id = colour.id; villains refers to alignment = 'Bad';
SQL: 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'
Database: superhero
Question: How many female superheroes are in Marvel Comics?
Evidence: female refers to gender = 'Female'; Marvel Comics refers to publisher_name = 'Marvel Comics';
SQL: 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'
Database: superhero
Question: Identify superheroes who can control wind and list their names in alphabetical order.
Evidence: superheroes refers to superhero_name; can control wind refers to power_name = 'Wind Control';
SQL: 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
Database: superhero
Question: Identify the gender of the superhero who has the ability of Phoenix Force.
Evidence: ability of Phoenix Force refers to power_name = 'Phoenix Force';
SQL: 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'
Database: superhero
Question: Identify the heaviest superhero in DC Comics.
Evidence: heaviest refers to MAX(weight_kg); DC Comics refers to publisher_name = 'DC Comics'; superhero refers to superhero_name;
SQL: 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
Database: superhero
Question: What is the average height of a non-human superhero in Dark Horse Comics?
Evidence: average = AVG(height_cm); non-human superhero refers to race <> 'Human'; Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';
SQL: 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'
Database: superhero
Question: Count the fastest superheroes.
Evidence: fastest refers to attribute_value = 100 WHERE attribute_name = 'Speed';
SQL: 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' AND T1.attribute_value = 100
Database: superhero
Question: Which publisher created more superheroes: DC or Marvel Comics? Find the difference in the number of superheroes.
Evidence: DC refers to publisher_name = 'DC Comics'; Marvel Comics refers to publisher_name = 'Marvel Comics'; difference = SUBTRACT(SUM(publisher_name = 'DC Comics'), SUM(publisher_name = 'Marvel Comics'));
SQL: 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
Database: superhero
Question: Identify the weakest attribute of the Black Panther.
Evidence: weakest attribute refers to attribute_name WHERE MIN(attribute_value); Black Panther refers to superhero_name = 'Black Panther';
SQL: 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
Database: superhero
Question: What is Abomination's eye colour?
Evidence: Abomination refers to superhero_name = 'Abomination'; eye colour refers to colour.colour where eye_colour_id = colour.id;
SQL: SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.superhero_name = 'Abomination'
Database: superhero
Question: Name the tallest superhero.
Evidence: tallest superhero refers to MAX(height_cm);
SQL: SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
Database: superhero
Question: Name the superhero, otherwise known as Charles Chandler.
Evidence: name the superhero refers to superhero_name; Charles Chandler is the full name of superhero;
SQL: SELECT superhero_name FROM superhero WHERE full_name = 'Charles Chandler'
Database: superhero
Question: Among all superheroes created by George Lucas, identify the percentage of female superheroes.
Evidence: created by George Lucas refers to publisher_name = 'George Lucas'; percentage = MULTIPLY(DIVIDE(SUM(gender = 'Female' WHERE publisher_name = 'George Lucas'), COUNT(publisher_name = 'George Lucas')), 100.0); female refers to gender = 'Female';
SQL: 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'
Database: superhero
Question: Among all superheroes in Marvel Comics, identify the percentage of 'good' superheroes.
Evidence: Marvel Comics refers to publisher_name = 'Marvel Comics'; percentage = MULTIPLY(DIVIDE(SUM(alignment = 'Good' WHERE publisher_name = 'Marvel Comics'), COUNT(publisher_name = 'Marvel Comics')), 100.0); good superheroes refers to alignment = 'Good';
SQL: 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'
Database: superhero
Question: What is the total number of superheroes that have John as their first name?
Evidence: have John as their first name refers to full_name LIKE 'John%';
SQL: SELECT COUNT(id) FROM superhero WHERE full_name LIKE 'John%'
Database: superhero
Question: Give the hero ID of superhero with the lowest attribute value.
Evidence: lowest attribute value refers to MIN(attribute_value);
SQL: SELECT hero_id FROM hero_attribute WHERE attribute_value = ( SELECT MIN(attribute_value) FROM hero_attribute )