aherntech/sparc huggingface dataset:
Database: workshop_paper
Question sequence:
How many authors have sumbitted their work?
Please show their colleges.
How many unique colleges are there?
Among these colleges, which one has the most submissions?
SQL query sequence:
SELECT COUNT(Author) FROM submission
SELECT College FROM submission
SELECT COUNT(DISTINCT College) FROM submission
SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
Final question: Show the most common college of authors of submissions.
Final SQL: SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
Database: workshop_paper
Question sequence:
What is the largest submission score?
How many submissions have a score larger than 90?
How about the number of submissions with a score less than 80?
What are the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80?
SQL query sequence:
SELECT MAX(Scores) FROM submission
SELECT COUNT(*) FROM submission WHERE Scores  >  90
SELECT COUNT(*) FROM submission WHERE Scores  <  80
SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
Final question: Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.
Final SQL: SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
Database: workshop_paper
Question sequence:
How many submissions have been accepted?
What is the average submission score of these works?
Which submission has the highest score? Show its submission ID.
How about its submission result?
SQL query sequence:
SELECT COUNT(*) FROM Acceptance WHERE Result = "Accepted"
SELECT avg(T2.Scores) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID WHERE T1.Result = "Accepted"
SELECT T2.Submission_ID FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
Final question: Show the result of the submission with the highest score.
Final SQL: SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
Database: workshop_paper
Question sequence:
How many different workshops are there?
How many authors are there?
Show each author and the number of workshops they submitted to.
SQL query sequence:
SELECT COUNT(*) FROM workshop
SELECT COUNT(Author) FROM Submission
SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
Final question: Show each author and the number of workshops they submitted to.
Final SQL: SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
Database: workshop_paper
Question sequence:
Which workshops happened in New York USA?
How many workshops have been held?
How many authors have submitted to more than one workshop?
Please show their names.
SQL query sequence:
SELECT Name FROM workshop WHERE Venue = "New York USA"
SELECT COUNT(*) FROM workshop
SELECT COUNT(DISTINCT T2.Author) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
Final question: Show the authors who have submissions to more than one workshop.
Final SQL: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
Database: race_track
Question sequence:
List all the information about the tracks.
Which names and seatings of the tracks that are opened later than the year 1950 ?
What about after the year 2000?
Order them by seating.
SQL query sequence:
SELECT * FROM track
SELECT name ,  seating FROM track where year_opened  >  1950
SELECT name ,  seating FROM track where year_opened  >  2000
SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
Final question: Show names and seatings, ordered by seating for all tracks opened after 2000.
Final SQL: SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
Database: race_track
Question sequence:
Order all the tracks by the year of opening, from the most recent to the least recent.
Which 4 are the most recent ones? Show the name, location and seating.
What about the most recent 1?
SQL query sequence:
SELECT * FROM track ORDER BY year_opened DESC
SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 4
SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
Final question: What is the name, location and seating for the most recently opened track?
Final SQL: SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
Database: race_track
Question sequence:
What is the total seating numbers from the track?
What about the minimum, maximum, and average?
SQL query sequence:
SELECT sum(seating) FROM track
SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
Final question: What is the minimum, maximum, and average seating for all tracks.
Final SQL: SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
Database: race_track
Question sequence:
What is the total seating numbers from the track?
What about the average value?
Which tracks have a higher seating number than that?
Only keep the name, location, open year of them.
SQL query sequence:
SELECT sum(seating) FROM track
SELECT avg(seating) FROM track
SELECT * FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
Final question: Show the name, location, open year for all tracks with a seating higher than the average.
Final SQL: SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
Database: race_track
Question sequence:
Show all the classes from the race.
For each class, show the number of races for each.
How many are there for the class 'GT'?
Which one has the most number of races?
SQL query sequence:
SELECT * FROM race
SELECT CLASS, count(*) FROM race GROUP BY CLASS
SELECT CLASS, count(*) FROM race GROUP BY CLASS having class = 'GT'
SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
Final question: What is the race class with most number of races.
Final SQL: SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question sequence:
For each class, show the number of races for each.
Which race classes have more than 3 races?
What about at least two?
SQL query sequence:
SELECT CLASS, count(*) FROM race GROUP BY CLASS
SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  > 3
SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
Final question: List the race class with at least two races.
Final SQL: SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
Database: race_track
Question sequence:
How many races has the class 'GT'?
What about without that class?
What are the track names of them?
SQL query sequence:
SELECT count(*) FROM race where class = 'GT'
SELECT count(*) FROM race where class != 'GT'
SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
Final question: What are the names for tracks without a race in class 'GT'.
Final SQL: SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
Database: race_track
Question sequence:
What are the names and locations of the tracks?
Which names of the tracks have at least one race?
What about no races?
SQL query sequence:
SELECT name,location FROM track
SELECT name FROM track WHERE track_id IN (SELECT track_id FROM race)
SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
Final question: Show all track names that have had no races.
Final SQL: SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
Database: race_track
Question sequence:
What are the names of the tracks for each race?
How many races for the track name 'Auto Club Speedway'?
For each track name, how many races are there?
SQL query sequence:
SELECT T2.name, T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id
SELECT T2.name,T1.name, count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id  GROUP BY T1.track_id having T2.name = 'Auto Club Speedway'
SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
Final question: Show the name of track and the number of races in each track.
Final SQL: SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
Database: race_track
Question sequence:
What are the names of the tracks for each race?
For each track, what is the number of races?
Which track name has the most number of races?
SQL query sequence:
SELECT T2.name,T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id
SELECT T2.name,T1.name, count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id  GROUP BY T1.track_id
SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
Final question: Show the name of track with most number of races.
Final SQL: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question sequence:
What are the names of the tracks for each race?
For each track name, how many races for each?
How many tracks have at least two races?
What about only one race? Show the track name and location?
SQL query sequence:
SELECT T2.name, T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id
SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
SELECT count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  >= 2
SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1
Final question: Show the name and location of track with 1 race.
Final SQL: SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1
Database: apartment_rentals
Question sequence:
List all the apartment booking records.
How many are there in total?
SQL query sequence:
SELECT * FROM Apartment_Bookings
SELECT count(*) FROM Apartment_Bookings
Final question: How many apartment bookings are there in total?
Final SQL: SELECT count(*) FROM Apartment_Bookings
Database: apartment_rentals
Question sequence:
List all the apartment booking records.
How many in total?
For each of the record, only show the start dates and end dates.
SQL query sequence:
SELECT * FROM Apartment_Bookings
SELECT count(*) FROM Apartment_Bookings
SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings
Final question: Show the start dates and end dates of all the apartment bookings.
Final SQL: SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings
Database: apartment_rentals
Question sequence:
What are the information about all the apartment buildings
How many unique building descriptions are there?
Show their details.
SQL query sequence:
SELECT * FROM Apartment_Buildings
SELECT count(DISTINCT building_description) FROM Apartment_Buildings
SELECT DISTINCT building_description FROM Apartment_Buildings
Final question: Show all distinct building descriptions.
Final SQL: SELECT DISTINCT building_description FROM Apartment_Buildings
Database: apartment_rentals
Question sequence:
List all the building manager names.
How many are manged by "Brenden"?
What about "Emma" ?
List the short names of the buildings managed by her.
SQL query sequence:
SELECT building_manager FROM Apartment_Buildings
SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
SELECT building_short_name FROM Apartment_Buildings WHERE building_manager	 =  "Emma"
Final question: Show the short names of the buildings managed by "Emma".
Final SQL: SELECT building_short_name FROM Apartment_Buildings WHERE building_manager	 =  "Emma"
Database: apartment_rentals
Question sequence:
List all the building manager names.
How many are manged by "Emma"?
What about "Brenden"?
What are the addresses and phones of all the buildings managed by him?
SQL query sequence:
SELECT building_manager FROM Apartment_Buildings
SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager	 =  "Emma"
SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
Final question: Show the addresses and phones of all the buildings managed by "Brenden".
Final SQL: SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
Database: apartment_rentals
Question sequence:
List all the building full names.
Show the ones if there is the full name with "The Eugene".
What are the building full names which contain the word "court"?
SQL query sequence:
SELECT building_full_name FROM Apartment_Buildings
SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "The Eugene"
SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%"
Final question: What are the building full names that contain the word "court"?
Final SQL: SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%"
Database: apartment_rentals
Question sequence:
List the number of bathrooms for each apartment.
What is the average number of bathrooms?
List the minimum and maximum number.
SQL query sequence:
SELECT bathroom_count FROM Apartments
SELECT avg(bathroom_count)  FROM Apartments
SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments
Final question: What is the minimum and maximum number of bathrooms of all the apartments?
Final SQL: SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments
Database: apartment_rentals
Question sequence:
List the number of bathrooms for each apartment.
What about the minimum and maximum number?
How about the average?
SQL query sequence:
SELECT bathroom_count FROM Apartments
SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments
SELECT avg(bedroom_count) FROM Apartments
Final question: What is the average number of bedrooms of all apartments?
Final SQL: SELECT avg(bedroom_count) FROM Apartments
Database: apartment_rentals
Question sequence:
Show the number of rooms with each apartment number in the beginning.
SQL query sequence:
SELECT apt_number ,  room_count FROM Apartments
Final question: Return the apartment number and the number of rooms for each apartment.
Final SQL: SELECT apt_number ,  room_count FROM Apartments
Database: apartment_rentals
Question sequence:
How many type codes are there?
For each one, show how many apartments.
How many apartments have the type code "Studio"?
Among those apartments, what is the average number of rooms?
SQL query sequence:
SELECT count(distinct apt_type_code) FROM Apartments
SELECT apt_type_code, count(*) FROM Apartments GROUP by apt_type_code
SELECT count(*) FROM Apartments WHERE apt_type_code  =  "Studio"
SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  "Studio"
Final question: What is the average number of rooms of apartments with type code "Studio"?
Final SQL: SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  "Studio"
Database: apartment_rentals
Question sequence:
How many type codes are there?
For each type code, show how many apartments.
What are the apartment numbers of the apartments with type code "Studio"?
What about type code "Flat"?
SQL query sequence:
SELECT count(distinct apt_type_code) FROM Apartments
SELECT apt_type_code, count(*) FROM Apartments GROUP by apt_type_code
SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Studio"
SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"
Final question: Return the apartment numbers of the apartments with type code "Flat".
Final SQL: SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"
Database: apartment_rentals
Question sequence:
How many guests are there?
Keep the first and last names of them.
SQL query sequence:
SELECT count(*) FROM Guests
SELECT guest_first_name ,  guest_last_name FROM Guests
Final question: Return the first names and last names of all guests
Final SQL: SELECT guest_first_name ,  guest_last_name FROM Guests
Database: apartment_rentals
Question sequence:
How many female guests are there?
What about male?
What are the date of birth of them?
SQL query sequence:
SELECT count(*) FROM Guests WHERE gender_code  =  "Female"
SELECT count(*) FROM Guests WHERE gender_code  =  "Male"
SELECT date_of_birth FROM Guests WHERE gender_code  =  "Male"
Final question: Return the date of birth for all the guests with gender code "Male".
Final SQL: SELECT date_of_birth FROM Guests WHERE gender_code  =  "Male"
Database: apartment_rentals
Question sequence:
For each apartment booking, show the start date, and end date.
Also show the apartment numbers with each record.
SQL query sequence:
SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings
SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
Final question: Show the apartment numbers, start dates, and end dates of all the apartment bookings.
Final SQL: SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
Database: apartment_rentals
Question sequence:
For each apartment booking, show the start date, and end date.
Also show the type code with each record.
What are the booking start and end dates of the apartments with type code "Studio"?
How about the type code "Duplex"?
SQL query sequence:
SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings
SELECT T2.apt_type_code ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  "Studio"
SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  "Duplex"
Final question: What are the booking start and end dates of the apartments with type code "Duplex"?
Final SQL: SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  "Duplex"
Database: apartment_rentals
Question sequence:
List all the booking start and end dates.
Also show the bedroom number of each record.
Keep the ones that have 3 bedrooms, show the booking start and end dates only?
What about more than 2 bedrooms?
SQL query sequence:
SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings
SELECT T1.booking_start_date ,  T1.booking_start_date, T2.bedroom_count  FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  = 3
SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2
Final question: What are the booking start and end dates of the apartments with more than 2 bedrooms?
Final SQL: SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2
Database: apartment_rentals
Question sequence:
List all the unique booking status codes.
How many are there?
Show these codes with apartment numbers.
What is the code of the apartment with apartment number "Suite 634"?
SQL query sequence:
SELECT distinct booking_status_code FROM Apartment_Bookings
SELECT count(distinct booking_status_code) FROM Apartment_Bookings
SELECT T1.booking_status_code, T2.apt_number   FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  "Suite 634"
Final question: What is the booking status code of the apartment with apartment number "Suite 634"?
Final SQL: SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  "Suite 634"
Database: apartment_rentals
Question sequence:
How many rooms are there in total?
What about apartments?
Show all the apartment numbers and the status code for each one.
Show the distinct apartment numbers of the apartments where the status code is not "Confirmed".
How about the status code is "Confirmed".
SQL query sequence:
SELECT sum(room_count) FROM Apartments
SELECT count(*) FROM Apartments
SELECT T2.apt_number, T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  !=  "Confirmed"
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed"
Final question: Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".
Final SQL: SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed"
Database: apartment_rentals
Question sequence:
How many rooms are there in total?
Show all the booking status codes and number of apartments for each.
What about the average room count of the apartments that have booking status code "Confirmed"?
What about the booking status code "Provisional"?
SQL query sequence:
SELECT sum(room_count) FROM Apartments
SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code
SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed"
SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"
Final question: Show the average room count of the apartments that have booking status code "Provisional".
Final SQL: SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"