sentence
stringlengths
3
347
sql
stringlengths
18
804
Which Rank has a Club of zulte waregem, and Points larger than 22?
SELECT COUNT(rank) FROM table_name_93 WHERE club = "zulte waregem" AND points > 22
How many athletes took part in the Olympic games held in Barcelona?
SELECT COUNT(T1.person_id) FROM games_competitor AS T1 INNER JOIN games_city AS T2 ON T1.games_id = T2.games_id INNER JOIN city AS T3 ON T2.city_id = T3.id WHERE T3.city_name = 'Barcelona'
List the business located in Mesa that have alcohol attribute.
SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Mesa' AND T3.attribute_name = 'Alcohol'
What are the building full names that contain the word "court"?
SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%"
What is the freestyle leg for the Netherlands?
SELECT freestyle_leg FROM table_name_69 WHERE country = "netherlands"
What is the decor of room Recluse and defiance?
SELECT decor FROM Rooms WHERE roomName = "Recluse and defiance"
What are the clerks of orders with line items shipped by mail?
SELECT T1.o_clerk FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'MAIL'
What was the latest release date for Ariola in Spain?
SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain"
Among all the tweets sent by male users in Argentina, what is the text of the one with the most number of likes?
SELECT T2.text FROM user AS T1 INNER JOIN twitter AS T2 ON T1.UserID = T2.UserID INNER JOIN location AS T3 ON T2.LocationID = T3.LocationID WHERE T3.Country = 'Argentina' AND T1.Gender = 'Male' ORDER BY T2.Likes DESC LIMIT 1
How many yards for the player with 1 solo tackle and over 0 sacks?
SELECT MAX(yards) FROM table_name_25 WHERE solo = 1 AND sack > 0
What team drove a Dodge vehicle?
SELECT team FROM table_name_27 WHERE make = "dodge"
Please list each title with its maximum price.
SELECT T1.title, max ( price ) from film as T1 join schedule as T2 on T1.film_id = T2.film_id group by T1.film_id
Was there a starter when 3 touchdowns were scored?
SELECT starter FROM table_14342592_7 WHERE touchdowns = 3
What is the Score of Stewart Cink with a To par of +4?
SELECT score FROM table_name_50 WHERE to_par = "+4" AND player = "stewart cink"
Who is in group c when iowa is in group e?
SELECT group_c FROM table_15290638_1 WHERE group_e = "Iowa"
FIND THE all CHECKING BALANCE OF ALL ACCOUNTS
SELECT balance FROM checking
What is the Home team when the Attendance was 1920?
SELECT home FROM table_name_20 WHERE attendance = 1920
What was the percentage for the answer of "Yes" was given to the question "Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?"?
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.questiontext LIKE 'Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?'
Which number has 11 males?
SELECT number FROM table_name_41 WHERE males = "11"
What was the score of the game when the Indians ended up with a record of 55-51?
SELECT score FROM table_name_33 WHERE record = "55-51"
What is the name of the county with the greatest population?
SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
What is the name of the driver in 1955?
SELECT driver FROM table_name_18 WHERE year = "1955"
WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC?
SELECT 1 AS st_leg FROM table_name_5 WHERE team_2 = "athletic"
Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name.
SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back"
What is the tournament when 2012 is q2?
SELECT tournament FROM table_name_64 WHERE 2012 = "q2"
What are the different card type codes?
SELECT DISTINCT card_type_code FROM Customers_Cards
Among players who were born after 1950, who had offence rebounds rates more than 30%? Please list their last names and first names.
SELECT DISTINCT T1.lastName, T1.firstName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthDate > 1950 AND CAST(T2.o_rebounds AS REAL) * 100 / T2.rebounds > 30
Which arranger worked with composer Imad Shams Eldeen at 4:03?
SELECT arranger FROM table_name_19 WHERE composer = "imad shams eldeen" AND length = "4:03"
What is the type for the population in 2011 of 1004?
SELECT type FROM table_2562572_43 WHERE population__2011_ = 1004
How many try bonuses were there when there were 64 tries for?
SELECT try_bonus FROM table_12792876_2 WHERE tries_for = "64"
Who is the Trainer with the Year of 2013?
SELECT trainer FROM table_name_33 WHERE year = "2013"
What is the point classification of stage 15?
SELECT points_classification FROM table_name_92 WHERE stage = "15"
What was the highest long with less than 7 losses and an Avg/G smaller than 25.1?
SELECT MAX(long) FROM table_name_3 WHERE loss < 7 AND avg_g < 25.1
Which show aired on 19 april?
SELECT show FROM table_name_81 WHERE date = "19 april"
What are the first names and last names of students with address in Wisconsin state?
SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = "Wisconsin"
How many total players came from the school/club team of De La Salle?
SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = "de la salle"
Show the name of track and the number of races in each track.
SELECT T2.name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id
How many enzymes do not have any interactions?
SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
What is their record on April 2?
SELECT record FROM table_name_59 WHERE date = "april 2"
List the names of perpetrators in descending order of the year.
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC;
Sort the information about course authors and tutors in alphabetical order of the personal name.
SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name
Show the leader names and locations of colleges.
SELECT Leader_Name , College_Location FROM college
Tell me the nationality for rudolf vercik
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik"
How many Professors are in building NEB?
SELECT count(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
What was the name of the tournament that the final was played against Yi Jingqian?
SELECT tournament FROM table_name_89 WHERE opponent_in_the_final = "yi jingqian"
What Location Attendance has a Game of 14?
SELECT location_attendance FROM table_name_91 WHERE game = "14"
what is the composer of genre id 1
SELECT composer from tracks where genre_id = 1
Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?
SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10
What are the maximum and minumum grade points?
SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION
What is the distance of the name Boeing 747-400? | did you mean the distance of the aircraft with the name Boeing 747-400? | yes
SELECT distance FROM Aircraft where name = 'Boeing 747-400'
Where did they play the San Diego Chargers?
SELECT game_site FROM table_13259009_2 WHERE opponent = "San Diego Chargers"
How many songs received a 10 from Goodman and were rated by Tonioli?
SELECT COUNT(tonioli) FROM table_1014319_1 WHERE goodman = "10"
How many votes did Others receive where Kerry has 44.6%, and Bush more than 163,650 votes?
SELECT COUNT(others__number) FROM table_name_65 WHERE kerry__percentage = "44.6%" AND bush__number > 163 OFFSET 650
What is the average age of the sales agents in the company by 12/31/2009?
SELECT AVG(2009 - STRFTIME('%Y', T2.BirthDate)) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'SP'
For part 2 *lauk, what is listed for part 4?
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk"
In games that can be played on Wii, what is the percentage of games released in 2007?
SELECT CAST(COUNT(CASE WHEN T2.release_year = 2007 THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'Wii'
What type of food is there in the restaurants on Adeline Street in Berkeley city?
SELECT T1.food_type FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'adeline st' AND T2.city = 'berkeley'
Where is the professor of accounting's office?
SELECT T3.prof_office FROM professor AS T3 JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'
What is the last episode in the series written by Gregory S. Malins?
SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = "Gregory S. Malins"
Calculate the average score of Emory University from 2011 to 2016.
SELECT AVG(T1.score) FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Emory University' AND T1.year BETWEEN 2011 AND 2016
Find the number of trains starting from each origin.
SELECT origin , count(*) FROM train GROUP BY origin;
what's the average time of purchase for white membership card?
SELECT avg ( time_of_purchase ) FROM member WHERE membership_card = "White"
What round was the game against Cedric Marks?
SELECT round FROM table_name_39 WHERE opponent = "cedric marks"
what is the withdrawal when the lb&sc number is less than 16 and the s.r. number is 2011?
SELECT withdrawal FROM table_name_95 WHERE lb & sc_number < 16 AND sr_number = 2011
Which team had Christoph John as an outgoing manager?
SELECT team FROM table_name_45 WHERE outgoing_manager = "christoph john"
What are the ids of the top 3 expensive rooms?
SELECT RoomId FROM Rooms ORDER BY basePrice desc LIMIT 3
What is the number of Seats for Leader Enda kenny?
SELECT seats FROM table_name_49 WHERE leader = "enda kenny"
How many games did Electronic Arts publish?
SELECT COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id WHERE T1.publisher_name = 'Electronic Arts'
What are the grapes and appelations of each wine?
SELECT Grape , Appelation FROM WINE
How many employees work in that department?
SELECT count ( * ) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'
Find the maximum and minimum monthly rental for all student addresses.
SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses
What is the total quantity of products purchased by "Rodrick Heaney"?
SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney"
What was the cause of death in the marriage that lasted 28 years?
SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = "28 years"
What are the names of players who get more than the average points?
SELECT name FROM player WHERE points > ( SELECT avg ( points ) FROM player )
In which city is the brewery AJ Stephans Beverages located?
SELECT City FROM rootbeerbrand WHERE BreweryName = 'AJ Stephans Beverages'
List down player ID of players who have passed away.
SELECT DISTINCT playerID FROM Master WHERE deathYear IS NOT NULL AND playerID IS NOT NULL
Show the number of male and female assistant professors.
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
Tell me the most crowd for arden street oval venue
SELECT MAX(crowd) FROM table_name_39 WHERE venue = "arden street oval"
Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller than 7?
SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = "kawasaki" AND grid < 7
Among the users who use a Galaxy Note 2, how many of them are female?
SELECT COUNT(T1.device_id) FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T2.gender = 'F' AND T1.device_model = 'Galaxy Note 2'
what is the total number of customers?
SELECT COUNT ( * ) from Customers
Calculate the average payment amount per customer.
SELECT AVG(amount) FROM payment GROUP BY customer_id
Which players have a pick number of 27?
SELECT player FROM table_10975034_4 WHERE pick__number = 27
Name the commissioned-decommissioned for NVR page of aor-7
SELECT commissioned__decommissioned FROM table_name_17 WHERE nvr_page = "aor-7"
How many categories in total do the app users who were not active when event no.2 happened belong to?
SELECT COUNT(*) FROM ( SELECT COUNT(DISTINCT T1.category) AS result FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id INNER JOIN app_events AS T3 ON T2.app_id = T3.app_id WHERE T3.event_id = 2 AND T3.is_active = 0 GROUP BY T1.category ) T
rank the furniture according to the number of pieces available | Do you want a list of furniture name sorted by its corresponding number of component? | Yes, Name and corresponding number of components.
SELECT name, num_of_component FROM furniture ORDER BY num_of_component
How many orders did Antonia Poltun return?
SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.status_value = 'Returned' AND T4.first_name = 'Antonia' AND T4.last_name = 'Poltun'
Among the countries whose government type is republic, how many of them shares a border that's longer than 200?
SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Government = 'republic' AND T3.Length > 200
What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?
SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b"
How many distinct delegates are from counties with population larger than 50000?
SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000
WHich Category in White has a Amerindian of 4,87%?
SELECT white FROM table_name_96 WHERE amerindian = "4,87%"
What are the Package Options of the TV Channels whose series names are Sky Radio?
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
What was the winning score in the Alfred Dunhill links championship?
SELECT winning_score FROM table_name_35 WHERE tournament = "alfred dunhill links championship"
Who was the outgoing manager when the incoming manager was joão pereira?
SELECT outgoing_manage FROM table_17933600_2 WHERE incoming_manager = "João Pereira"
Name The Score of Player of seve ballesteros?
SELECT score FROM table_name_86 WHERE player = "seve ballesteros"
Who was the player in Round 7, on the MWEHL Team Detroit Honeybaked, and the NHL Team, Philadelphia Flyers teams?
SELECT player FROM table_name_32 WHERE round = "7" AND mwehl_team = "detroit honeybaked" AND nhl_team = "philadelphia flyers"
How many mountains are there on the African Continent?
SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN province AS T4 ON T4.Country = T1.Code INNER JOIN geo_mountain AS T5 ON T5.Province = T4.Name WHERE T3.Name = 'European'
Which finish has 1 as the rank?
SELECT finish FROM table_name_95 WHERE rank = "1"
Original title of das leben der anderen had what director?
SELECT director FROM table_name_28 WHERE original_title = "das leben der anderen"
What two players had the highest rebounds for the October 14 game?
SELECT high_rebounds FROM table_27733258_2 WHERE date = "October 14"