Chinastark/bird_dataset huggingface dataset:
Database: airline
Note: On August 2018 refers to fl_date like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(fl_date WHERE cancelled = 1)); cancelled due to the most serious reasons refers to cancellation_code = 'A'; in Dallas/Fort Worth International refers to description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';
Question: On August 2018, which day had the highest number of cancelled flights due to the most serious reasons in Dallas/Fort Worth International?
SQL: SELECT airlines.fl_date FROM airports INNER JOIN airlines ON airports.code = airlines.origin WHERE airlines.fl_date LIKE '2018/8%' AND airports.description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International' AND airlines.origin = 'DFW' AND airlines.cancelled = 1 AND airlines.cancellation_code = 'A' GROUP BY airlines.fl_date ORDER BY count(airlines.fl_date) DESC LIMIT 1
Database: airline
Note: tail number refers to tail_num; arrived on time refers to arr_delay <= 0; Meadows Field airport refers to description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to fl_date like '2018/8%';
Question: List the tail numbers of all the aircraft that arrived on time at Meadows Field airport in August of 2018?
SQL: SELECT airlines.tail_num FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airlines.fl_date LIKE '2018/8%' AND airports.description = 'Bakersfield, CA: Meadows Field' AND airlines.dest = 'BFL' AND airlines.arr_delay <= 0 GROUP BY airlines.tail_num
Database: airline
Note: destination refers to dest; Logan International refers to description = 'Boston, MA: Logan International'; airline id of the carrier operator refers to op_carrier_airline_id; highest delay in minutes due to security refers to MAX(security_delay);
Question: Among the airports whose destination is Logan International, what is the airline id of the carrier operator with the highest delay in minutes due to security?
SQL: SELECT airlines.op_carrier_airline_id FROM airports INNER JOIN airlines ON airports.code = airlines.dest WHERE airports.description = 'Boston, MA: Logan International' AND airlines.dest = 'BOS' ORDER BY airlines.security_delay DESC LIMIT 1
Database: airline
Note: names of the airlines refers to description; highest number of aircraft refers to MAX(COUNT(tail_num));
Question: What are the names of the top 5 airlines with the highest number of aircraft?
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code GROUP BY air carriers.description ORDER BY airlines.tail_num DESC LIMIT 5
Database: airline
Note: names of the airlines refers to description; highest number of non-cancelled flights refers to MAX(COUNT(cancelled = 0));
Question: What is the name of the airline with the highest number of non-cancelled flights?
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.cancelled = 0 GROUP BY air carriers.description ORDER BY count(airlines.cancelled) DESC LIMIT 1
Database: airline
Note: name of the airline refers to description; tail number refers to tail_num; tail_num = 'N202NN';
Question: Give the name of the airline to which tail number N202NN belongs to.
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.tail_num = 'N202NN' GROUP BY air carriers.description
Database: airline
Note: name of the airline refers to description; flights to refers to dest; Chicago Midway International refers to description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(dest WHERE description = 'Chicago, IL: Chicago Midway International'));
Question: What is the name of the airline that flew the most flights to Chicago Midway International?
SQL: SELECT air carriers.description FROM airports INNER JOIN airlines ON airports.code = airlines.dest INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airports.description = 'Chicago, IL: Chicago Midway International' AND airlines.dest = 'MDW' GROUP BY air carriers.description ORDER BY count(air carriers.description) DESC LIMIT 1
Database: airline
Note: tail number refers to tail_num; Compass Airline refers to description = 'Compass airlines: CP'; flew the most number of lights from LAX TO ABQ refers to MAX(COUNT(op_carrier_airline_id WHERE origin = 'LAX' and dest = 'ABQ')); from LAX refers to origin = 'LAX'; to ABQ refers to dest = 'ABQ';
Question: What is the tail number of a Compass Airline's plane that flew the most number of flights from LAX to ABQ?
SQL: SELECT airlines.op_carrier_airline_id FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Compass Airlines: CP' AND airlines.origin = 'LAX' AND airlines.dest = 'ABQ' GROUP BY airlines.op_carrier_airline_id ORDER BY count(airlines.op_carrier_airline_id) DESC LIMIT 1
Database: airline
Note: Republic Airline refers to description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(origin));
Question: Which airport did Republic Airline fly the most from?
SQL: SELECT airlines.dest FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Republic Airline: YX' GROUP BY airlines.dest ORDER BY count(airlines.dest) DESC LIMIT 1
Database: airline
Note: fastest flight refers to MIN(SUBTRACT(actual_elapsed_time, crs_elapsed_time));
Question: Which airline does the aircraft with the fastest flight belong to?
SQL: SELECT airlines.op_carrier_airline_id FROM airlines INNER JOIN airports ON airlines.origin = airports.code WHERE airlines.actual_elapsed_time IS NOT NULL AND airlines.crs_elapsed_time IS NOT NULL ORDER BY airlines.actual_elapsed_time - airlines.crs_elapsed_time ASC LIMIT 1
Database: airline
Note: hours in total = DIVIDE(SUM(late_aircraft_delay), 60); Delta Air Lines refers to description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to late_aircraft_delay; in August of 2018 refers to fl_date like '2018/8/%'; plane number refers to tail_num; highest delayed hours refers to MAX(DIVIDE(SUM(late_aircraft_delay),60));
Question: How many hours in total did all of the Delta Air Lines aircraft were delayed due to a late aircraft in August of 2018? Identify the plane number of the aircraft with the highest delayed hours.
SQL: SELECT airlines.tail_num, sum(cast(airlines.late_aircraft_delay AS REAL) / 60) AS delay FROM airlines INNER JOIN `air carriers` ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.fl_date LIKE '2018/8/%' AND air carriers.description = 'Delta Air Lines Inc.: DL' ORDER BY delay DESC LIMIT 1
Database: airline
Question: Please list any three airports with their codes.
SQL: SELECT code, description FROM airports LIMIT 3
Database: airline
Note: Mississippi Valley airlines refers to description like 'Mississippi Valley airlines%';
Question: What is the code of Mississippi Valley Airlines?
SQL: SELECT code FROM `air carriers` WHERE description LIKE 'Mississippi Valley Airlines%'
Database: airline
Note: scheduled local departure time refers to crs_dep_time; actual departure time refers to dep_time; from Philadelphia refers to origin = 'PHL'; to Harrisburg refers to dest = 'MDT'; tail number refers to tail_num; tail_num = 'N627AE'; on the 13th of August 2018 refers to fl_date = '2018/8/13';
Question: What is the scheduled local departure time and the actual departure time of the flight from Philadelphia to Harrisburg with the plane's tail number N627AE on the 13th of August 2018?
SQL: SELECT crs_dep_time, dep_time FROM airlines WHERE origin = 'PHL' AND dest = 'MDT' AND tail_num = 'N627AE' AND fl_date = '2018/8/13'
Database: airline
Note: 1st of August 2018 refers to fl_date = '2018/8/1'; coming from Allentown, Pennsylvania refers to origin = 'ABE';
Question: How many flights on the 1st of August 2018 were coming from Allentown, Pennsylvania?
SQL: SELECT count(*) FROM airlines WHERE fl_date = '2018/8/1' AND origin = 'ABE'
Database: airline
Note: flight destination refers to dest; from Albany refers to origin = 'ABY';
Question: What is the only flight destination for flights from Albany?
SQL: SELECT dest FROM airlines WHERE origin = 'ABY' GROUP BY dest
Database: airline
Note: from Dallas refers to origin = 'DFW'; to Santa Ana refers to dest = 'SNA'; departed on time refers to dep_delay = 0;
Question: How many flights from Dallas to Santa Ana departed on time?
SQL: SELECT count(*) FROM airlines WHERE dest = 'SNA' AND origin = 'DFW' AND dep_delay = 0
Database: airline
Note: from refers to origin; Charlotte Douglas International Airport refers to description = 'Charlotte, NC: Charlotte Douglas International'; to refers to dest; Austin - Bergstrom International Airport refers to description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to cancellation_code = 'A';
Question: How many flights from Charlotte Douglas International Airport to Austin - Bergstrom International Airport experienced serious reasons that cause flight cancellation?
SQL: SELECT count(*) FROM airlines INNER JOIN airports ON airlines.origin = airports.code WHERE airlines.origin = 'CLT' AND airlines.dest = 'AUS' AND airports.description = 'Charlotte, NC: Charlotte Douglas International' AND airlines.cancellation_code = 'A'
Database: airline
Note: flight carrier operator refers to op_carrier_airline_id; most cancelled flights refers to MAX(COUNT(cancelled = 1));
Question: Which flight carrier operator has the most cancelled flights?
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id ORDER BY airlines.cancelled DESC LIMIT 1
Database: airline
Note: actual departure time refers to dep_time; JetBlue Airways refers to description like '%JetBlue Airways%'; tail number refers to tail_num; tail_num = 'N903JB'; to refers to dest; Fort Lauderdale-Hollywood International Airport refers to description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to fl_date = '2018/8/20';
Question: What is the actual departure time of JetBlue Airways with the plane's tail number N903JB to Fort Lauderdale-Hollywood International Airport on the 20th of August 2018?
SQL: SELECT airlines.dep_time FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code INNER JOIN airports ON airlines.dest = airports.code WHERE airlines.fl_date = '2018/8/20' AND airlines.tail_num = 'N903JB' AND air carriers.description LIKE '%JetBlue Airways%' AND airports.description LIKE '%Fort Lauderdale-Hollywood%'
Database: airline
Note: flight carrier operator refers to op_carrier_airline_id; from Atlantic City refers to origin = 'ACY'; to Fort Lauderdale refers to dest = 'FLL';
Question: Which flight carrier operator flies from Atlantic City to Fort Lauderdale?
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE airlines.origin = 'ACY' AND airlines.dest = 'FLL' GROUP BY air carriers.description
Database: airline
Question: What is the airport description of the airport code A11?
SQL: SELECT description FROM airports WHERE code = 'A11'
Database: airline
Note: Oklahoma as origin refers to origin = 'OKC';
Question: What is the total number of flights that have Oklahoma as their origin?
SQL: SELECT count(*) AS num FROM airlines WHERE origin = 'OKC'
Database: airline
Note: code starting with the letter C refers to code like 'C%';
Question: How many airports have a code starting with the letter C?
SQL: SELECT count(*) FROM airports WHERE code LIKE 'C%'
Database: airline
Note: destination refers to dest; flight number refers to op_carrier_fl_num; op_carrier_fl_num = 1596;
Question: Provide the destinations of flight number 1596.
SQL: SELECT dest FROM airlines WHERE op_carrier_fl_num = 1596
Database: airline
Note: code that ends with number 3 refers to code like '%3';
Question: List the description of the airports that have code that ends with number 3?
SQL: SELECT description FROM airports WHERE code LIKE '%3'
Database: airline
Note: Driftwood Bay, AK: Driftwood Bay Airport refers to description = 'Driftwood Bay, AK: Driftwood Bay Airport';
Question: Give the code of the airport described as Driftwood Bay, AK: Driftwood Bay Airport.
SQL: SELECT code FROM airports WHERE description = 'Driftwood Bay, AK: Driftwood Bay Airport'
Database: airline
Note: cancelled flights refers to cancelled = 1;
Question: How many cancelled flights are there?
SQL: SELECT count(*) FROM airlines WHERE cancelled = 1
Database: airline
Note: tail number refers to tail_num; on August 17, 2018 refers to fl_date = '2018/8/17';
Question: List the tail number of flights that flew on August 17, 2018.
SQL: SELECT tail_num FROM airlines WHERE fl_date = '2018/8/17' GROUP BY tail_num
Database: airline
Note: shortest actual elapsed time refers to MIN(actual_elapsed_time);
Question: Provide the origin of the flight that has the shortest actual elapsed time.
SQL: SELECT origin FROM airlines ORDER BY actual_elapsed_time ASC LIMIT 1
Database: airline
Note: date of flight refers to fl_date; tail number of flight refers to tail_num; Ross Aviation Inc.: GWE refers to description = 'Ross Aviation Inc.: GWE';
Question: Provide the date and tail number of flight with air carrier "Ross Aviation Inc.: GWE".
SQL: SELECT airlines.fl_date, airlines.tail_num FROM airlines INNER JOIN `air carriers` ON airlines.op_carrier_airline_id = air carriers.code WHERE air carriers.description = 'Ross Aviation Inc.: GWE'
Database: airline
Note: shortest arrival time refers to MIN(arr_time);
Question: List the air carrier description and code of the flight with the shortest arrival time.
SQL: SELECT air carriers.description, air carriers.code FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id ORDER BY airlines.arr_time ASC LIMIT 1
Database: airline
Note: JetBlue Airways refers to description = '%JetBlue Airway%'; 0 new arrival delay refers to arr_delay_new = 0;
Question: How many flights of air carrier called JetBlue Airways: B6 have 0 new arrival delay?
SQL: SELECT count(*) FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description LIKE '%JetBlue Airways: B6%' AND airlines.arr_delay_new = 0
Database: airline
Note: arriving at Miami refers to dest = 'MIA';
Question: Provide the air carrier description of all flights arriving at Miami.
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.dest = 'MIA'
Database: airline
Note: cancelled flights refers to cancelled = 1;
Question: What is the air carrier's description of the cancelled flights?
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.cancelled = 1 GROUP BY air carriers.description
Database: airline
Note: actual elapsed time refers to actual_elapsed_time; Semo Aviation Inc.: SEM. Refers to description = 'Semo Aviation Inc.: SEM';
Question: Give the actual elapsed time of the flights with air carrier named Semo Aviation Inc.: SEM.
SQL: SELECT airlines.actual_elapsed_time FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Semo Aviation Inc.: SEM'
Database: airline
Note: Asap Air Inc.: ASP refers to description = 'Asap Air Inc.: ASP'; tail number refers to tail_num; longest departure delay refers to MAX(dep_delay);
Question: Among the flights with air carrier described as Asap Air Inc.: ASP, what is the tail number of the flight with the longest departure delay?
SQL: SELECT airlines.tail_num FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Asap Air Inc.: ASP' ORDER BY airlines.dep_delay DESC LIMIT 1
Database: airline
Note: 0 departure delay refers to dep_delay = 0;
Question: List the air carrier's description of the flights with 0 departure delay.
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.dep_delay = 0 GROUP BY air carriers.description
Database: airline
Note: highest actual elapsed time refers to MAX(actual_elapsed_time);
Question: Provide the air carrier description of the flight with the highest actual elapsed time.
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id ORDER BY airlines.actual_elapsed_time DESC LIMIT 1
Database: airline
Note: destinations refers to dest; Southeast Alaska airlines: WEB refers to description = 'Southeast Alaska airlines: WEB';
Question: What are the destinations of the flights with air carrier description "Southeast Alaska Airlines: WEB"?
SQL: SELECT airlines.dest FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Southeast Alaska Airlines: WEB'
Database: airline
Note: From August 10 to August 20, 2018 refers to fl_date BETWEEN '2018/8/10' AND '2018/8/20'; cancelled flights refers to cancelled = 1; Trans Southern Airways: 'Spirit Air Lines: NK' refers to description = 'Spirit Air Lines: NK';
Question: From August 10 to August 20, 2018, how many cancelled flights of air carrier named Spirit Air Lines: NK are there?
SQL: SELECT count(*) FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Spirit Air Lines: NK' AND airlines.cancelled = 0 AND airlines.fl_date BETWEEN '2018/8/10' AND '2018/8/20'
Database: airline
Note: on August 2, 2018 refers to fl_date = '2018/8/2'; Horizon Air refers to description which includs 'Horizon Air';
Question: What is the total number of flights that flew on August 2, 2018 with air carrier described as Horizon Air?
SQL: SELECT count(*) FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description LIKE '%Horizon Air%' AND airlines.fl_date = '2018/8/2'
Database: airline
Note: tail number refers to tail_num; Iscargo Hf: ICQ refers to description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to arr_time <= 1000;
Question: What is the tail number of the flight with air carrier named Iscargo Hf: ICQ and arrival time of 1000 and below?
SQL: SELECT airlines.tail_num FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.arr_time <= 1000 AND air carriers.description = 'Iscargo Hf: ICQ'
Database: airline
Note: flight date refers to fl_date; Profit airlines Inc.: XBH refers to description = 'Profit airlines Inc.: XBH'; actual elapsed time below 100 refers to actual_elapsed_time < 100;
Question: List the flight date of flights with air carrier described as Profit Airlines Inc.: XBH which have an actual elapsed time below 100.
SQL: SELECT airlines.fl_date FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.actual_elapsed_time < 100 AND air carriers.description = 'Profit Airlines Inc.: XBH'
Database: airline
Note: Republic Airline refers to description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to dep_delay > 30;
Question: Among the flights with air carrier named Republic Airline, how many of the flights have departure delay of 30 minutes and above?
SQL: SELECT count(*) FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description LIKE '%Republic Airline%' AND airlines.dep_delay > 30
Database: airline
Note: on August 25, 2018 refers to fl_date = '2018/8/25'; departure delay of -5 refers to dep_delay = -5;
Question: What are the air carriers of the flights that flew on August 25, 2018 that have departure delay of -5?
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.fl_date = '2018/8/25' GROUP BY air carriers.description
Database: airline
Note: tail number refers to tail_num; tail_num = 'N922US'; from Phoenix refers to origin = 'PHX';
Question: Provide the air carrier description of the flight with a tail number N922US from Phoenix.
SQL: SELECT air carriers.description FROM airlines INNER JOIN `air carriers` ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.tail_num = 'N922US' AND airlines.origin = 'PHX' GROUP BY air carriers.description
Database: airline
Note: earlier arrival and departure refers to arr_delay < 0 AND dep_delay < 0;
Question: Give the air carrier description of the flights that have an earlier arrival and departure.
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.arr_delay < 0 AND airlines.dep_delay < 0 GROUP BY air carriers.description
Database: airline
Note: Southwest airlines Co.: WN refers to description = 'Southwest airlines Co.: WN'; tail number refers to tail_num; actual elapsed time lower than the 80% of the average actual elapsed time refers to actual_elapsed_time < (MULTIPLY AVG(actual_elapsed_time), 0.8);
Question: Among the flights with air carrier "Southwest Airlines Co.: WN", provide the tail number of flights with an actual elapsed time lower than the 80% of the average actual elapsed time of listed flights.
SQL: SELECT airlines.tail_num FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description = 'Southwest Airlines Co.: WN' AND airlines.actual_elapsed_time < ( SELECT avg(actual_elapsed_time) * 0.8 FROM airlines )
Database: airline
Note: arrival time lower than the 40% of the average arrival time refers to arr_time < MULTIPLY(AVG(arr_time), 0.4); flew to Phoenix refers to dest = 'PHX';
Question: List the air carrier's description with arrival time lower than the 40% of the average arrival time of flights that flew to Phoenix.
SQL: SELECT air carriers.description FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE airlines.dest = 'PHX' AND airlines.arr_time < ( SELECT avg(arr_time) * 0.4 FROM airlines ) GROUP BY air carriers.description
Database: airline
Note: American airlines can be found in description which contains 'American airlines'; percentage = MULTIPLY(DIVIDE(SUM(dep_delay < 0), COUNT(dep_delay)), 1.0); earlier departure refers to dep_delay < 0;
Question: Among the flights of the air carrier described as American Airlines, what is the percentage of the flights with earlier departure?
SQL: SELECT cast(sum(CASE WHEN airlines.dep_delay < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM `air carriers` INNER JOIN airlines ON air carriers.code = airlines.op_carrier_airline_id WHERE air carriers.description LIKE '%American Airlines%'
Database: books
Note: books have over 500 pages refers to num_pages > 500;
Question: Among the books published by publisher ID 1929, how many of them have over 500 pages?
SQL: SELECT count(*) FROM book WHERE publisher_id = 1929 AND num_pages > 500
Database: books
Note: book with the most pages refers to Max(num_pages);
Question: What is the publication date of the book with the most pages?
SQL: SELECT publication_date FROM book ORDER BY num_pages DESC LIMIT 1
Database: books
Note: "The Illuminati" is the title of the book; name of publisher refers to publisher_name;
Question: What is the name of the publisher of the book "The Illuminati"?
SQL: SELECT publisher.publisher_name FROM book INNER JOIN publisher ON book.publisher_id = publisher.publisher_id WHERE book.title = 'The Illuminati'
Database: books
Note: "Thomas Nelson" is the publisher_name;
Question: How many books were published by publisher "Thomas Nelson"?
SQL: SELECT count(*) FROM book INNER JOIN publisher ON book.publisher_id = publisher.publisher_id WHERE publisher.publisher_name = 'Thomas Nelson'