dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 897 4.29k | messages listlengths 2 2 | question stringlengths 18 174 | sample_id int64 0 1.03k | db_id stringclasses 20
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many singers are there? | 1,000 | singer | [
"SELECT count(*) FROM singer"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the count of singers? | 1,001 | singer | [
"SELECT count(*) FROM singer"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the name of singers in ascending order of net worth. | 1,002 | singer | [
"SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of singers ordered by ascending net worth? | 1,003 | singer | [
"SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the birth year and citizenship of singers? | 1,004 | singer | [
"SELECT Birth_Year , Citizenship FROM singer"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the birth years and citizenships of the singers? | 1,005 | singer | [
"SELECT Birth_Year , Citizenship FROM singer"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the name of singers whose citizenship is not "France". | 1,006 | singer | [
"SELECT Name FROM singer WHERE Citizenship != \"France\""
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the singers who are not French citizens? | 1,007 | singer | [
"SELECT Name FROM singer WHERE Citizenship != \"France\""
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the name of singers whose birth year is either 1948 or 1949? | 1,008 | singer | [
"SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the singers whose birth years are either 1948 or 1949? | 1,009 | singer | [
"SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of the singer with the largest net worth? | 1,010 | singer | [
"SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of the singer who is worth the most? | 1,011 | singer | [
"SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show different citizenship of singers and the number of singers of each citizenship. | 1,012 | singer | [
"SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For each citizenship, how many singers are from that country? | 1,013 | singer | [
"SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Please show the most common citizenship of singers. | 1,014 | singer | [
"SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the most common singer citizenship ? | 1,015 | singer | [
"select citizenship from singer group by citizenship order by count(*) desc limit 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show different citizenships and the maximum net worth of singers of each citizenship. | 1,016 | singer | [
"SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For each citizenship, what is the maximum net worth? | 1,017 | singer | [
"SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show titles of songs and names of singers. | 1,018 | singer | [
"SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the song titles and singer names? | 1,019 | singer | [
"SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show distinct names of singers that have songs with sales more than 300000. | 1,020 | singer | [
"SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | what are the different names of the singers that have sales more than 300000? | 1,021 | singer | [
"SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of singers that have more than one song. | 1,022 | singer | [
"SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the singers that have more than one songs? | 1,023 | singer | [
"SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of singers and the total sales of their songs. | 1,024 | singer | [
"SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For each singer name, what is the total sales for their songs? | 1,025 | singer | [
"SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the name of singers that do not have any song. | 1,026 | singer | [
"SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the sname of every sing that does not have any song? | 1,027 | singer | [
"SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the citizenship shared by singers with birth year before 1945 and after 1955. | 1,028 | singer | [
"SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955"
] |
spider | dev | Database Schema:
Table singer
singer.Name: TEXT - name
Sample values: "Liliane Bettencourt", "Christy Walton", "Alice Walton", "Iris Fontbona", "Jacqueline Mars"
singer.Net_Worth_Millions: REAL - net worth millions
Sample values: "30.0", "28.8", "26.3", "17.4", "17.8"
singer.Citizenship: TEXT - citizensh... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the citizenships that are shared by singers with a birth year before 1945 and after 1955? | 1,029 | singer | [
"SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955"
] |
spider | dev | Database Schema:
Table Ref_Feature_Types
Ref_Feature_Types.feature_type_name: VARCHAR(80) - feature type name
Sample values: "Amenity, eg Pool.", "Securiyt, eg Burglar Alarm."
Ref_Feature_Types.feature_type_code: VARCHAR(20) PRIMARY KEY - feature type code
Sample values: "Amenity", "Security"
Table Other_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many available features are there in total? | 1,030 | real_estate_properties | [
"SELECT count(*) FROM Other_Available_Features"
] |
spider | dev | Database Schema:
Table Properties
Properties.fld_feature_3: VARCHAR(255) - fld feature 3
Contains null values: True
Properties.oth_feature_3: VARCHAR(255) - oth feature 3
Contains null values: True
Properties.apt_feature_3: VARCHAR(255) - apt feature 3
Contains null values: True
Properties.property... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the feature type name of feature AirCon? | 1,031 | 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\""
] |
spider | dev | Database Schema:
Table Properties
Properties.agreed_selling_price: DECIMAL(19,4) - agreed selling price
Sample values: "4201.8", "21769471.8328", "5", "4514.807", "1.0012"
Properties.property_type_code: VARCHAR(20) - property type code
Sample values: "House", "Other", "Field", "Apartment", "Shop"
Propert... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the property type descriptions of properties belonging to that code. | 1,032 | 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"
] |
spider | dev | Database Schema:
Table Properties
Properties.agreed_selling_price: DECIMAL(19,4) - agreed selling price
Sample values: "4201.8", "21769471.8328", "5", "4514.807", "1.0012"
Properties.fld_feature_3: VARCHAR(255) - fld feature 3
Contains null values: True
Properties.oth_feature_3: VARCHAR(255) - oth featur... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of properties that are either houses or apartments with more than 1 room? | 1,033 | 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"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.