gaoyzz/spider_prompt huggingface dataset:
column_names: -1
*
0
feature type code
0
feature type name
1
property type code
1
property type description
2
feature id
2
feature type code
2
feature name
2
feature description
3
property id
3
property type code
3
date on market
3
date sold
3
property name
3
property address
3
room count
3
vendor requested price
3
buyer offered price
3
agreed selling price
3
apt feature 1
3
apt feature 2
3
apt feature 3
3
fld feature 1
3
fld feature 2
3
fld feature 3
3
hse feature 1
3
hse feature 2
3
hse feature 3
3
oth feature 1
3
oth feature 2
3
oth feature 3
3
shp feature 1
3
shp feature 2
3
shp feature 3
3
other property details
4
property id
4
feature id
4
property feature description
column_names_original: -1
*
0
feature_type_code
0
feature_type_name
1
property_type_code
1
property_type_description
2
feature_id
2
feature_type_code
2
feature_name
2
feature_description
3
property_id
3
property_type_code
3
date_on_market
3
date_sold
3
property_name
3
property_address
3
room_count
3
vendor_requested_price
3
buyer_offered_price
3
agreed_selling_price
3
apt_feature_1
3
apt_feature_2
3
apt_feature_3
3
fld_feature_1
3
fld_feature_2
3
fld_feature_3
3
hse_feature_1
3
hse_feature_2
3
hse_feature_3
3
oth_feature_1
3
oth_feature_2
3
oth_feature_3
3
shp_feature_1
3
shp_feature_2
3
shp_feature_3
3
other_property_details
4
property_id
4
feature_id
4
property_feature_description
column_types: text
text
text
text
text
number
text
text
text
number
text
time
time
text
text
number
number
number
number
text
text
text
text
text
text
text
text
text
text
text
text
text
text
text
text
number
number
text
db_id: real_estate_properties
table_names: reference feature types
reference property types
other available features
properties
other property features
table_names_original: Ref_Feature_Types
Ref_Property_Types
Other_Available_Features
Properties
Other_Property_Features

How many available features are there in total?
SELECT count(*) FROM Other_Available_Features

What is the feature type name of feature AirCon?
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"

Show the property type descriptions of properties belonging to that code.
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

What are the names of properties that are either houses or apartments with more than 1 room?
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