question
stringlengths
23
286
sql
stringlengths
29
1.45k
db_id
stringclasses
11 values
prompt
stringlengths
1.09k
6.84k
question_id
int64
0
1.53k
difficulty
stringclasses
3 values
Calculate the percentage of superheroes with blue eyes.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
800
moderate
Find the ratio between male superheroes and female superheroes.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
801
moderate
Who is the tallest superhero?
SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
802
simple
What is the power ID of cryokinesis?
SELECT id FROM superpower WHERE power_name = 'Cryokinesis'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
803
simple
Provide the name of superhero with superhero ID 294.
SELECT superhero_name FROM superhero WHERE id = 294
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
804
simple
List the full names of superheroes with missing weight.
SELECT DISTINCT full_name FROM superhero WHERE full_name IS NOT NULL AND (weight_kg IS NULL OR weight_kg = 0)
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
805
simple
Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
806
simple
What is the superpowers of the superhero has Helen Parr as their full name?
SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.full_name = 'Helen Parr'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
807
simple
Find the race of the superhero who weighs 108kg and is 188cm tall.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
808
simple
What is the publisher name of the superhero ID 38?
SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.id = 38
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
809
simple
What is the race of the superhero with maximum attribute value?
SELECT T3.race FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN race AS T3 ON T1.race_id = T3.id ORDER BY T2.attribute_value DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
810
simple
Give the alignment and superpowers of the superhero named Atom IV.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
811
simple
List down at least five full names of superheroes with blue eyes.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
812
simple
Calculate the average attribute value of all neutral superheroes.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
813
simple
List the skin colour of the superheroes with 100 attribute value.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
814
moderate
Count the good female superheroes.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
815
simple
Provide the names of superheroes with attribute value between 75 to 80.
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id WHERE T2.attribute_value BETWEEN 75 AND 80
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
816
simple
Give the race of the blue-haired male 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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
817
moderate
Among the bad superheroes, what is the percentage of female superheroes?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
818
challenging
In superheroes with missing weight data, calculate the difference between the number of superheroes with blue eyes and no eye color.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
819
challenging
How strong is the Hulk?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
820
moderate
List down Ajax's superpowers.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
821
simple
How many green-skinned villains are there in the superhero universe?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
822
moderate
How many female superheroes are in Marvel Comics?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
823
moderate
Identify superheroes who can control wind and list their names in alphabetical order.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
824
moderate
Identify the gender of the superhero who has the ability of Phoenix Force.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
825
moderate
Identify the heaviest superhero in DC Comics.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
826
simple
What is the average height of a non-human superhero in Dark Horse Comics?
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
827
moderate
Count the fastest superheroes.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
828
simple
Which publisher created more superheroes: DC or Marvel Comics? Find the difference in the number of superheroes.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
829
challenging
Identify the weakest attribute of the Black Panther.
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
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
830
moderate
What is Abomination's eye colour?
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.superhero_name = 'Abomination'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
831
simple
Name the tallest superhero.
SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
832
simple
Name the superhero, otherwise known as Charles Chandler.
SELECT superhero_name FROM superhero WHERE full_name = 'Charles Chandler'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
833
simple
Among all superheroes created by George Lucas, identify the percentage of female superheroes.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
834
challenging
Among all superheroes in Marvel Comics, identify the percentage of 'good' superheroes.
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'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
835
challenging
What is the total number of superheroes that have John as their first name?
SELECT COUNT(id) FROM superhero WHERE full_name LIKE 'John%'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
836
simple
Give the hero ID of superhero with the lowest attribute value.
SELECT hero_id FROM hero_attribute WHERE attribute_value = ( SELECT MIN(attribute_value) FROM hero_attribute )
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
837
simple
Provide the full name of the superhero named Alien.
SELECT full_name FROM superhero WHERE superhero_name = 'Alien'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
838
simple
In superheroes with weight less than 100, list the full name of the superheroes with brown eyes.
SELECT T1.full_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.weight_kg < 100 AND T2.colour = 'Brown'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
839
simple
List the attribute value of the superhero named Aquababy.
SELECT T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id WHERE T1.superhero_name = 'Aquababy'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
840
simple
Provide the weight and race of the superhero with superhero ID 40.
SELECT T1.weight_kg, T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.id = 40
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
841
simple
Calculate the average height of all neutral superheroes.
SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
842
simple
List the hero ID of superheroes have intellegence as their power.
SELECT T1.hero_id FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Intelligence'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
843
simple
Give the eye colour of Blackwulf.
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.superhero_name = 'Blackwulf'
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
844
simple
List the power of superheroes with height greater than 80% of the average height of all superheroes.
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.height_cm * 100 > ( SELECT AVG(height_cm) FROM superhero ) * 80
superhero
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #alignment (id integer, alignment text, , PRIMARY KEY(id), ) #attribute (id integer, attribute_name text, , PRIMARY KEY(id), ) #colour (id i...
845
moderate
Please list the reference names of the drivers who are eliminated in the first period in race number 18.
SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 18 ORDER BY T1.q1 DESC LIMIT 5
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
846
moderate
What is the surname of the driver with the best lap time in race number 19 in the second period?
SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 AND T1.q2 IS NOT NULL ORDER BY T1.q2 ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
847
simple
Please list the year during which the race is held on circuits in Shanghai.
SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Shanghai'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
848
simple
Where can the introduction of the races held on Circuit de Barcelona-Catalunya be found?
SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Circuit de Barcelona-Catalunya'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
849
simple
Please give the name of the race held on the circuits in Germany.
SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
850
simple
Please list the positions of the circuits built by the constructor Renault.
SELECT DISTINCT T1.position FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T2.name = 'Renault'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
851
simple
How many races in the year 2010 are held on grand prixs outside Asia and Europe?
SELECT COUNT(T3.raceId) FROM circuits AS T1 INNER JOIN races AS T3 ON T3.circuitID = T1.circuitId WHERE T1.country NOT IN ( 'Bahrain', 'China', 'Singapore', 'Japan', 'Korea', 'Turkey', 'UAE', 'Malaysia', 'Spain', 'Monaco', 'Azerbaijan', 'Austria', 'Belgium', 'France', 'Germany', 'Hungary', 'Italy', 'UK' ) AND T3.year =...
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
852
moderate
Please give the names of the races held on the circuits in Spain.
SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
853
simple
What is the location coordinates of the circuits for Australian grand prix?
SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
854
simple
Where can I find the information about the races held on Sepang International Circuit?
SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
855
simple
Please list the time of the races held on Sepang International Circuit.
SELECT DISTINCT T2.time FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
856
simple
Give the coordinate position for Abu Dhabi Grand Prix.
SELECT DISTINCT T1.lat, T1.lng, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
857
simple
Which country is the constructor which got 1 point in the race No. 24 from?
SELECT T2.nationality FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 24 AND T1.points = 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
858
simple
What's Bruno Senna's Q1 result in the qualifying race No. 354?
SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
859
simple
For the driver who had the Q2 time as 0:01:40 in the qualifying race No. 355, what is his nationality?
SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 355 AND T1.q2 LIKE '1:40%'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
860
simple
What is his number of the driver who finished 0:01:54 in the Q3 of qualifying race No.903?
SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
861
simple
For the Bahrain Grand Prix in 2007, how many drivers not finished the game?
SELECT COUNT(T3.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
862
simple
Show me the season page of year when the race No. 901 took place.
SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
863
simple
For the race happened on 2015/11/29, how many drivers finished the game?
SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NOT NULL
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
864
simple
For all the drivers who finished the game in race No. 592, who is the oldest?
SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
865
moderate
Who was the player that got the lap time of 0:01:27 in the race No. 161? Show his introduction website.
SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
866
moderate
For the driver who set the fastest lap speed in race No.933, where does he come from?
SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 933 AND T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
867
simple
Where is Malaysian Grand Prix held? Give the location coordinates.
SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
868
simple
For the constructor which got the highest point in the race No. 9 , what is its introduction website?
SELECT T2.url FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 9 ORDER BY T1.points DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
869
moderate
What's Lucas di Grassi's Q1 result in the race No. 345?
SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 345 AND T2.forename = 'Lucas' AND T2.surname = 'di Grassi'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
870
simple
For the driver who had the Q2 time as 0:01:15 in race No. 347, where is he from?
SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 347 AND T1.q2 LIKE '1:15%'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
871
simple
In the race No. 45, for the driver who had the Q3 time as 0:01:33, what is his abbreviated code?
SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
872
simple
What is the actual finish time for Bruce McLaren in the race No.743?
SELECT T2.time FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 743 AND T1.forename = 'Bruce' AND T1.surname = 'McLaren'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
873
simple
Who finished second in the San Marino Grand Prix in 2006?
SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2006 AND T1.name = 'San Marino Grand Prix' AND T2.position = 2
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
874
simple
Show me the season page of year when the race No. 901 took place.
SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
875
simple
For the race happened in 2015/11/29, how many drivers finished the game?
SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NOT NULL
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
876
simple
For all the drivers who finished the game in race No. 872, who is the youngest?
SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
877
moderate
Who was the driver that got the best lap time in the race No. 348? Give his full name.
SELECT T2.forename, T2.surname FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 348 ORDER BY T1.time ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
878
simple
For the driver who set the fastest lap speed, what is his nationality?
SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
879
moderate
Paul di Resta was in the No. 853 race, what percent faster did he finish in the 853rd race than the next race for the fastest lap speed?
SELECT (SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) - SUM(IIF(T2.raceId = 854, T2.fastestLapSpeed, 0))) * 100 / SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T1.forename = 'Paul' AND T1.surname = 'di Resta'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
880
challenging
For the drivers who took part in the race in 1983/7/16, what's their race completion rate?
SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
881
moderate
Which year was the first Singapore Grand Prix?
SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
882
simple
How many races were there in 2005? Name all the races in descending order.
SELECT name FROM races WHERE year = 2005 ORDER BY name DESC
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
883
simple
Name the first race recorded. What are the other races that happened within the same month and year of that race.
SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
884
moderate
State the name and date of the last round of race in year 1999.
SELECT name, date FROM races WHERE year = 1999 ORDER BY round DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
885
simple
Which year has the most number of races?
SELECT year FROM races GROUP BY year ORDER BY COUNT(round) DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
886
simple
Name the races in year 2017 that are not hosted in year 2000.
SELECT name FROM races WHERE year = 2017 AND name NOT IN ( SELECT name FROM races WHERE year = 2000 )
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
887
simple
In which country was the first European Grand Prix hosted? Name the circuit and location.
SELECT T1.country, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix' ORDER BY T2.year ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
888
simple
When was the last f1 season whereby Brands Hatch hosted the British Grand Prix?
SELECT T2.date FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Brands Hatch' AND T2.name = 'British Grand Prix' ORDER BY T2.year DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
889
simple
How many seasons has Silverstone Circuit hosted the United Kindom grand prix?
SELECT COUNT(T2.circuitid) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Silverstone Circuit' AND T2.name = 'British Grand Prix'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
890
simple
Name all drivers in the 2010 Singapore Grand Prix order by their position stands.
SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Singapore Grand Prix' AND T1.year = 2010 ORDER BY T2.position ASC
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
891
simple
State the driver with the most points scored. Find his full name with that points.
SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId ORDER BY T2.points DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
892
moderate
Name the top 3 drivers and the points they scored in the 2017 Chinese Grand Prix.
SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Chinese Grand Prix' AND T1.year = 2017 ORDER BY T2.points DESC LIMIT 3
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
893
simple
What is the best lap time recorded? List the driver and race with such recorded lap time.
SELECT T2.milliseconds, T1.forename, T1.surname, T3.name FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId ORDER BY T2.milliseconds ASC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
894
moderate
What is the average lap time for Sebastian Vettel in the 2009 Chinese Grand Prix?
SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Sebastian' AND T3.surname = 'Vettel' AND T1.year = 2009 AND T1.name = 'Chinese GrAND Prix'
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
895
moderate
Calculate the percentage whereby Hamilton was not at the 1st track of the the f1 circuit since 2010.
SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
896
challenging
Name the driver with the most winning. Mention his nationality and what is his average point scores.
SELECT T1.forename, T1.surname, T1.nationality, AVG(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins = 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
897
moderate
How old is the youngest Japanese driver? What is his name?
SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
898
simple
List circuits which host 4 f1 races from year 1990 to 2000.
SELECT DISTINCT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE STRFTIME('%Y', T2.date) BETWEEN '1990' AND '2000' GROUP BY T1.name HAVING COUNT(T2.raceId) = 4
formula_1
You are a proficient SQLite database engineer. You think step by step and give clear and concise answer. ### Here are all the tables with their properties in a SQLite Database. # #circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ...
899
moderate