sentence
stringlengths
3
347
sql
stringlengths
18
804
Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?
SELECT college FROM table_name_59 WHERE round < 3 AND pick__number > 4 AND position = "wide receiver"
Show all document ids, names and the number of paragraphs in each document.
SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id
Who was the writer in the episode directed by Jesse Peretz?
SELECT written_by FROM table_26961951_6 WHERE directed_by = "Jesse Peretz"
Please list the order number of the customer whose credit card has a limit of 45300.
SELECT t1.orderNumber FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.creditLimit = 45300
what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?
SELECT cpu FROM table_11703336_1 WHERE ram = "28 KB of ram" AND display_size = "128×64 pixels 21×8 characters"
Which title has a Black Ice for a guest performer and a length of 5:49?
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49"
What is the name of the visitor on 2006-11-04?
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04"
Locate all events on devices of women under 30 years old.
SELECT T1.device_id FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T1.age < 30
What was the score of the game when the record was 59-65?
SELECT score FROM table_name_77 WHERE record = "59-65"
What position did the player play in the european cross country championships in 2008?
SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008
Show teams that have suffered more than three eliminations.
SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3
What is the aircraft name for the flight with number 99
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99
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
Name the original air date for number in season being 13
SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "13"
Show the member names which are in both the party with id 3 and the party with id 1.
SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1
What is the project detail for the project with document "King Book"?
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
What is the location of the party with the most hosts?
SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
Which trip started from the station with the largest dock count? Give me the trip id.
SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1
Find the number of students whose age is older than the average age for each gender.
SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex
What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?
SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15
Result of w 24–21, and a Week smaller than 6 had what sum of attendance?
SELECT SUM(attendance) FROM table_name_9 WHERE result = "w 24–21" AND week < 6
What is the total sales of furniture products in the east superstore in the year 2016.
SELECT SUM(T1.Sales) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2016' AND T2.Category = 'Furniture'
What was the surface for the game that was played on 12-Apr-2005?
SELECT surface FROM table_name_50 WHERE date = "12-apr-2005"
What's the name of the song by afro-dite that had a points total greater than 100?
SELECT song FROM table_name_31 WHERE points > 100 AND artist = "afro-dite"
What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?
SELECT MAX(games) FROM table_name_26 WHERE rebounds > 100 AND name = "nikola peković" AND rank < 4
How many tweets have a klout of over 50?
SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Klout > 50
How many bike trips started on the days in September, 2013 with the hottest temperature over 70 degrees Fahrenheit in the area where the zip code is 94107?
SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '9/%/2013' AND T2.zip_code = 94107 AND T2.max_temperature_f > 70
What was the average finish the year Bodine finished 3rd?
SELECT avg_finish FROM table_2387790_2 WHERE position = "3rd"
List the all the assets make, model, details by the disposed date ascendingly.
SELECT asset_make , asset_model , asset_details FROM Assets ORDER BY asset_disposed_date ASC
Show the names of companies and the number of employees they have
SELECT T3.Name , COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name
Who is the opponent of Game 1 with a 3-2-0 record?
SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0"
What are the first, middle, and last names of all staff?
SELECT first_name , middle_name , last_name FROM Staff;
What is the mail date of the document with id 7?
SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7
What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?
SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120
When was 10 (10) bought?
SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = "10 (10)"
Which cities have higher temperature in Feb than in Jun or have once served as host cities?
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
What is the first name, gpa and phone number of the top 5 students with highest gpa?
SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5
What is the record for the Utah Jazz?
SELECT record FROM table_name_4 WHERE team = "utah jazz"
Return the address of customer 10.
SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10
In total, how many shipments were transported to Olympic Camper Sales Inc?
SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'Olympic Camper Sales Inc'
what is the number of areas where the townland is brittas?
SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = "Brittas"
What is the percentage of the the users who would bring up a mental health issue with a potential employer in an interview?
SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 12
How many years as tallest building was the Tenth Presbyterian Church?
SELECT years_as_tallest FROM table_name_78 WHERE name = "tenth presbyterian church"
Name the surface for 20 march 2007
SELECT surface FROM table_name_5 WHERE date = "20 march 2007"
If 4 went to iran and the amount that survived was less than 12.0 how many were there in 1990?
SELECT COUNT(1990) FROM table_1817852_1 WHERE to_iran = 4 AND survived < 12.0
What are the apps that users pretty like this app and how many installs amount of these apps?
SELECT DISTINCT T1.App, T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment_Polarity > 0
How many degrees does the engineering department have?
SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'
what is the average top-10 when the cuts made is less than 9 and the events is more than 14?
SELECT AVG(top_10) FROM table_name_48 WHERE cuts_made < 9 AND events > 14
Find the famous titles of artists that do not have any volume.
SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
What is the per capital income for Charles county?
SELECT per_capita_income FROM table_name_9 WHERE county = "charles"
How many districts had republican Bob Goodlatte as a candidate?
SELECT COUNT(district) FROM table_17503169_1 WHERE republican = "Bob Goodlatte"
What are the average score and average staff number of all shops?
SELECT avg(num_of_staff) , avg(score) FROM shop
What was the Result on October 27, 2002?
SELECT result FROM table_name_66 WHERE date = "october 27, 2002"
List the full names of 10 legislators who only have a Facebook account.
SELECT T2.official_full_name FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE (T1.youtube IS NULL OR T1.youtube = '') AND (T1.instagram IS NULL OR T1.instagram = '') AND (T1.twitter IS NULL OR T1.twitter = '') AND T1.facebook IS NOT NULL AND T1.facebook != ''
What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
Show different citizenship of singers and the number of singers of each citizenship.
SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship
What team played between the years of 2008-2010?
SELECT team FROM table_name_75 WHERE played = "2008-2010"
Which department has the most disabled students?
SELECT T2.organ, COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` GROUP BY T2.organ ORDER BY COUNT(T1.name) DESC LIMIT 1
What city is the bucharest tower center (btc) located in?
SELECT city FROM table_name_47 WHERE building = "bucharest tower center (btc)"
What is the total area of the Arkansas River outlet with a % in-state of a021 100%?
SELECT total_area FROM table_name_61 WHERE outlet = "arkansas river" AND _percentage_in_state = "a021 100%"
Who is the player in round 6?
SELECT player FROM table_name_94 WHERE round = 6
List all goalies with more lost than won games for two seasons or more. State the name of the player and team he played.
SELECT DISTINCT T1.firstName, T1.lastName, T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.year = T3.year AND T2.tmID = T3.tmID WHERE T1.pos = 'G' AND T2.L > T2.W GROUP BY T1.firstName, T1.lastName, T3.name HAVING COUNT(T3.year) > 2
What is the Team with a game of more than 56, and the score is l 85–90 (ot)?
SELECT team FROM table_name_76 WHERE game > 56 AND score = "l 85–90 (ot)"
What's the Qual listed with a Rank of 27?
SELECT qual FROM table_name_41 WHERE rank = "27"
Which events id does not have any participant with detail 'Kenyatta Kuhn'?
SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'
who is the the candidates with first elected being 1977
SELECT candidates FROM table_1341586_19 WHERE first_elected = 1977
Return the names of singers who are from UK and released an English song.
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"
Who directed series # 422?
SELECT director FROM table_25800134_11 WHERE series__number = 422
When was the tournament at Orange?
SELECT date FROM table_name_30 WHERE tournament = "orange"
What are the first names and birthdates of the professors in charge of ACCT-211?
SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211"
What is the document id of that document?
SELECT document_id from all_documents where document_name = "Robin CV"
How many different partners were played with during French Open (0/1)?
SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = "French Open (0/1)"
and the user id followed by Mary?
SELECT t2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan" or T1.name = "Mary"
Who are the players that have attended Stanford?
SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford"
List venues of all matches in the order of their dates starting from the most recent one.
SELECT venue FROM MATCH ORDER BY date DESC
How many different countries serve as headquarters?
SELECT count ( distinct Headquarters ) FROM company
Among all goalies who are still alive, whose first season in NHL in before 1950. List the team names they were in.
SELECT DISTINCT T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.lgID = T3.lgID AND T2.year = T3.year WHERE T1.deathYear IS NOT NULL AND T1.firstNHL < 1950
What are the id of all the files in mp3 format?
SELECT f_id FROM files WHERE formats = "mp3"
Please indicate the names of customers whose orders are eligible for 10% discount with order dates between 1/1/1994 and 1/1/1995.
SELECT T3.c_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN customer AS T3 ON T1.o_custkey = T3.c_custkey WHERE T2.l_discount = 0.1 AND STRFTIME('%Y', T1.o_orderdate) BETWEEN 1994 AND 1995
What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?
SELECT SUM(december) FROM table_name_95 WHERE july = 0.36 AND february > 0.35000000000000003
Find the number of companies whose industry is "Banking" or "Conglomerate",
SELECT count(*) FROM Companies WHERE Industry = "Banking" OR Industry = "Conglomerate"
State the average period of Ms. Angelena Kertzmann's several normal pregnancies.
SELECT CAST(SUM(strftime('%J', T2.STOP) - strftime('%J', T2.START)) AS REAL) / COUNT(T2.PATIENT) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Angelena' AND T1.last = 'Kertzmann' AND T2.description = 'Normal pregnancy'
How many schools are there?
SELECT count ( school_code ) FROM department
Name the F. Goals with tries of 0 0 and games of 05 5
SELECT F.goals FROM table_name_18 WHERE tries = "0 0" AND games = "05 5"
Which movies did the company Paramount Pictures produce in 2000?
SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Paramount Pictures' AND CAST(STRFTIME('%Y', T3.release_date) AS INT) = 2000
Who were the authors of series episode #25?
SELECT written_by FROM table_12030612_3 WHERE series__number = 25
Tell me the name for Investigation of thrombus imaging and Route of administration of iv
SELECT name FROM table_name_68 WHERE route_of_administration = "iv" AND investigation = "thrombus imaging"
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id
What is the name of the vendors serving material for projects for grades 9-12?
SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.grade_level = 'Grades 9-12'
I want to know the opponent that ha a week of 3
SELECT opponent FROM table_name_61 WHERE week = "3"
Give the number of documentary films.
SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id WHERE T2.name = 'Documentary'
How many languages are used in Cyprus?
SELECT SUM(CASE WHEN T1.Name = 'Cyprus' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode
What was the rating of the episodes that Jace Alexander worked on?
SELECT T1.rating FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T3.name = 'Jace Alexander'
Name the engine with rounds of 7 with geki driver
SELECT engine FROM table_name_57 WHERE rounds = "7" AND driver = "geki"
What was the province if the electorate was Collingwood?
SELECT province FROM table_27592654_2 WHERE electorate = "Collingwood"
What is the most points that the Maserati 250F chassis scored in years after 1955?
SELECT MAX(points) FROM table_name_39 WHERE chassis = "maserati 250f" AND year > 1955
Find the number of members living in each address.
SELECT count(*) , address FROM member GROUP BY address
What was the greatest number of laps run?
SELECT MAX(laps) FROM table_27940569_1
Name the Social Sec Leeds has Fixtures Sec of n/a, and a General Sec of n/a, and the Season of 2005–2006?
SELECT social_sec_leeds FROM table_name_23 WHERE fixtures_sec = "n/a" AND general_sec = "n/a" AND season = "2005–2006"
Name The Title which has a Track number of 07, and a Record label of emi on 21 april 2006?
SELECT title FROM table_name_73 WHERE track_number = "07" AND record_label = "emi" AND release_date = "21 april 2006"