index
int32
0
1.03k
db_id
stringclasses
20 values
question
stringlengths
18
174
db_info
stringlengths
1
1.79k
ground_truth
stringlengths
20
474
1,000
singer
How many singers are there?
| singer: singer_id, name, birth_year, net_worth_millions, citizenship | song: song_id, singer_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select count ( * ) from singer
1,001
singer
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 |
select count ( * ) from singer
1,002
singer
List the name of singers in ascending order of net worth.
| singer: name, net_worth_millions, singer_id, birth_year, citizenship | song: singer_id, song_id, title, sales, highest_position |
select name from singer order by net_worth_millions asc
1,003
singer
What are the names of singers ordered by ascending net worth?
| singer: name, net_worth_millions, singer_id, birth_year, citizenship | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer order by net_worth_millions asc
1,004
singer
What are the birth year and citizenship of singers?
| singer: singer_id, birth_year, citizenship, name, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select birth_year , citizenship from singer
1,005
singer
What are the birth years and citizenships of the singers?
| singer: birth_year, citizenship, singer_id, name, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select birth_year , citizenship from singer
1,006
singer
List the name of singers whose citizenship is not "France".
| singer: name, citizenship, singer_id, birth_year, net_worth_millions | song: song_id, title, singer_id, sales, highest_position |
select name from singer where citizenship != 'France'
1,007
singer
What are the names of the singers who are not French citizens?
| singer: name, citizenship, singer_id, birth_year, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer where citizenship != 'France'
1,008
singer
Show the name of singers whose birth year is either 1948 or 1949?
| singer: birth_year, name, singer_id, net_worth_millions, citizenship |
select name from singer where birth_year = 1948 or birth_year = 1949
1,009
singer
What are the names of the singers whose birth years are either 1948 or 1949?
| singer: birth_year, name, singer_id, net_worth_millions, citizenship | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer where birth_year = 1948 or birth_year = 1949
1,010
singer
What is the name of the singer with the largest net worth?
| singer: net_worth_millions, name, singer_id, birth_year, citizenship | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer order by net_worth_millions desc limit 1
1,011
singer
What is the name of the singer who is worth the most?
| singer: net_worth_millions, name, singer_id, citizenship, birth_year | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer order by net_worth_millions desc limit 1
1,012
singer
Show different citizenship of singers and the number of singers of each citizenship.
| singer: citizenship, singer_id, name, birth_year, net_worth_millions | song: singer_id, song_id, title, sales, highest_position |
select citizenship , count ( * ) from singer group by citizenship
1,013
singer
For each citizenship, how many singers are from that country?
| singer: citizenship, singer_id, name, birth_year, net_worth_millions | song: singer_id, song_id, title, sales, highest_position |
select citizenship , count ( * ) from singer group by citizenship
1,014
singer
Please show the most common citizenship of singers.
| singer: citizenship, singer_id, name, birth_year, net_worth_millions | song: (no relevant columns) |
select citizenship from singer group by citizenship order by count ( * ) desc limit 1
1,015
singer
What is the most common singer citizenship ?
| singer: citizenship, singer_id, name, birth_year, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select citizenship from singer group by citizenship order by count ( * ) desc limit 1
1,016
singer
Show different citizenships and the maximum net worth of singers of each citizenship.
| singer: citizenship, net_worth_millions, singer_id | song: singer_id |
select citizenship , max ( net_worth_millions ) from singer group by citizenship
1,017
singer
For each citizenship, what is the maximum net worth?
| singer: citizenship, net_worth_millions, singer_id, name, birth_year | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select citizenship , max ( net_worth_millions ) from singer group by citizenship
1,018
singer
Show titles of songs and names of singers.
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: title, singer_id, song_id, sales, highest_position |
select song.title , singer.name from singer join song on singer.singer_id = song.singer_id
1,019
singer
What are the song titles and singer names?
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: title, singer_id, song_id, sales, highest_position | song.singer_id = singer.singer_id |
select song.title , singer.name from singer join song on singer.singer_id = song.singer_id
1,020
singer
Show distinct names of singers that have songs with sales more than 300000.
| singer: singer_id, name, birth_year, net_worth_millions, citizenship | song: sales, singer_id, song_id, title, highest_position | song.singer_id = singer.singer_id |
select distinct singer.name from singer join song on singer.singer_id = song.singer_id where song.sales > 300000
1,021
singer
what are the different names of the singers that have sales more than 300000?
| singer: name, singer_id, net_worth_millions, birth_year, citizenship | song: sales, singer_id, song_id, title, highest_position | song.singer_id = singer.singer_id |
select distinct singer.name from singer join song on singer.singer_id = song.singer_id where song.sales > 300000
1,022
singer
Show the names of singers that have more than one song.
| singer: singer_id, name, birth_year, net_worth_millions, citizenship | song: singer_id, title, song_id, sales, highest_position |
select singer.name from singer join song on singer.singer_id = song.singer_id group by singer.name having count ( * ) > 1
1,023
singer
What are the names of the singers that have more than one songs?
| singer: singer_id, name, birth_year, net_worth_millions, citizenship | song: singer_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select singer.name from singer join song on singer.singer_id = song.singer_id group by singer.name having count ( * ) > 1
1,024
singer
Show the names of singers and the total sales of their songs.
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: sales, singer_id, song_id, title, highest_position | song.singer_id = singer.singer_id |
select singer.name , sum ( song.sales ) from singer join song on singer.singer_id = song.singer_id group by singer.name
1,025
singer
For each singer name, what is the total sales for their songs?
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: sales, singer_id, song_id, title, highest_position | song.singer_id = singer.singer_id |
select singer.name , sum ( song.sales ) from singer join song on singer.singer_id = song.singer_id group by singer.name
1,026
singer
List the name of singers that do not have any song.
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: singer_id, song_id, title, sales, highest_position |
select name from singer where singer_id not in ( select singer_id from song )
1,027
singer
What is the sname of every sing that does not have any song?
| singer: name, singer_id, birth_year, net_worth_millions, citizenship | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select name from singer where singer_id not in ( select singer_id from song )
1,028
singer
Show the citizenship shared by singers with birth year before 1945 and after 1955.
| singer: birth_year, citizenship, singer_id, name, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955
1,029
singer
What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?
| singer: citizenship, birth_year, singer_id, name, net_worth_millions | song: singer_id, song_id, title, sales, highest_position | song.singer_id = singer.singer_id |
select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955
1,030
real_estate_properties
How many available features are there in total?
| other_available_features: feature_id, feature_type_code, feature_name, feature_description | other_property_features: feature_id, property_id, property_feature_description | ref_feature_types: feature_type_code, feature_type_name | 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 | ref_property_types: property_type_code, property_type_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 |
select count ( * ) from other_available_features
1,031
real_estate_properties
What is the feature type name of feature AirCon?
| other_available_features: feature_name, feature_type_code, feature_id, feature_description | ref_feature_types: feature_type_name, feature_type_code |
select ref_feature_types.feature_type_name from other_available_features join ref_feature_types on other_available_features.feature_type_code = ref_feature_types.feature_type_code where other_available_features.feature_name = 'AirCon'
1,032
real_estate_properties
Show the property type descriptions of properties belonging to that code.
| ref_property_types: property_type_code, property_type_description | properties: property_type_code, property_id | other_property_features: property_id, feature_id, property_feature_description | other_available_features: feature_type_code, feature_id, feature_name, feature_description | ref_feature_types: feature_type_code, feature_type_name | 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 |
select ref_property_types.property_type_description from properties join ref_property_types on properties.property_type_code = ref_property_types.property_type_code group by properties.property_type_code
1,033
real_estate_properties
What are the names of properties that are either houses or apartments with more than 1 room?
| properties: room_count, property_type_code, property_name | ref_property_types: property_type_code, property_type_description | properties.property_type_code = ref_property_types.property_type_code |
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