1sf/bird-sql-dev-xresults huggingface dataset:
Database: toxicology
Question: How many molecules have a double bond type and among these molecule, how many are labeled as carcinogenic compound?
Evidence: double bond refers to bond_type = ' = '; label = '+' mean molecules are carcinogenic;
SQL: SELECT COUNT(DISTINCT T2.molecule_id), SUM(CASE WHEN T2.label = '+' THEN 1 ELSE 0 END) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '='
Database: toxicology
Question: How many molecules without sulphur element is not having double bond?
Evidence: double bond refers to bond_type = ' = '; bond_type ! = ' = '; sulphur refers to element = 's'
SQL: SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element <> 's' AND T2.bond_type <> '='
Database: toxicology
Question: What is the carcinogenic label for bond TR001_2_4?
Evidence: label = '+' mean molecules are carcinogenic
SQL: SELECT DISTINCT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_id = 'TR001_2_4'
Database: toxicology
Question: How many single bonds are there in the list?
Evidence: single bond refers to bond_type = '-';
SQL: SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '-'
Database: toxicology
Question: Among the molecules which contain "cl" element, which of them are carcinogenic?
Evidence: label = '+' mean molecules are carcinogenic;
SQL: SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'cl' AND T2.label = '+'
Database: toxicology
Question: Among the molecules which contain "c" element, which of them are not carcinogenic?
Evidence: label = '-' means molecules are non-carcinogenic
SQL: SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'c' AND T2.label = '-'
Database: toxicology
Question: Calculate the percentage of carcinogenic molecules which contain the Chlorine element.
Evidence: label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(label = '+' and element = 'cl'), COUNT(molecule_id)) as percentage
SQL: SELECT COUNT(CASE WHEN T2.label = '+' AND T1.element = 'cl' THEN T2.molecule_id ELSE NULL END) * 100 / COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id
Database: toxicology
Question: How many elements are contained in bond_id TR001_3_4?
Evidence: element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium
SQL: SELECT COUNT(DISTINCT T1.element) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_3_4'
Database: toxicology
Question: What is the type of the bond which is presenting the connection between two atoms TR000_1 and TR000_2?
Evidence: type of bond refers to bond_type; double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple bond refers to bond_type = '#';
SQL: SELECT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR000_1' AND T2.atom_id2 = 'TR000_2'
Database: toxicology
Question: What is the element of toxicology for the atom with the ID of TR000_1?
Evidence: atom with ID refers to atom_id; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium
SQL: SELECT T.element FROM atom AS T WHERE T.atom_id = 'TR000_1'
Database: toxicology
Question: Is molecule TR000 is carcinogenic or not?
Evidence: label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic
SQL: SELECT label FROM molecule AS T WHERE T.molecule_id = 'TR000'
Database: toxicology
Question: Find the percentage of atoms with single bond.
Evidence: single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(bond_type = '-'), COUNT(bond_id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T.bond_type = '-' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id) FROM bond t
Database: toxicology
Question: How many carcinogenic molecules that consisted of Nitrogen?
Evidence: nitrogen refers to element = 'n'; label = '+' mean molecules are carcinogenic;
SQL: SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.element = 'n' AND T1.label = '+'
Database: toxicology
Question: Which molecule consisted of Sulphur atom with double bond?
Evidence: sulphur refers to element - 's'; double bond refers to bond_type = ' = ';
SQL: SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 's' AND T2.bond_type = '='
Database: toxicology
Question: Which non-carcinogenic molecules consisted more than 5 atoms?
Evidence: label = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5
SQL: SELECT T.molecule_id FROM ( SELECT T1.molecule_id, COUNT(T2.atom_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '-' GROUP BY T1.molecule_id HAVING COUNT(T2.atom_id) > 5 ) t
Database: toxicology
Question: List all the elements with double bond, consisted in molecule TR024.
Evidence: double bond refers to bond_type = '='; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium
SQL: SELECT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR024' AND T2.bond_type = '='
Database: toxicology
Question: Which carcinogenic molecule have the highest number of atoms consisted in it?
Evidence: label = '+' mean molecules are carcinogenic; molecule that have the highest number of atoms consisted in in refers to MAX(COUNT(atom.molecule_id))
SQL: SELECT T.molecule_id FROM ( SELECT T2.molecule_id, COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' GROUP BY T2.molecule_id ORDER BY COUNT(T1.atom_id) DESC LIMIT 1 ) t
Database: toxicology
Question: Calculate the percentage of carcinogenic molecules with triple bonded Hidrogen atoms.
Evidence: hydrogen refers to element = 'h'; label = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) * 100.0 where element = 'h' AND bond_type = '#';
SQL: SELECT CAST(SUM(CASE WHEN T1.label = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T1.molecule_id = T3.molecule_id WHERE T3.bond_type = '#' AND T2.element = 'h'
Database: toxicology
Question: How many of the molecules are carcinogenic?
Evidence: label = '+' mean molecules are carcinogenic;
SQL: SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+'
Database: toxicology
Question: Among the molecules between TR004 to TR010, how many of them has single bonds?
Evidence: single bond refers to bond_type = '-'; molecules between TR004 to TR010 refers molecule_id BETWEEN 'TR004' and 'TR010';
SQL: SELECT COUNT(DISTINCT T.molecule_id) FROM bond AS T WHERE T.molecule_id BETWEEN 'TR004' AND 'TR010' AND T.bond_type = '-'
Database: toxicology
Question: In the molecule TR008, how many carbons are present?
Evidence: carbon refers to element = 'c'
SQL: SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR008' AND T.element = 'c'
Database: toxicology
Question: What is the element with the atom ID of TR004_7 in molecule that is not carcinogenic?
Evidence: label = '-' means molecules are non-carcinogenic; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium
SQL: SELECT T1.element FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR004_7' AND T2.label = '-'
Database: toxicology
Question: What is the total number of molecules with double bonded oxygen?
Evidence: oxygen refers to element = 'o'; double bond refers to bond_type = ' = ';
SQL: SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '=' AND T1.element = 'o'
Database: toxicology
Question: in molecules with triple bonds, how many of them are not carcinogenic?
Evidence: triple bond refers to bond_type = '#'; label = '-' means molecules are non-carcinogenic
SQL: SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '#' AND T1.label = '-'
Database: toxicology
Question: List the element and bond type included in the molecule with molecule ID of TR002.
Evidence: TR002 is the molecule id
SQL: SELECT DISTINCT T1.element, T2.bond_type FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR002'
Database: toxicology
Question: What is the atom ID of double bonded carbon in TR012 molecule?
Evidence: carbon refers to element = 'c'; double bond refers to bond_type = ' = ';
SQL: SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T2.molecule_id = 'TR012' AND T3.bond_type = '=' AND T1.element = 'c'
Database: toxicology
Question: List the atom ID of the carcinogenic molecule that contains oxygen?
Evidence: label = '+' mean molecules are carcinogenic; oxygen refers to element = 'o'
SQL: SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'o' AND T2.label = '+'
Database: card_games
Question: Which are the cards that have incredibly powerful foils.
Evidence: incredibly poweful foils refers to cardKingdomFoilId is not null AND cardKingdomId is not null
SQL: SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
Database: card_games
Question: What are the borderless cards available without powerful foils?
Evidence: borderless' refers to borderColor; poweful foils refers to cardKingdomFoilId paired with cardKingdomId AND cardKingdomId is not null
SQL: SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)
Database: card_games
Question: List the card names with value that cost more converted mana for the face.
Evidence: more converted mana for the face refers to Max(faceConvertedManaCost);
SQL: SELECT name FROM cards ORDER BY faceConvertedManaCost LIMIT 1
Database: card_games
Question: Name all cards with 2015 frame style ranking below 100 on EDHRec.
Evidence: below 100 on EDHRec refers to EDHRec <100; with 2015 frame style refers to frameVersion = 2015;
SQL: SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015
Database: card_games
Question: List all the mythic rarity print cards banned in gladiator format.
Evidence: mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';
SQL: SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'
Database: card_games
Question: For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.
Evidence: Artifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';
SQL: SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL
Database: card_games
Question: List all the card id and artist with unknown power which are legal for commander play format.
Evidence: unknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'
SQL: SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')
Database: card_games
Question: Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.
Evidence: cards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist; Find all cards refers to return card id
SQL: SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'
Database: card_games
Question: Describe the information about rulings for card named 'Sublime Epiphany' with number 74s.
Evidence: Sublime Epiphany' is name of cards; number 74s refers to number = '74s'; information refers to text;
SQL: SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Sublime Epiphany' AND T1.number = '74s'
Database: card_games
Question: Name the card and artist with the most ruling information. Also state if the card is a promotional printing.
Evidence: with the most ruling information refers to Max(count(rulings.uuid)); the card is the promotional printing refers to isPromo = 1;
SQL: SELECT T1.name, T1.artist, T1.isPromo FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.isPromo = 1 AND T1.artist = (SELECT artist FROM cards WHERE isPromo = 1 GROUP BY artist HAVING COUNT(DISTINCT uuid) = (SELECT MAX(count_uuid) FROM ( SELECT COUNT(DISTINCT uuid) AS count_uuid FROM cards WHERE isPromo = 1 GROUP BY artist ))) LIMIT 1
Database: superhero
Question: What is the average weight of all female superheroes?
Evidence: female refers to gender = 'Female'; average weight refers to AVG(weight_kg)
SQL: SELECT AVG(T1.weight_kg) FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T2.gender = 'Female'
Database: superhero
Question: List down at least five superpowers of male superheroes.
Evidence: male refers to gender = 'Male'; 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 T3.id = T2.power_id INNER JOIN gender AS T4 ON T4.id = T1.gender_id WHERE T4.gender = 'Male' LIMIT 5
Database: superhero
Question: Give the name of the alien superheroes.
Evidence: alien superheroes refers to race = 'Alien'; name of superhero refers to superhero_name;
SQL: SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Alien'
Database: superhero
Question: Among the superheroes with height from 170 to 190, list the names of the superheroes with no eye color.
Evidence: height from 170 to 190 refers to height_cm BETWEEN 170 AND 190; no eye color refers to colour = 'No Colour'
SQL: 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'
Database: superhero
Question: What is the superpower of hero ID 56?
Evidence: superpower refers to hero_power
SQL: 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
Database: superhero
Question: List down at least five full name of Demi-God superheroes.
Evidence: Demi-God superheroes refers to race = 'Demi-God'
SQL: SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Demi-God'
Database: superhero
Question: How many bad superheroes are there?
Evidence: bad superheroes refers to alignment_id = Bad
SQL: SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Bad'
Database: superhero
Question: Identify the race of the superhero who weighed 169 kg.
Evidence: weighed 169 kg refers to weight_kg = 169
SQL: SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.weight_kg = 169
Database: superhero
Question: Provide the hair colour of the human superhero who is 185 cm tall.
Evidence: 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;
SQL: 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'
Database: superhero
Question: What is the eye clolour of the heaviest superhero?
Evidence: the heaviest superhero refers to MAX(weight_kg); eye colour refers to 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 ORDER BY T1.weight_kg DESC LIMIT 1
Database: superhero
Question: In superheroes with height between 150 to 180, what is the percentage of heroes published by Marvel Comics?
Evidence: 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)
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 WHERE T1.height_cm BETWEEN 150 AND 180
Database: superhero
Question: Among the male superheroes, list the super hero names of superheroes with weight greater than the 79% average weight of all superheroes.
Evidence: super hero names refers to superhero_name;male superheros refers to gender = 'Male';Calculation = weight_kg > MULTIPLY(AVG(weight_kg), 0.79)
SQL: 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
Database: superhero
Question: Which power do superheroes have the most of?
Evidence: power that superheroes have the most refers to MAX(COUNT(power_name))
SQL: 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
Database: superhero
Question: Indicate the attribute value of superhero Abomination.
Evidence: Abomination refers to superhero_name = 'Abomination';
SQL: 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'
Database: superhero
Question: What are the superpowers of heroes with ID 1?
Evidence: superpowers refers to power_name; heroes with ID 1 refers to hero_id = 1;
SQL: 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
Database: superhero
Question: How many heroes have stealth power?
Evidence: stealth power refers to power_name = 'stealth';
SQL: 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'
Database: superhero
Question: What is the hero's full name with the highest attribute in strength?
Evidence: highest attribute in strength refers to MAX(attribute_value) WHERE attribute_name = 'strength';
SQL: 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
Database: superhero
Question: What is the average of superheroes with no skin colour?
Evidence: average = DIVIDE(COUNT(superhero.id), SUM(skin_colour_id = 1)); no skin colour refers to skin_colour_id WHERE colour.id = 1;
SQL: 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
Database: superhero
Question: How many superheroes were published by Dark Horse Comics?
Evidence: published by Dark Horse Comics refers to publisher_name = 'Dark Horse Comics';
SQL: 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'
Database: superhero
Question: Which superhero has the most durability published by Dark Horse Comics?
Evidence: 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';
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 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
Database: superhero
Question: What is the eyes colour of Abraham Sapien?
Evidence: eye colour refers to colour.colour where eye_colour_id = colour.id; Abraham Sapien 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 = 'Abraham Sapien'
Database: superhero
Question: List the name of superheroes with flight power.
Evidence: name of superheroes refers to superhero_name; flight power refers to power_name = 'Flight';
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 = 'Flight'
Database: superhero
Question: List the eyes, hair and skin colour of all female superheroes published by Dark Horse Comics.
Evidence: 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';
SQL: 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'
Database: superhero
Question: Which superhero has the same eyes, hair and skin colour? Indicate the publisher of the superhero.
Evidence: 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;
SQL: 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