query_id
int64 0
1.03k
| database_id
stringclasses 20
values | table_id
sequencelengths 1
4
| query
stringlengths 18
174
| answer
stringlengths 20
422
| difficulty
stringclasses 4
values |
---|---|---|---|---|---|
200 | flight_2 | [
"AIRPORTS"
] | Return the name of the airport with code 'AKO'. | SELECT AirportName FROM AIRPORTS WHERE AirportCode = "AKO" | easy |
201 | flight_2 | [
"AIRPORTS"
] | What are airport names at City 'Aberdeen'? | SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen" | easy |
202 | flight_2 | [
"AIRPORTS"
] | What are the names of airports in Aberdeen? | SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen" | easy |
203 | flight_2 | [
"FLIGHTS"
] | How many flights depart from 'APG'? | SELECT count(*) FROM FLIGHTS WHERE SourceAirport = "APG" | easy |
204 | flight_2 | [
"FLIGHTS"
] | Count the number of flights departing from 'APG'. | SELECT count(*) FROM FLIGHTS WHERE SourceAirport = "APG" | easy |
205 | flight_2 | [
"FLIGHTS"
] | How many flights have destination ATO? | SELECT count(*) FROM FLIGHTS WHERE DestAirport = "ATO" | easy |
206 | flight_2 | [
"FLIGHTS"
] | Count the number of flights into ATO. | SELECT count(*) FROM FLIGHTS WHERE DestAirport = "ATO" | easy |
207 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | How many flights depart from City Aberdeen? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
208 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Return the number of flights departing from Aberdeen. | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
209 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | How many flights arriving in Aberdeen city? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
210 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Return the number of flights arriving in Aberdeen. | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
211 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen" | hard |
212 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | How many flights fly from Aberdeen to Ashley? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen" | hard |
213 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | How many flights does airline 'JetBlue Airways' have? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = "JetBlue Airways" | medium |
214 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Give the number of Jetblue Airways flights. | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = "JetBlue Airways" | medium |
215 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | How many 'United Airlines' flights go to Airport 'ASY'? | SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY" | medium |
216 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Count the number of United Airlines flights arriving in ASY Airport. | SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY" | medium |
217 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | How many 'United Airlines' flights depart from Airport 'AHD'? | SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.SourceAirport = "AHD" | medium |
218 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Return the number of United Airlines flights leaving from AHD Airport. | SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.SourceAirport = "AHD" | medium |
219 | flight_2 | [
"FLIGHTS",
"AIRPORTS",
"AIRLINES"
] | How many United Airlines flights go to City 'Aberdeen'? | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines" | hard |
220 | flight_2 | [
"FLIGHTS",
"AIRPORTS",
"AIRLINES"
] | Count the number of United Airlines flights that arrive in Aberdeen. | SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines" | hard |
221 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Which city has most number of arriving flights? | SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | extra |
222 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Which city has the most frequent destination airport? | SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | extra |
223 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Which city has most number of departing flights? | SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | extra |
224 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Which city is the most frequent source airport? | SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 | extra |
225 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | What is the code of airport that has the highest number of flights? | SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 | extra |
226 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | What is the airport code of the airport with the most flights? | SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 | extra |
227 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | What is the code of airport that has fewest number of flights? | SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 | extra |
228 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Give the code of the airport with the least flights. | SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 | extra |
229 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airline has most number of flights? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 | extra |
230 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | What airline serves the most flights? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 | extra |
231 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Find the abbreviation and country of the airline that has fewest number of flights? | SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1 | extra |
232 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | What is the abbreviation of the airilne has the fewest flights and what country is it in? | SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1 | extra |
233 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | What are airlines that have some flight departing from airport 'AHD'? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD" | medium |
234 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have a flight with source airport AHD? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD" | medium |
235 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | What are airlines that have flights arriving at airport 'AHD'? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD" | medium |
236 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have a flight with destination airport AHD? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = "AHD" | medium |
237 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Find all airlines that have flights from both airports 'APG' and 'CVO'. | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | extra |
238 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have departing flights from both APG and CVO airports? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | extra |
239 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Find all airlines that have flights from airport 'CVO' but not from 'APG'. | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" | extra |
240 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have departures from CVO but not from APG airports? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" | extra |
241 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Find all airlines that have at least 10 flights. | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 | medium |
242 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have at least 10 flights? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 | medium |
243 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Find all airlines that have fewer than 200 flights. | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 | medium |
244 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which airlines have less than 200 flights? | SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 | medium |
245 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | What are flight numbers of Airline "United Airlines"? | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines" | medium |
246 | flight_2 | [
"FLIGHTS",
"AIRLINES"
] | Which flight numbers correspond to United Airlines flights? | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = "United Airlines" | medium |
247 | flight_2 | [
"FLIGHTS"
] | What are flight numbers of flights departing from Airport "APG"? | SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG" | easy |
248 | flight_2 | [
"FLIGHTS"
] | Give the flight numbers of flights leaving from APG. | SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = "APG" | easy |
249 | flight_2 | [
"FLIGHTS"
] | What are flight numbers of flights arriving at Airport "APG"? | SELECT FlightNo FROM FLIGHTS WHERE DestAirport = "APG" | easy |
250 | flight_2 | [
"FLIGHTS"
] | Give the flight numbers of flights landing at APG. | SELECT FlightNo FROM FLIGHTS WHERE DestAirport = "APG" | easy |
251 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | What are flight numbers of flights departing from City "Aberdeen "? | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
252 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Give the flight numbers of flights leaving from Aberdeen. | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
253 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | What are flight numbers of flights arriving at City "Aberdeen"? | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
254 | flight_2 | [
"FLIGHTS",
"AIRPORTS"
] | Give the flight numbers of flights arriving in Aberdeen. | SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen" | medium |
255 | flight_2 | [
"Airports",
"Flights"
] | Find the number of flights landing in the city of Aberdeen or Abilene. | SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | hard |
256 | flight_2 | [
"Airports",
"Flights"
] | How many flights land in Aberdeen or Abilene? | SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | hard |
257 | flight_2 | [
"Airports",
"Flights"
] | Find the name of airports which do not have any flight in and out. | SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) | hard |
258 | flight_2 | [
"Airports",
"Flights"
] | Which airports do not have departing or arriving flights? | SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) | hard |
259 | employee_hire_evaluation | [
"employee"
] | How many employees are there? | SELECT count(*) FROM employee | easy |
260 | employee_hire_evaluation | [
"employee"
] | Count the number of employees | SELECT count(*) FROM employee | easy |
261 | employee_hire_evaluation | [
"employee"
] | Sort employee names by their age in ascending order. | SELECT name FROM employee ORDER BY age | easy |
262 | employee_hire_evaluation | [
"employee"
] | List the names of employees and sort in ascending order of age. | SELECT name FROM employee ORDER BY age | easy |
263 | employee_hire_evaluation | [
"employee"
] | What is the number of employees from each city? | SELECT count(*) , city FROM employee GROUP BY city | medium |
264 | employee_hire_evaluation | [
"employee"
] | Count the number of employees for each city. | SELECT count(*) , city FROM employee GROUP BY city | medium |
265 | employee_hire_evaluation | [
"employee"
] | Which cities do more than one employee under age 30 come from? | SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 | medium |
266 | employee_hire_evaluation | [
"employee"
] | Find the cities that have more than one employee under age 30. | SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 | medium |
267 | employee_hire_evaluation | [
"shop"
] | Find the number of shops in each location. | SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION | medium |
268 | employee_hire_evaluation | [
"shop"
] | How many shops are there in each location? | SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION | medium |
269 | employee_hire_evaluation | [
"shop"
] | Find the manager name and district of the shop whose number of products is the largest. | SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1 | medium |
270 | employee_hire_evaluation | [
"shop"
] | What are the manager name and district of the shop that sells the largest number of products? | SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1 | medium |
271 | employee_hire_evaluation | [
"shop"
] | find the minimum and maximum number of products of all stores. | SELECT min(Number_products) , max(Number_products) FROM shop | medium |
272 | employee_hire_evaluation | [
"shop"
] | What are the minimum and maximum number of products across all the shops? | SELECT min(Number_products) , max(Number_products) FROM shop | medium |
273 | employee_hire_evaluation | [
"shop"
] | Return the name, location and district of all shops in descending order of number of products. | SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC | medium |
274 | employee_hire_evaluation | [
"shop"
] | Sort all the shops by number products in descending order, and return the name, location and district of each shop. | SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC | medium |
275 | employee_hire_evaluation | [
"shop"
] | Find the names of stores whose number products is more than the average number of products. | SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) | hard |
276 | employee_hire_evaluation | [
"shop"
] | Which shops' number products is above the average? Give me the shop names. | SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) | hard |
277 | employee_hire_evaluation | [
"employee",
"evaluation"
] | find the name of employee who was awarded the most times in the evaluation. | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 | extra |
278 | employee_hire_evaluation | [
"employee",
"evaluation"
] | Which employee received the most awards in evaluations? Give me the employee name. | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 | extra |
279 | employee_hire_evaluation | [
"employee",
"evaluation"
] | Find the name of the employee who got the highest one time bonus. | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 | hard |
280 | employee_hire_evaluation | [
"employee",
"evaluation"
] | Which employee received the biggest bonus? Give me the employee name. | SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 | hard |
281 | employee_hire_evaluation | [
"employee",
"evaluation"
] | Find the names of employees who never won any award in the evaluation. | SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) | hard |
282 | employee_hire_evaluation | [
"employee",
"evaluation"
] | What are the names of the employees who never received any evaluation? | SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) | hard |
283 | employee_hire_evaluation | [
"shop",
"hiring"
] | What is the name of the shop that is hiring the largest number of employees? | SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 | extra |
284 | employee_hire_evaluation | [
"shop",
"hiring"
] | Which shop has the most employees? Give me the shop name. | SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 | extra |
285 | employee_hire_evaluation | [
"shop",
"hiring"
] | Find the name of the shops that do not hire any employee. | SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) | hard |
286 | employee_hire_evaluation | [
"shop",
"hiring"
] | Which shops run with no employees? Find the shop names | SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) | hard |
287 | employee_hire_evaluation | [
"shop",
"hiring"
] | Find the number of employees hired in each shop; show the shop name as well. | SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | medium |
288 | employee_hire_evaluation | [
"shop",
"hiring"
] | For each shop, return the number of employees working there and the name of the shop. | SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | medium |
289 | employee_hire_evaluation | [
"evaluation"
] | What is total bonus given in all evaluations? | SELECT sum(bonus) FROM evaluation | easy |
290 | employee_hire_evaluation | [
"evaluation"
] | Find the total amount of bonus given in all the evaluations. | SELECT sum(bonus) FROM evaluation | easy |
291 | employee_hire_evaluation | [
"hiring"
] | Give me all the information about hiring. | SELECT * FROM hiring | easy |
292 | employee_hire_evaluation | [
"hiring"
] | What is all the information about hiring? | SELECT * FROM hiring | easy |
293 | employee_hire_evaluation | [
"shop"
] | Which district has both stores with less than 3000 products and stores with more than 10000 products? | SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 | hard |
294 | employee_hire_evaluation | [
"shop"
] | Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products. | SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 | hard |
295 | employee_hire_evaluation | [
"shop"
] | How many different store locations are there? | SELECT count(DISTINCT LOCATION) FROM shop | easy |
296 | employee_hire_evaluation | [
"shop"
] | Count the number of distinct store locations. | SELECT count(DISTINCT LOCATION) FROM shop | easy |
297 | cre_Doc_Template_Mgt | [
"Documents"
] | How many documents do we have? | SELECT count(*) FROM Documents | easy |
298 | cre_Doc_Template_Mgt | [
"Documents"
] | Count the number of documents. | SELECT count(*) FROM Documents | easy |
299 | cre_Doc_Template_Mgt | [
"Documents"
] | List document IDs, document names, and document descriptions for all documents. | SELECT document_id , document_name , document_description FROM Documents | medium |