db_id stringclasses 20
values | query stringlengths 25 323 | question stringlengths 22 144 | create_w_keys stringclasses 20
values | create_wo_keys stringclasses 20
values | difficulty stringclasses 4
values | zero_shot_request stringlengths 527 3.29k |
|---|---|---|---|---|---|---|
singer | SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 | Show the name of singers whose birth year is either 1948 or 1949? | CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Song_ID" int, "Title" text, "Singer_ID" int, "Sales" real, "Highest_Position" real, PRIMARY KEY ("Song_ID"), FOREIGN KEY ("Singer_ID") REFERENCES `s... | CREATE TABLE singer (Singer_ID INT, Name TEXT, Birth_Year REAL, Net_Worth_Millions REAL, Citizenship TEXT); CREATE TABLE song (Song_ID INT, Title TEXT, Singer_ID INT, Sales REAL, Highest_Position REAL); | medium | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Son... |
singer | SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 | What is the name of the singer with the largest net worth? | CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Song_ID" int, "Title" text, "Singer_ID" int, "Sales" real, "Highest_Position" real, PRIMARY KEY ("Song_ID"), FOREIGN KEY ("Singer_ID") REFERENCES `s... | CREATE TABLE singer (Singer_ID INT, Name TEXT, Birth_Year REAL, Net_Worth_Millions REAL, Citizenship TEXT); CREATE TABLE song (Song_ID INT, Title TEXT, Singer_ID INT, Sales REAL, Highest_Position REAL); | medium | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Son... |
singer | SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common citizenship of singers. | CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Song_ID" int, "Title" text, "Singer_ID" int, "Sales" real, "Highest_Position" real, PRIMARY KEY ("Song_ID"), FOREIGN KEY ("Singer_ID") REFERENCES `s... | CREATE TABLE singer (Singer_ID INT, Name TEXT, Birth_Year REAL, Net_Worth_Millions REAL, Citizenship TEXT); CREATE TABLE song (Song_ID INT, Title TEXT, Singer_ID INT, Sales REAL, Highest_Position REAL); | hard | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Son... |
singer | select citizenship from singer group by citizenship order by count(*) desc limit 1 | What is the most common singer citizenship ? | CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Song_ID" int, "Title" text, "Singer_ID" int, "Sales" real, "Highest_Position" real, PRIMARY KEY ("Song_ID"), FOREIGN KEY ("Singer_ID") REFERENCES `s... | CREATE TABLE singer (Singer_ID INT, Name TEXT, Birth_Year REAL, Net_Worth_Millions REAL, Citizenship TEXT); CREATE TABLE song (Song_ID INT, Title TEXT, Singer_ID INT, Sales REAL, Highest_Position REAL); | hard | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Son... |
singer | SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song) | List the name of singers that do not have any song. | CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Song_ID" int, "Title" text, "Singer_ID" int, "Sales" real, "Highest_Position" real, PRIMARY KEY ("Song_ID"), FOREIGN KEY ("Singer_ID") REFERENCES `s... | CREATE TABLE singer (Singer_ID INT, Name TEXT, Birth_Year REAL, Net_Worth_Millions REAL, Citizenship TEXT); CREATE TABLE song (Song_ID INT, Title TEXT, Singer_ID INT, Sales REAL, Highest_Position REAL); | hard | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Birth_Year" real, "Net_Worth_Millions" real, "Citizenship" text, PRIMARY KEY ("Singer_ID") ); CREATE TABLE "song" ( "Son... |
real_estate_properties | SELECT count(*) FROM Other_Available_Features | How many available features are there in total? | CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VARCHAR(20) PRIMARY KEY, `property_type_description` VARCHAR(80) ); CREATE TABLE `Other_Available_Features` ( `feature_id` INTEGER PRIMARY KEY, `fea... | CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR(20), feature_type_name VARCHAR(80)); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR(20), property_type_description VARCHAR(80)); CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR(20), feature_name VARCHAR(80), feat... | easy | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VAR... |
real_estate_properties | SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon" | What is the feature type name of feature AirCon? | CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VARCHAR(20) PRIMARY KEY, `property_type_description` VARCHAR(80) ); CREATE TABLE `Other_Available_Features` ( `feature_id` INTEGER PRIMARY KEY, `fea... | CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR(20), feature_type_name VARCHAR(80)); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR(20), property_type_description VARCHAR(80)); CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR(20), feature_name VARCHAR(80), feat... | medium | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VAR... |
real_estate_properties | SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code | Show the property type descriptions of properties belonging to that code. | CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VARCHAR(20) PRIMARY KEY, `property_type_description` VARCHAR(80) ); CREATE TABLE `Other_Available_Features` ( `feature_id` INTEGER PRIMARY KEY, `fea... | CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR(20), feature_type_name VARCHAR(80)); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR(20), property_type_description VARCHAR(80)); CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR(20), feature_name VARCHAR(80), feat... | medium | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VAR... |
real_estate_properties | SELECT property_name FROM Properties WHERE property_type_code = "House" UNION SELECT property_name FROM Properties WHERE property_type_code = "Apartment" AND room_count > 1 | What are the names of properties that are either houses or apartments with more than 1 room? | CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VARCHAR(20) PRIMARY KEY, `property_type_description` VARCHAR(80) ); CREATE TABLE `Other_Available_Features` ( `feature_id` INTEGER PRIMARY KEY, `fea... | CREATE TABLE Ref_Feature_Types (feature_type_code VARCHAR(20), feature_type_name VARCHAR(80)); CREATE TABLE Ref_Property_Types (property_type_code VARCHAR(20), property_type_description VARCHAR(80)); CREATE TABLE Other_Available_Features (feature_id INTEGER, feature_type_code VARCHAR(20), feature_name VARCHAR(80), feat... | hard | Provide the SQL query that answers the QUESTION, with no explanation or special characters. CONTEXT: Relevant SQL tables, with their properties: CREATE TABLE `Ref_Feature_Types` ( `feature_type_code` VARCHAR(20) PRIMARY KEY, `feature_type_name` VARCHAR(80) ); CREATE TABLE `Ref_Property_Types` ( `property_type_code` VAR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.