db_id
stringclasses
20 values
prompt
stringlengths
424
2.17k
ground_truth
stringlengths
27
254
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many singers are there? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select count ( singer.* ) from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the count of singers? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select count ( singer.* ) from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the name of singers in ascending order of net worth. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer order by singer.Net_Worth_Millions asc
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of singers ordered by ascending net worth? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer order by singer.Net_Worth_Millions asc
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the birth year and citizenship of singers? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Birth_Year , singer.Citizenship from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the birth years and citizenships of the singers? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Birth_Year , singer.Citizenship from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the name of singers whose citizenship is not "France". | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where singer.Citizenship != "France"
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the singers who are not French citizens? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where singer.Citizenship != "France"
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the name of singers whose birth year is either 1948 or 1949? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where singer.Birth_Year = 1948 or singer.Birth_Year = 1949
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the singers whose birth years are either 1948 or 1949? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where singer.Birth_Year = 1948 or singer.Birth_Year = 1949
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the name of the singer with the largest net worth? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer order by singer.Net_Worth_Millions desc limit 1
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the name of the singer who is worth the most? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer order by singer.Net_Worth_Millions desc limit 1
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show different citizenship of singers and the number of singers of each citizenship. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship , count ( singer.* ) from singer group by singer.Citizenship
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: For each citizenship, how many singers are from that country? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship , count ( singer.* ) from singer group by singer.Citizenship
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Please show the most common citizenship of singers. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship from singer group by singer.Citizenship order by count ( singer.* ) desc limit 1
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the most common singer citizenship ? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship from singer group by singer.Citizenship order by count ( singer.* ) desc limit 1
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show different citizenships and the maximum net worth of singers of each citizenship. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship , max ( singer.Net_Worth_Millions ) from singer group by singer.Citizenship
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: For each citizenship, what is the maximum net worth? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship , max ( singer.Net_Worth_Millions ) from singer group by singer.Citizenship
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show titles of songs and names of singers. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select song.Title , singer.Name from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the song titles and singer names? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select song.Title , singer.Name from singer
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show distinct names of singers that have songs with sales more than 300000. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select distinct singer.Name from singer where song.Sales > 300000
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: what are the different names of the singers that have sales more than 300000? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select distinct singer.Name from singer where song.Sales > 300000
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the names of singers that have more than one song. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where count ( song.* ) > 1 group by singer.Name
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the singers that have more than one songs? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where count ( song.* ) > 1 group by singer.Name
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the names of singers and the total sales of their songs. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name , sum ( song.Sales ) from singer group by singer.Name
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: For each singer name, what is the total sales for their songs? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name , sum ( song.Sales ) from singer group by singer.Name
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the name of singers that do not have any song. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where @.@ not in song.*
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the sname of every sing that does not have any song? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Name from singer where @.@ not in song.*
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the citizenship shared by singers with birth year before 1945 and after 1955. | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship from singer where singer.Birth_Year < 1945 and singer.Birth_Year > 1955
singer
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the citizenships that are shared by singers with a birth year before 1945 and after 1955? | singer : singer_id , name , birth_year , net_worth_millions , citizenship | song : song_id , title , singer_id , sales , highest_position | song.singer_id = singer.singer_id | ### Response:
select singer.Citizenship from singer where singer.Birth_Year < 1945 and singer.Birth_Year > 1955
real_estate_properties
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many available features are there in total? | ref_feature_types : feature_type_code , feature_type_name | ref_property_types : property_type_code , property_type_description | other_available_features : feature_id , feature_type_code , feature_name , feature_description | properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | other_property_features : property_id , feature_id , property_feature_description | other_available_features.feature_type_code = ref_feature_types.feature_type_code | properties.property_type_code = ref_property_types.property_type_code | other_property_features.property_id = properties.property_id | other_property_features.feature_id = other_available_features.feature_id | ### Response:
select count ( other_available_features.* ) from other_available_features
real_estate_properties
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the feature type name of feature AirCon? | ref_feature_types : feature_type_code , feature_type_name | ref_property_types : property_type_code , property_type_description | other_available_features : feature_id , feature_type_code , feature_name , feature_description | properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | other_property_features : property_id , feature_id , property_feature_description | other_available_features.feature_type_code = ref_feature_types.feature_type_code | properties.property_type_code = ref_property_types.property_type_code | other_property_features.property_id = properties.property_id | other_property_features.feature_id = other_available_features.feature_id | ### Response:
select ref_feature_types.feature_type_name from other_available_features where other_available_features.feature_name = "AirCon"
real_estate_properties
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the property type descriptions of properties belonging to that code. | ref_feature_types : feature_type_code , feature_type_name | ref_property_types : property_type_code , property_type_description | other_available_features : feature_id , feature_type_code , feature_name , feature_description | properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | other_property_features : property_id , feature_id , property_feature_description | other_available_features.feature_type_code = ref_feature_types.feature_type_code | properties.property_type_code = ref_property_types.property_type_code | other_property_features.property_id = properties.property_id | other_property_features.feature_id = other_available_features.feature_id | ### Response:
select ref_property_types.property_type_description from ref_property_types where @.@ join properties.* group by properties.property_type_code
real_estate_properties
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of properties that are either houses or apartments with more than 1 room? | ref_feature_types : feature_type_code , feature_type_name | ref_property_types : property_type_code , property_type_description | other_available_features : feature_id , feature_type_code , feature_name , feature_description | properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | other_property_features : property_id , feature_id , property_feature_description | other_available_features.feature_type_code = ref_feature_types.feature_type_code | properties.property_type_code = ref_property_types.property_type_code | other_property_features.property_id = properties.property_id | other_property_features.feature_id = other_available_features.feature_id | ### Response:
select properties.property_name from properties where properties.property_type_code = "House" or properties.property_type_code = "Apartment" and properties.room_count > 1