done,db_id,question,query,simple_question,source 1,geo,how big is new mexico,"SELECT area FROM state WHERE state_name = ""new mexico"";",how big is state new mexico,train_others 1,geo,how large is new mexico,"SELECT area FROM state WHERE state_name = ""new mexico"";",how large is state new mexico,train_others 1,geo,where is springfield,"SELECT state_name FROM city WHERE city_name = ""springfield"";",in what state is city springfield,train_others 1,geo,how many people live in boulder,"SELECT population FROM city WHERE city_name = ""boulder"";",how many people live in city boulder,train_others 1,flight_2,What country is Jetblue Airways affiliated with?,"SELECT Country FROM AIRLINES WHERE Airline = ""JetBlue Airways"";",What country is airline Jetblue Airways affiliated with?,dev 1,flight_2,How many airlines are from USA?,"SELECT count(*) FROM AIRLINES WHERE Country = ""USA"";",How many airlines are from country USA?,dev 1,wta_1,What are the first names and birth dates of players from the USA?,"SELECT first_name , birth_date FROM players WHERE country_code = 'USA';",What are the first names and birth dates of players from country with code USA?,dev 1,student_transcripts_tracking,What is the zip code for Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea';,What is the zip code for city Port Chelsea?,dev 1,student_transcripts_tracking,What is the mobile phone number of the student named Timmothy Ward ?,select cell_mobile_number from students where first_name = 'Timmothy' and last_name = 'Ward';,What is the mobile phone number of the student with first name Timmothy and last name Ward ?,dev 1,tvshow,find the pixel aspect ratio and nation of the tv channels that do not use English.,"SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English';",find the pixel aspect ratio and nation of the tv channels that do not use language English.,dev 1,world_1,What is the name of country that has the shortest life expectancy in Asia?,"SELECT Name FROM country WHERE Continent = ""Asia"" ORDER BY LifeExpectancy LIMIT 1;",What is the name of country that has the shortest life expectancy in continent Asia?,dev 1,world_1,Give the name of the country in Asia with the lowest life expectancy.,"SELECT Name FROM country WHERE Continent = ""Asia"" ORDER BY LifeExpectancy LIMIT 1;",Give the name of the country in continent Asia with the lowest life expectancy.,dev 1,world_1,What is the total population and maximum GNP in Asia?,"SELECT sum(Population) , max(GNP) FROM country WHERE Continent = ""Asia"";",What is the total population and maximum GNP in continent Asia?,dev 1,world_1,Give the mean GNP and total population of nations which are considered US territory.,"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = ""US Territory"";",Give the mean GNP and total population of nations which are considered goverment form US.,dev 1,world_1,What is the total number of languages used in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba"";",What is the total number of languages used in country named Aruba?,dev 1,world_1,How many languages are spoken in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba"";",How many languages are spoken in country with name Aruba?,dev 1,world_1,How many official languages does Afghanistan have?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T"";",How many official languages does country with name Afghanistan have?,dev 1,world_1,How many official languages are spoken in Afghanistan?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T"";",How many official languages are spoken in country with name Afghanistan?,dev 1,world_1,What is the number of distinct continents where Chinese is spoken?,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Chinese"";",What is the number of distinct continents where language Chinese is spoken?,dev 1,world_1,how many countries are in Asia?,"SELECT count(*) FROM country WHERE continent = ""Asia"";",how many countries are in continent Asia?,dev 1,network_1,What is Kyle's id?,"SELECT ID FROM Highschooler WHERE name = ""Kyle"";",What is id of highschooler with name Kyle?,dev 1,bike_1,How many trips did not end in San Francisco?,"SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != ""San Francisco"";",How many trips did not end in city San Francisco?,train_spider 1,bike_1,"In zip code 94107, on which day neither Fog nor Rain was not observed?","SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != ""Fog"" AND EVENTS != ""Rain"";","In zip code 94107, on which day events Fog and Rain was not observed?",train_spider 1,bike_1,What are the names of all stations that have more than 10 bikes available and are not located in San Jose?,"SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose"";",What are the names of all stations that have more than 10 bikes available and are not located in city San Jose?,train_spider 1,bike_1,How many trips started from Mountain View city and ended at Palo Alto city?,"SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Mountain View"" AND T3.city = ""Palo Alto"";",How many trips started from city Mountain View city and ended at city Palo Alto city?,train_spider 1,flight_1,Show the id and salary of Mark Young.,"SELECT eid , salary FROM Employee WHERE name = 'Mark Young';",Show the id and salary of employee with name Mark Young.,train_spider 1,flight_1,What are the names of all aircrafts that John Williams have certificates to be able to fly?,"SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams"";",What are the names of all aircrafts that employee with name John Williams have certificates to be able to fly?,train_spider 1,allergy_1,Give the number of students living in either HKG or CHI.,"SELECT count(*) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI"";",Give the number of students living in cities with codes HKG or CHI.,train_spider 1,store_1,What is the email and phone number of Astrid Gruber the customer?,"SELECT email , phone FROM customers WHERE first_name = ""Astrid"" AND last_name = ""Gruber"";",What is the email and phone number of customer with first name Astrid and last name Gruber?,train_spider 1,store_1,What is the the phone number of Nancy Edwards?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";",What is the the phone number of employee with first name Nancy and last name Edwards?,train_spider 1,store_1,How many orders does Lucas Mancini has?,"SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";",How many orders does customer with first name Lucas and last name Mancini has?,train_spider 1,store_1,How many milliseconds long is Fast As a Shark?,"SELECT milliseconds FROM tracks WHERE name = ""Fast As a Shark"";",How many milliseconds long is track named Fast As a Shark?,train_spider 1,customers_card_transactions,How many debit cards do we have?,"SELECT count(*) FROM Customers_cards WHERE card_type_code = ""Debit"";","How many cards with type code ""Debit"" do we have?",train_spider 1,customers_card_transactions,Show the customer ids and firstname without a credit card.,"SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = ""Credit"";","Show the customer ids and firstname without a card with type code ""Credit"".",train_spider 1,culture_company,Show the movie titles and book titles for all companies in China.,"SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China';",Show the movie titles and book titles for all companies incorporated in China.,train_spider