aherntech/spider-syn huggingface dataset:
Database: county_public_safety
Question: What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?
Paraphrased question: What are the percentages of caucasian in the cities, and the corresponding crime rates of the counties they correspond to?
SQL: SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
Database: county_public_safety
Question: Show the name of cities in the county that has the largest number of police officers.
Paraphrased question: Show the name of towns in the county that has the largest number of police officers.
SQL: SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
Database: county_public_safety
Question: What are the names of cities that are in the county with the most police officers?
Paraphrased question: What are the names of towns that are in the county with the most police officers?
SQL: SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
Database: county_public_safety
Question: Show the number of cities in counties that have a population more than 20000.
Paraphrased question: Show the number of towns in counties that have a population more than 20000.
SQL: SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)
Database: county_public_safety
Question: How many cities are in counties that have populations of over 20000?
Paraphrased question: How many towns are in counties that have populations of over 20000?
SQL: SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)
Database: county_public_safety
Question: Show the crime rate of counties with a city having white percentage more than 90.
Paraphrased question: Show the crime rate of counties with a city having white percentage more than 90.
SQL: SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90
Database: county_public_safety
Question: What are the crime rates of counties that contain cities that have white percentages of over 90?
Paraphrased question: What are the crime rates of counties that contain cities that have white percentages of over 90?
SQL: SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90
Database: county_public_safety
Question: Please show the police forces and the number of counties with each police force.
Paraphrased question: Please show the police forces and the number of counties with each police force.
SQL: SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force
Database: county_public_safety
Question: How many counties correspond to each police force?
Paraphrased question: How many counties correspond to each police force?
SQL: SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force
Database: county_public_safety
Question: What is the location shared by most counties?
Paraphrased question: What is the position shared by most counties?
SQL: SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Database: county_public_safety
Question: Which location has the most corresponding counties?
Paraphrased question: Which position has the most corresponding counties?
SQL: SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Database: county_public_safety
Question: List the names of counties that do not have any cities.
Paraphrased question: List the names of counties that do not have any towns.
SQL: SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)
Database: county_public_safety
Question: What are the names of counties that do not contain any cities?
Paraphrased question: What are the names of counties that do not contain any towns?
SQL: SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)
Database: county_public_safety
Question: Show the police force shared by counties with location on the east and west.
Paraphrased question: Show the police force shared by counties with position on the east and west.
SQL: SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "East" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "West"
Database: county_public_safety
Question: Which police forces operate in both counties that are located in the East and in the West?
Paraphrased question: Which police forces operate in both counties that are located in the East and in the West?
SQL: SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "East" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "West"
Database: county_public_safety
Question: Show the names of cities in counties that have a crime rate less than 100.
Paraphrased question: Show the names of towns in counties that have a crime rate less than 100.
SQL: SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)
Database: county_public_safety
Question: What are the names of cities that are in counties that have a crime rate below 100?
Paraphrased question: What are the names of towns that are in counties that have a crime rate below 100?
SQL: SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)
Database: county_public_safety
Question: Show the case burden of counties in descending order of population.
Paraphrased question: Show the case burden of counties in descending order of population.
SQL: SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
Database: county_public_safety
Question: What are the case burdens of counties, ordered descending by population?
Paraphrased question: What are the case burdens of counties, ordered descending by the number of people?
SQL: SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
Database: inn_1
Question: Find the names of all modern rooms with a base price below $160 and two beds.
Paraphrased question: Find the names of all modern rooms with a base price below $160 and two beds.
SQL: SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';
Database: inn_1
Question: What are the names of modern rooms that have a base price lower than $160 and two beds.
Paraphrased question: What are the names of modern rooms that have a base price lower than $160 and two beds.
SQL: SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';
Database: inn_1
Question: Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
Paraphrased question: Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
SQL: SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;
Database: inn_1
Question: What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.
Paraphrased question: What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.
SQL: SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;
Database: inn_1
Question: Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.
Paraphrased question: Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;
Database: inn_1
Question: Which room has the largest number of reservations?
Paraphrased question: Which room has the most people booked?
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;
Database: inn_1
Question: How many kids stay in the rooms reserved by ROY SWEAZY?
Paraphrased question: How many children stay in the rooms reserved by ROY SWEAZY?
SQL: SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";
Database: inn_1
Question: Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.
Paraphrased question: Find the number of children staying in the rooms reserved by a person called ROY SWEAZ.
SQL: SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";
Database: inn_1
Question: How many times does ROY SWEAZY has reserved a room.
Paraphrased question: How many times does ROY SWEAZY has booked a room.
SQL: SELECT count(*) FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";
Database: inn_1
Question: Find the number of times ROY SWEAZY has reserved a room.
Paraphrased question: Find the number of times ROY SWEAZY has booked a room.
SQL: SELECT count(*) FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";
Database: inn_1
Question: Which room has the highest rate? List the room's full name, rate, check in and check out date.
Paraphrased question: Which room has the highest rate? List the room's full name, rate, check in and check out date.
SQL: SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;
Database: inn_1
Question: Return the name, rate, check in and check out date for the room with the highest rate.
Paraphrased question: Return the name, rate, check in and check out date for the room with the highest rate.
SQL: SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;
Database: inn_1
Question: How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?
Paraphrased question: How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?
SQL: SELECT Adults FROM Reservations WHERE CheckIn  =  "2010-10-23" AND FirstName  =  "CONRAD" AND LastName  =  "SELBIG";
Database: inn_1
Question: Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.
Paraphrased question: Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.
SQL: SELECT Adults FROM Reservations WHERE CheckIn  =  "2010-10-23" AND FirstName  =  "CONRAD" AND LastName  =  "SELBIG";
Database: inn_1
Question: How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?
Paraphrased question: How many children stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?
SQL: SELECT Kids FROM Reservations WHERE CheckIn  =  "2010-09-21" AND FirstName  =  "DAMIEN" AND LastName  =  "TRACHSEL";
Database: inn_1
Question: Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.
Paraphrased question: Return the number of children for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.
SQL: SELECT Kids FROM Reservations WHERE CheckIn  =  "2010-09-21" AND FirstName  =  "DAMIEN" AND LastName  =  "TRACHSEL";
Database: inn_1
Question: How many king beds are there?
Paraphrased question: How many king beds are there?
SQL: SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';
Database: inn_1
Question: Find the total number of king beds available.
Paraphrased question: Find the total number of king beds available.
SQL: SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';
Database: inn_1
Question: List the names and decor of rooms that have a king bed. Sort the list by their price.
Paraphrased question: List the names and decoration of rooms that have a king bed. Sort the list by their price.
SQL: SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;
Database: inn_1
Question: What are the names and decor of rooms with a king bed? Sort them by their price
Paraphrased question: What are the names and decoration of rooms with a king bed? Sort them by their price
SQL: SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;
Database: inn_1
Question: Which room has cheapest base price? List the room's name and the base price.
Paraphrased question: Which room has cheapest base price? List the room's name and the base price.
SQL: SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;
Database: inn_1
Question: What are the room name and base price of the room with the lowest base price?
Paraphrased question: What are the room name and base price of the room with the lowest base price?
SQL: SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;
Database: inn_1
Question: What is the decor of room Recluse and defiance?
Paraphrased question: What is the decoration of room Recluse and defiance?
SQL: SELECT decor FROM Rooms WHERE roomName  =  "Recluse and defiance";
Database: inn_1
Question: Return the decor of the room named "Recluse and defiance".
Paraphrased question: Return the decoration of the room named "Recluse and defiance".
SQL: SELECT decor FROM Rooms WHERE roomName  =  "Recluse and defiance";
Database: inn_1
Question: What is the average base price of different bed type? List bed type and average base price.
Paraphrased question: What is the average base price of different bed type? List bed type and average base price.
SQL: SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: For each bed type, find the average base price of different bed type.
Paraphrased question: For each bed type, find the average base price of different bed type.
SQL: SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: What is the total number of people who could stay in the modern rooms in this inn?
Paraphrased question: What is the total number of people who could stay in the modern rooms in this inn?
SQL: SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';
Database: inn_1
Question: How many people in total can stay in the modern rooms of this inn?
Paraphrased question: How many people in total can stay in the modern rooms of this inn?
SQL: SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';
Database: inn_1
Question: What kind of decor has the least number of reservations?
Paraphrased question: What kind of decoration has the least number of reservations?
SQL: SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;
Database: inn_1
Question: What is the least popular kind of decor?
Paraphrased question: What is the least popular kind of decoration?
SQL: SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;
Database: inn_1
Question: List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.
Paraphrased question: List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.
SQL: SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;
Database: inn_1
Question: How many times the number of adults and kids staying in a room reached the maximum capacity of the room?
Paraphrased question: How many times the number of adults and kids staying in a room reached the maximum the number of seats of the room?
SQL: SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;
Database: inn_1
Question: Find the first and last names of people who payed more than the rooms' base prices.
Paraphrased question: Find the full name of people who payed more than the rooms' base prices.
SQL: SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0
Database: inn_1
Question: What are the first and last names of people who payed more than the rooms' base prices?
Paraphrased question: What are the full name of people who payed more than the rooms' base prices?
SQL: SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0
Database: inn_1
Question: How many rooms are there?
Paraphrased question: How many rooms are there?
SQL: SELECT count(*) FROM Rooms;
Database: inn_1
Question: What is the total number of rooms available in this inn?
Paraphrased question: What is the total number of rooms available in this inn?
SQL: SELECT count(*) FROM Rooms;
Database: inn_1
Question: Find the number of rooms with a king bed.
Paraphrased question: Find the number of rooms with a king bed.
SQL: SELECT count(*) FROM Rooms WHERE bedType  =  "King";
Database: inn_1
Question: How many rooms have a king bed?
Paraphrased question: How many rooms have a king bed?
SQL: SELECT count(*) FROM Rooms WHERE bedType  =  "King";
Database: inn_1
Question: Find the number of rooms for each bed type.
Paraphrased question: Find the number of rooms for each bed type.
SQL: SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: What are the number of rooms for each bed type?
Paraphrased question: What are the number of rooms for each bed type?
SQL: SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: Find the name of the room with the maximum occupancy.
Paraphrased question: Find the name of the room with the maximum occupancy.
SQL: SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;
Database: inn_1
Question: What is the name of the room that can accommodate the most people?
Paraphrased question: What is the name of the room that can accommodate the most people?
SQL: SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;
Database: inn_1
Question: Find the id and name of the most expensive base price room.
Paraphrased question: Find the id and name of the most expensive base price room.
SQL: SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;
Database: inn_1
Question: Which room has the highest base price?
Paraphrased question: Which room has the highest base price?
SQL: SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;
Database: inn_1
Question: List the type of bed and name of all traditional rooms.
Paraphrased question: List the type of bed and name of all traditional rooms.
SQL: SELECT roomName ,  bedType FROM Rooms WHERE decor = "traditional";
Database: inn_1
Question: What are the bed type and name of all the rooms with traditional decor?
Paraphrased question: What are the bed type and name of all the rooms with traditional decor?
SQL: SELECT roomName ,  bedType FROM Rooms WHERE decor = "traditional";
Database: inn_1
Question: Find the number of rooms with king bed for each decor type.
Paraphrased question: Find the number of rooms with king bed for each decoration type.
SQL: SELECT decor ,  count(*) FROM Rooms WHERE bedType = "King" GROUP BY decor;
Database: inn_1
Question: How many rooms have king beds? Report the number for each decor type.
Paraphrased question: How many rooms have king beds? Report the number for each decoration type.
SQL: SELECT decor ,  count(*) FROM Rooms WHERE bedType = "King" GROUP BY decor;
Database: inn_1
Question: Find the average and minimum price of the rooms in different decor.
Paraphrased question: Find the average and minimum price of the rooms in different decoration.
SQL: SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;
Database: inn_1
Question: What is the average minimum and price of the rooms for each different decor.
Paraphrased question: What is the average minimum and price of the rooms for each different decoration.
SQL: SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;
Database: inn_1
Question: List the name of all rooms sorted by their prices.
Paraphrased question: List the name of all rooms sorted by their prices.
SQL: SELECT roomName FROM Rooms ORDER BY basePrice;
Database: inn_1
Question: Sort all the rooms according to the price. Just report the room names.
Paraphrased question: Sort all the rooms according to the price. Just report the room names.
SQL: SELECT roomName FROM Rooms ORDER BY basePrice;
Database: inn_1
Question: Find the number of rooms with price higher than 120 for different decor.
Paraphrased question: Find the number of rooms with price higher than 120 for different decoration.
SQL: SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;
Database: inn_1
Question: How many rooms cost more than 120, for each different decor?
Paraphrased question: How many rooms cost more than 120, for each different decoration?
SQL: SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;
Database: inn_1
Question: For each bed type, find the average room price.
Paraphrased question: For each bed type, find the average room price.
SQL: SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: What is the average base price of rooms, for each bed type?
Paraphrased question: What is the average base price of rooms, for each bed type?
SQL: SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;
Database: inn_1
Question: List the name of rooms with king or queen bed.
Paraphrased question: List the name of rooms with king or queen bed.
SQL: SELECT roomName FROM Rooms WHERE bedType  =  "King" OR bedType  =  "Queen";
Database: inn_1
Question: What are the names of rooms that have either king or queen bed?
Paraphrased question: What are the names of rooms that have either king or queen bed?
SQL: SELECT roomName FROM Rooms WHERE bedType  =  "King" OR bedType  =  "Queen";
Database: inn_1
Question: How many different types of beds are there?
Paraphrased question: How many different types of beds are there?
SQL: SELECT count(DISTINCT bedType) FROM Rooms;
Database: inn_1
Question: Find the number of distinct bed types available in this inn.
Paraphrased question: Find the number of different bed types available in this inn.
SQL: SELECT count(DISTINCT bedType) FROM Rooms;
Database: inn_1
Question: Find the name and id of the top 3 expensive rooms.
Paraphrased question: Find the name and id of the top 3 expensive rooms.
SQL: SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;
Database: inn_1
Question: What are the name and id of the three highest priced rooms?
Paraphrased question: What are the name and id of the three highest priced rooms?
SQL: SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;
Database: inn_1
Question: Find the name of rooms whose price is higher than the average price.
Paraphrased question: Find the name of rooms whose price is higher than the average price.
SQL: SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );
Database: inn_1
Question: What are the name of rooms that cost more than the average.
Paraphrased question: What are the name of rooms that cost more than the average.
SQL: SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );
Database: inn_1
Question: Find the number of rooms that do not have any reservation.
Paraphrased question: Find the number of rooms that do not have any reservation.
SQL: SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)
Database: inn_1
Question: How many rooms have not had any reservation yet?
Paraphrased question: How many rooms have not had any reservation yet?
SQL: SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)
Database: inn_1
Question: Return the name and number of reservations made for each of the rooms.
Paraphrased question: Return the name and number of reservations made for each of the rooms.
SQL: SELECT T2.roomName ,  count(*) ,  T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room
Database: inn_1
Question: For each room, find its name and the number of times reservations were made for it.
Paraphrased question: For each room, find its name and the number of times reservations were made for it.
SQL: SELECT T2.roomName ,  count(*) ,  T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room
Database: inn_1
Question: Find the names of rooms that have been reserved for more than 60 times.
Paraphrased question: Find the names of rooms that have been reserved for more than 60 times.
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60
Database: inn_1
Question: What are the names of rooms whose reservation frequency exceeds 60 times?
Paraphrased question: What are the names of rooms whose reservation frequency exceeds 60 times?
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60
Database: inn_1
Question: Find the name of rooms whose base price is between 120 and 150.
Paraphrased question: Find the name of rooms whose base price is between 120 and 150.
SQL: SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150
Database: inn_1
Question: Which rooms cost between 120 and 150? Give me the room names.
Paraphrased question: Which rooms cost between 120 and 150? Give me the room names.
SQL: SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150
Database: inn_1
Question: Find the name of rooms booked by some customers whose first name contains ROY.
Paraphrased question: Find the name of rooms booked by some customers whose forename contains ROY.
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'
Database: inn_1
Question: What are the name of rooms booked by customers whose first name has "ROY" in part?
Paraphrased question: What are the name of rooms booked by customers whose forename has "ROY" in part?
SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'
Database: local_govt_mdm
Question: what are the details of the cmi masters that have the cross reference code 'Tax'?
Paraphrased question: what are the information of the cmi masters that have the cross reference code 'Tax'?
SQL: SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T2.source_system_code  =  'Tax'
Database: local_govt_mdm
Question: 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.
Paraphrased question: 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.
SQL: SELECT T1.cmi_cross_ref_id ,  T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*)  >=  1
Database: local_govt_mdm
Question: How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
Paraphrased question: How many business rates are related to each cmi cross reference? List cross-reference id, master customer id and the n
SQL: SELECT T2.cmi_cross_ref_id ,  T2.master_customer_id ,  count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
Database: local_govt_mdm
Question: What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
Paraphrased question: What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.
SQL: SELECT T1.source_system_code ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id ORDER BY T2.council_tax_id
Database: local_govt_mdm
Question: Wat is the tax source system code and master customer id of the taxes related to each parking fine id?
Paraphrased question: Wat is the tax source system code and master customer id of the taxes related to each parking fine id?
SQL: SELECT T1.source_system_code ,  T1.master_customer_id ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id
Database: local_govt_mdm
Question: What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
Paraphrased question: What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
SQL: SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id  =  T2.master_customer_id WHERE T3.cmi_details != 'Schmidt ,  Kertzmann and Lubowitz'
Database: local_govt_mdm
Question: What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
Paraphrased question: What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
SQL: SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id WHERE T2.source_system_code  =  'Electoral' OR T2.source_system_code  =  'Tax'
Database: local_govt_mdm
Question: How many different source system code for the cmi cross references are there?
Paraphrased question: How many different source system code for the cmi cross-references are there?
SQL: SELECT count(DISTINCT source_system_code) FROM CMI_cross_references
Database: local_govt_mdm
Question: List all information about customer master index, and sort them by details in descending order.
Paraphrased question: List all information about customer master index, and sort them by details in descending order.
SQL: SELECT * FROM customer_master_index ORDER BY cmi_details DESC
Database: local_govt_mdm
Question: List the council tax ids and their related cmi cross references of all the parking fines.
Paraphrased question: List the council tax ids and their related cmi cross-references of all the parking fines.
SQL: SELECT council_tax_id ,  cmi_cross_ref_id FROM parking_fines
Database: local_govt_mdm
Question: How many council taxes are collected for renting arrears ?
Paraphrased question: How many council taxes are collected for renting arrears ?
SQL: SELECT count(*) FROM rent_arrears
Database: local_govt_mdm
Question: What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
Paraphrased question: What are the different cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
SQL: SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T1.cmi_details  =  'Gottlieb ,  Becker and Wyman'
Database: local_govt_mdm
Question: Which cmi cross reference id is not related to any parking taxes?
Paraphrased question: Which cmi cross-reference id is not related to any parking taxes?
SQL: SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines
Database: local_govt_mdm
Question: Which distinct source system code includes the substring 'en'?
Paraphrased question: Which different source system code includes the substring 'en'?
SQL: SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
Database: party_host
Question: How many parties are there?
Paraphrased question: How many parties are there?
SQL: SELECT count(*) FROM party
Database: party_host
Question: Count the number of parties.
Paraphrased question: Count the number of parties.
SQL: SELECT count(*) FROM party
Database: party_host
Question: List the themes of parties in ascending order of number of hosts.
Paraphrased question: List the topics of parties in ascending order of number of hosts.
SQL: SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC
Database: party_host
Question: What are the themes of parties ordered by the number of hosts in ascending manner?
Paraphrased question: What are the topics of parties ordered by the number of hosts in ascending manner?
SQL: SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC
Database: party_host
Question: What are the themes and locations of parties?
Paraphrased question: What are the topics and addresses of parties?
SQL: SELECT Party_Theme ,  LOCATION FROM party
Database: party_host
Question: Give me the theme and location of each party.
Paraphrased question: Give me the topic and address of each party.
SQL: SELECT Party_Theme ,  LOCATION FROM party
Database: party_host
Question: Show the first year and last year of parties with theme "Spring" or "Teqnology".
Paraphrased question: Show the first and last year of parties with theme "Spring" or "Teqnology".
SQL: SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  "Spring" OR Party_Theme  =  "Teqnology"
Database: party_host
Question: What are the first year and last year of the parties whose theme is "Spring" or "Teqnology"?
Paraphrased question: What are the first year and last year of the parties whose theme is "Spring" or "Teqnology"?
SQL: SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  "Spring" OR Party_Theme  =  "Teqnology"
Database: party_host
Question: What is the average number of hosts for parties?
Paraphrased question: What is the average number of hosts for parties?
SQL: SELECT avg(Number_of_hosts) FROM party
Database: party_host
Question: Compute the average number of hosts for parties.
Paraphrased question: Compute the average number of hosts for parties.
SQL: SELECT avg(Number_of_hosts) FROM party
Database: party_host
Question: What is the location of the party with the most hosts?
Paraphrased question: What is the address of the party with the most hosts?
SQL: SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
Database: party_host
Question: Which party had the most hosts? Give me the party location.
Paraphrased question: Which party had the most hosts? Give me the party address.
SQL: SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
Database: party_host
Question: Show different nationalities along with the number of hosts of each nationality.
Paraphrased question: Show different nation along with the number of hosts of each nation.
SQL: SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality
Database: party_host
Question: How many hosts does each nationality have? List the nationality and the count.
Paraphrased question: How many hosts does each nation have? List the nation and the count.
SQL: SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality
Database: party_host
Question: Show the most common nationality of hosts.
Paraphrased question: Show the most common nation of hosts.
SQL: SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Database: party_host
Question: Which nationality has the most hosts?
Paraphrased question: Which nation has the most hosts?
SQL: SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Database: party_host
Question: Show the nations that have both hosts older than 45 and hosts younger than 35.
Paraphrased question: Show the nations that have both hosts older than 45 and hosts younger than 35.
SQL: SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35
Database: party_host
Question: Which nations have both hosts of age above 45 and hosts of age below 35?
Paraphrased question: Which nations have both hosts of age above 45 and hosts of age below 35?
SQL: SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35
Database: party_host
Question: Show the themes of parties and the names of the party hosts.
Paraphrased question: Show the topics of parties and the names of the party hosts.
SQL: SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID
Database: party_host
Question: For each party, return its theme and the name of its host.
Paraphrased question: For each party, return its topic and the name of its host.
SQL: SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID
Database: party_host
Question: Show the locations of parties and the names of the party hosts in ascending order of the age of the host.
Paraphrased question: Show the addresses of parties and the names of the party hosts in ascending order of the age of the host.
SQL: SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age
Database: party_host
Question: For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.
Paraphrased question: For each party, find its address and the name of its host. Sort the result in ascending order of the age of the host.
SQL: SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age
Database: party_host
Question: Show the locations of parties with hosts older than 50.
Paraphrased question: Show the addresses of parties with hosts older than 50.
SQL: SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50
Database: party_host
Question: Which parties have hosts of age above 50? Give me the party locations.
Paraphrased question: Which parties have hosts of age above 50? Give me the party addresses.
SQL: SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50
Database: party_host
Question: Show the host names for parties with number of hosts greater than 20.
Paraphrased question: Show the host names for parties with number of hosts greater than 20.
SQL: SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20
Database: party_host
Question: Which parties have more than 20 hosts? Give me the host names for these parties.
Paraphrased question: Which parties have more than 20 hosts? Give me the host names for these parties.
SQL: SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20
Database: party_host
Question: Show the name and the nationality of the oldest host.
Paraphrased question: Show the name and the nation of the oldest host.
SQL: SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1
Database: party_host
Question: What are the name and the nationality of the host of the highest age?
Paraphrased question: What are the name and the nation of the host of the highest age?
SQL: SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1
Database: party_host
Question: List the names of hosts who did not serve as a host of any party in our record.
Paraphrased question: List the names of hosts who did not serve as a host of any party in our record.
SQL: SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host)
Database: party_host
Question: What are the names of hosts who did not host any party in our record?
Paraphrased question: What are the names of hosts who did not host any party in our record?
SQL: SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host)
Database: storm_record
Question: How many regions do we have?
Paraphrased question: How many districts do we have?
SQL: SELECT count(*) FROM region
Database: storm_record
Question: Count the number of regions.
Paraphrased question: Count the number of districts.
SQL: SELECT count(*) FROM region
Database: storm_record
Question: Show all region code and region name sorted by the codes.
Paraphrased question: Show all district code and district name sorted by the codes.
SQL: SELECT region_code ,  region_name FROM region ORDER BY region_code
Database: storm_record
Question: What are the codes and names for all regions, sorted by codes?
Paraphrased question: What are the codes and names for all districts, sorted by codes?
SQL: SELECT region_code ,  region_name FROM region ORDER BY region_code
Database: storm_record
Question: List all region names in alphabetical order.
Paraphrased question: List all district names in alphabetical order.
SQL: SELECT region_name FROM region ORDER BY region_name
Database: storm_record
Question: What are the names of the regions in alphabetical order?
Paraphrased question: What are the names of the districts in alphabetical order?
SQL: SELECT region_name FROM region ORDER BY region_name
Database: storm_record
Question: Show names for all regions except for Denmark.
Paraphrased question: Show names for all districts except for Denmark.
SQL: SELECT region_name FROM region WHERE region_name != 'Denmark'
Database: storm_record
Question: Return the names of all regions other than Denmark.
Paraphrased question: Return the names of all districts other than Denmark.
SQL: SELECT region_name FROM region WHERE region_name != 'Denmark'
Database: storm_record
Question: How many storms had death records?
Paraphrased question: How many windstorm had death records?
SQL: SELECT count(*) FROM storm WHERE Number_Deaths  >  0
Database: storm_record
Question: Count the number of storms in which at least 1 person died.
Paraphrased question: Count the number of windstorm in which at least 1 person died.
SQL: SELECT count(*) FROM storm WHERE Number_Deaths  >  0
Database: storm_record
Question: List name, dates active, and number of deaths for all storms with at least 1 death.
Paraphrased question: List name, dates active, and number of deaths for all windstorms with at least 1 death.
SQL: SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1
Database: storm_record
Question: What are the names, dates active, and number of deaths for storms that had 1 or more death?
Paraphrased question: What are the names, dates active, and number of deaths for windstorms that had 1 or more death?
SQL: SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1
Database: storm_record
Question: Show the average and maximum damage for all storms with max speed higher than 1000.
Paraphrased question: Show the average and maximum loss for all windstorms with max speed higher than 1000.
SQL: SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000
Database: storm_record
Question: What is the average and maximum damage in millions for storms that had a max speed over 1000?
Paraphrased question: What is the average and maximum loss in millions for storms that had a max speed over 1000?
SQL: SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000
Database: storm_record
Question: What is the total number of deaths and damage for all storms with a max speed greater than the average?
Paraphrased question: What is the total number of deaths and loss for all storms with a max speed greater than the average?
SQL: SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm)
Database: storm_record
Question: Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.
Paraphrased question: Return the total number of deaths and total loss in millions for storms that had a max speed greater than the average.
SQL: SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm)
Database: storm_record
Question: List name and damage for all storms in a descending order of max speed.
Paraphrased question: List name and loss for all storms in a descending order of max speed.
SQL: SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC
Database: storm_record
Question: What are the names and damage in millions for storms, ordered by their max speeds descending?
Paraphrased question: What are the names and loss in millions for storms, ordered by their max speeds descending?
SQL: SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC
Database: storm_record
Question: How many regions are affected?
Paraphrased question: How many districts are affected?
SQL: SELECT count(DISTINCT region_id) FROM affected_region
Database: storm_record
Question: Count the number of different affected regions.
Paraphrased question: Count the number of different affected districts.
SQL: SELECT count(DISTINCT region_id) FROM affected_region
Database: storm_record
Question: Show the name for regions not affected.
Paraphrased question: Show the name for districts not affected.
SQL: SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)
Database: storm_record
Question: What are the names of regions that were not affected?
Paraphrased question: What are the names of districts that were not affected?
SQL: SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)
Database: storm_record
Question: Show the name for regions and the number of storms for each region.
Paraphrased question: Show the name for districts and the number of storms for each district.
SQL: SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id
Database: storm_record
Question: How many storms occured in each region?
Paraphrased question: How many windstorm occured in each district?
SQL: SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id
Database: storm_record
Question: List the name for storms and the number of affected regions for each storm.
Paraphrased question: List the name for windstorm and the number of affected districts for each windstorm.
SQL: SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id
Database: storm_record
Question: How many regions were affected by each storm?
Paraphrased question: How many districts were affected by each windstorm?
SQL: SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id
Database: storm_record
Question: What is the storm name and max speed which affected the greatest number of regions?
Paraphrased question: What is the storm name and max velocity which affected the greatest number of districts?
SQL: SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1
Database: storm_record
Question: Return the name and max speed of the storm that affected the most regions.
Paraphrased question: Return the name and max velocity of the storm that affected the most districts.
SQL: SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1
Database: storm_record
Question: Show the name of storms which don't have affected region in record.
Paraphrased question: Show the name of windstorms which don't have affected district in record.
SQL: SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)
Database: storm_record
Question: What are the names of storms that did not affect any regions?
Paraphrased question: What are the names of windstorm that did not affect any regions?
SQL: SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)