db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
inn_1
|
What is the total number of rooms available in this inn?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text)
| 0.9375 |
inn_1
|
Find the number of rooms with a king bed.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , roomid (text)
| 0.875 |
inn_1
|
How many rooms have a king bed?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , roomid (text)
| 0.875 |
inn_1
|
Find the number of rooms for each bed type.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , roomid (text)
| 0.875 |
inn_1
|
What are the number of rooms for each bed type?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , roomid (text)
| 0.875 |
inn_1
|
Find the name of the room with the maximum occupancy.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , maxoccupancy (number)
| 0.875 |
inn_1
|
What is the name of the room that can accommodate the most people?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , maxoccupancy (number)
| 0.875 |
inn_1
|
Find the id and name of the most expensive base price room.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) , roomname (text) , baseprice (number)
| 0.8125 |
inn_1
|
Which room has the highest base price?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) , roomname (text) , baseprice (number)
| 0.8125 |
inn_1
|
List the type of bed and name of all traditional rooms.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , bedtype (text) , decor (text)
| 0.8125 |
inn_1
|
What are the bed type and name of all the rooms with traditional decor?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , bedtype (text) , decor (text)
| 0.8125 |
inn_1
|
Find the number of rooms with king bed for each decor type.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , bedtype (text) , roomid (text)
| 0.8125 |
inn_1
|
How many rooms have king beds? Report the number for each decor type.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , bedtype (text) , roomid (text)
| 0.8125 |
inn_1
|
Find the average and minimum price of the rooms in different decor.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , baseprice (number)
| 0.875 |
inn_1
|
What is the average minimum and price of the rooms for each different decor.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , baseprice (number)
| 0.875 |
inn_1
|
List the name of all rooms sorted by their prices.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
Sort all the rooms according to the price. Just report the room names.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
Find the number of rooms with price higher than 120 for different decor.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , baseprice (number) , roomid (text)
| 0.8125 |
inn_1
|
How many rooms cost more than 120, for each different decor?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : decor (text) , baseprice (number) , roomid (text)
| 0.8125 |
inn_1
|
For each bed type, find the average room price.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , baseprice (number)
| 0.875 |
inn_1
|
What is the average base price of rooms, for each bed type?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text) , baseprice (number)
| 0.875 |
inn_1
|
List the name of rooms with king or queen bed.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , bedtype (text)
| 0.875 |
inn_1
|
What are the names of rooms that have either king or queen bed?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , bedtype (text)
| 0.875 |
inn_1
|
How many different types of beds are there?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text)
| 0.9375 |
inn_1
|
Find the number of distinct bed types available in this inn.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : bedtype (text)
| 0.9375 |
inn_1
|
Find the name and id of the top 3 expensive rooms.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) , roomname (text) , baseprice (number)
| 0.8125 |
inn_1
|
What are the name and id of the three highest priced rooms?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) , roomname (text) , baseprice (number)
| 0.8125 |
inn_1
|
Find the name of rooms whose price is higher than the average price.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
What are the name of rooms that cost more than the average.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
Find the number of rooms that do not have any reservation.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) | reservations : room (text) , code (number)
| 0.8125 |
inn_1
|
How many rooms have not had any reservation yet?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomid (text) | reservations : room (text) , code (number)
| 0.8125 |
inn_1
|
Return the name and number of reservations made for each of the rooms.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)
| 0.75 |
inn_1
|
For each room, find its name and the number of times reservations were made for it.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)
| 0.75 |
inn_1
|
Find the names of rooms that have been reserved for more than 60 times.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)
| 0.75 |
inn_1
|
What are the names of rooms whose reservation frequency exceeds 60 times?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)
| 0.75 |
inn_1
|
Find the name of rooms whose base price is between 120 and 150.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
Which rooms cost between 120 and 150? Give me the room names.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , baseprice (number)
| 0.875 |
inn_1
|
Find the name of rooms booked by some customers whose first name contains ROY.
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , firstname (text)
| 0.75 |
inn_1
|
What are the name of rooms booked by customers whose first name has "ROY" in part?
|
rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)
|
rooms : roomname (text) , roomid (text) | reservations : room (text) , firstname (text)
| 0.75 |
local_govt_mdm
|
what are the details of the cmi masters that have the cross reference code 'Tax'?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
customer_master_index : cmi_details (text) , master_customer_id (number) | cmi_cross_references : master_customer_id (number) , source_system_code (text)
| 0.764706 |
local_govt_mdm
|
What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : cmi_cross_ref_id (number) , source_system_code (text) | council_tax : cmi_cross_ref_id (number) , council_tax_id (number)
| 0.764706 |
local_govt_mdm
|
How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) | business_rates : cmi_cross_ref_id (number) , business_rates_id (number)
| 0.764706 |
local_govt_mdm
|
What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : source_system_code (text) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number)
| 0.764706 |
local_govt_mdm
|
Wat is the tax source system code and master customer id of the taxes related to each parking fine id?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : source_system_code (text) , master_customer_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number)
| 0.705882 |
local_govt_mdm
|
What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) | customer_master_index : master_customer_id (number) , cmi_details (text)
| 0.647059 |
local_govt_mdm
|
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number) | cmi_cross_references : cmi_cross_ref_id (number) , source_system_code (text)
| 0.764706 |
local_govt_mdm
|
How many different source system code for the cmi cross references are there?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : source_system_code (text)
| 0.941176 |
local_govt_mdm
|
List all information about customer master index, and sort them by details in descending order.
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
customer_master_index : cmi_details (text) , master_customer_id (number)
| 0.882353 |
local_govt_mdm
|
List the council tax ids and their related cmi cross references of all the parking fines.
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
parking_fines : council_tax_id (number) , cmi_cross_ref_id (number)
| 0.882353 |
local_govt_mdm
|
How many council taxes are collected for renting arrears ?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
rent_arrears : council_tax_id (number)
| 0.941176 |
local_govt_mdm
|
What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : source_system_code (text) , master_customer_id (number) | customer_master_index : master_customer_id (number) , cmi_details (text)
| 0.764706 |
local_govt_mdm
|
Which cmi cross reference id is not related to any parking taxes?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : cmi_cross_ref_id (number) | parking_fines : cmi_cross_ref_id (number)
| 0.882353 |
local_govt_mdm
|
Which distinct source system code includes the substring 'en'?
|
customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)
|
cmi_cross_references : source_system_code (text)
| 0.941176 |
party_host
|
How many parties are there?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_id (number)
| 0.923077 |
party_host
|
Count the number of parties.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_id (number)
| 0.923077 |
party_host
|
List the themes of parties in ascending order of number of hosts.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , number_of_hosts (number)
| 0.846154 |
party_host
|
What are the themes of parties ordered by the number of hosts in ascending manner?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , number_of_hosts (number)
| 0.846154 |
party_host
|
What are the themes and locations of parties?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , location (text)
| 0.846154 |
party_host
|
Give me the theme and location of each party.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , location (text)
| 0.846154 |
party_host
|
Show the first year and last year of parties with theme "Spring" or "Teqnology".
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : first_year (text) , last_year (text) , party_theme (text)
| 0.769231 |
party_host
|
What are the first year and last year of the parties whose theme is "Spring" or "Teqnology"?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : first_year (text) , last_year (text) , party_theme (text)
| 0.769231 |
party_host
|
What is the average number of hosts for parties?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : number_of_hosts (number)
| 0.923077 |
party_host
|
Compute the average number of hosts for parties.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : number_of_hosts (number)
| 0.923077 |
party_host
|
What is the location of the party with the most hosts?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , number_of_hosts (number)
| 0.846154 |
party_host
|
Which party had the most hosts? Give me the party location.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , number_of_hosts (number)
| 0.846154 |
party_host
|
Show different nationalities along with the number of hosts of each nationality.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , host_id (number)
| 0.846154 |
party_host
|
How many hosts does each nationality have? List the nationality and the count.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , host_id (number)
| 0.846154 |
party_host
|
Show the most common nationality of hosts.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , host_id (number)
| 0.846154 |
party_host
|
Which nationality has the most hosts?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , host_id (number)
| 0.846154 |
party_host
|
Show the nations that have both hosts older than 45 and hosts younger than 35.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , age (text)
| 0.846154 |
party_host
|
Which nations have both hosts of age above 45 and hosts of age below 35?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : nationality (text) , age (text)
| 0.846154 |
party_host
|
Show the themes of parties and the names of the party hosts.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , party_id (number) | host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number)
| 0.538462 |
party_host
|
For each party, return its theme and the name of its host.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : party_theme (text) , party_id (number) | host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number)
| 0.538462 |
party_host
|
Show the locations of parties and the names of the party hosts in ascending order of the age of the host.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , party_id (number) | host : name (text) , host_id (number) , age (text) | party_host : host_id (number) , party_id (number)
| 0.461538 |
party_host
|
For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , party_id (number) | host : name (text) , host_id (number) , age (text) | party_host : host_id (number) , party_id (number)
| 0.461538 |
party_host
|
Show the locations of parties with hosts older than 50.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , party_id (number) | host : host_id (number) , age (text) | party_host : host_id (number) , party_id (number)
| 0.538462 |
party_host
|
Which parties have hosts of age above 50? Give me the party locations.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
party : location (text) , party_id (number) | host : host_id (number) , age (text) | party_host : host_id (number) , party_id (number)
| 0.538462 |
party_host
|
Show the host names for parties with number of hosts greater than 20.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number) | party : party_id (number) , number_of_hosts (number)
| 0.538462 |
party_host
|
Which parties have more than 20 hosts? Give me the host names for these parties.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number) | party : party_id (number) , number_of_hosts (number)
| 0.538462 |
party_host
|
Show the name and the nationality of the oldest host.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , nationality (text) , age (text)
| 0.769231 |
party_host
|
What are the name and the nationality of the host of the highest age?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , nationality (text) , age (text)
| 0.769231 |
party_host
|
List the names of hosts who did not serve as a host of any party in our record.
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , host_id (number) | party_host : host_id (number)
| 0.769231 |
party_host
|
What are the names of hosts who did not host any party in our record?
|
party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)
|
host : name (text) , host_id (number) | party_host : host_id (number)
| 0.769231 |
storm_record
|
How many regions do we have?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_id (number)
| 0.916667 |
storm_record
|
Count the number of regions.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_id (number)
| 0.916667 |
storm_record
|
Show all region code and region name sorted by the codes.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_code (text) , region_name (text)
| 0.833333 |
storm_record
|
What are the codes and names for all regions, sorted by codes?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_code (text) , region_name (text)
| 0.833333 |
storm_record
|
List all region names in alphabetical order.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_name (text)
| 0.916667 |
storm_record
|
What are the names of the regions in alphabetical order?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_name (text)
| 0.916667 |
storm_record
|
Show names for all regions except for Denmark.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_name (text)
| 0.916667 |
storm_record
|
Return the names of all regions other than Denmark.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
region : region_name (text)
| 0.916667 |
storm_record
|
How many storms had death records?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : number_deaths (number) , storm_id (number)
| 0.833333 |
storm_record
|
Count the number of storms in which at least 1 person died.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : number_deaths (number) , storm_id (number)
| 0.833333 |
storm_record
|
List name, dates active, and number of deaths for all storms with at least 1 death.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : name (text) , dates_active (text) , number_deaths (number)
| 0.75 |
storm_record
|
What are the names, dates active, and number of deaths for storms that had 1 or more death?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : name (text) , dates_active (text) , number_deaths (number)
| 0.75 |
storm_record
|
Show the average and maximum damage for all storms with max speed higher than 1000.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : damage_millions_usd (number) , max_speed (number)
| 0.833333 |
storm_record
|
What is the average and maximum damage in millions for storms that had a max speed over 1000?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : damage_millions_usd (number) , max_speed (number)
| 0.833333 |
storm_record
|
What is the total number of deaths and damage for all storms with a max speed greater than the average?
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : number_deaths (number) , damage_millions_usd (number) , max_speed (number)
| 0.75 |
storm_record
|
Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : number_deaths (number) , damage_millions_usd (number) , max_speed (number)
| 0.75 |
storm_record
|
List name and damage for all storms in a descending order of max speed.
|
storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)
|
storm : name (text) , damage_millions_usd (number) , max_speed (number)
| 0.75 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.