sentence
stringlengths
3
347
sql
stringlengths
18
804
Name the score for december 5
SELECT score FROM table_name_36 WHERE date = "december 5"
Name the week 3 of 36
SELECT week_1 FROM table_name_67 WHERE week_3 = "36"
How many Airspeed Fleet Shadower aircraft are retired?
SELECT retired FROM table_13605170_2 WHERE aircraft_type = "Airspeed Fleet Shadower"
What is the total number of Goals For, when Losses is greater than 16?
SELECT COUNT(goals_for) FROM table_name_99 WHERE losses > 16
In 2006, how many restricted films were released?
SELECT COUNT(film_id) FROM film WHERE rating = 'R' AND release_year = 2006
Show the locations that have at least two performances.
SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2
Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?
SELECT MAX(to_par) FROM table_name_31 WHERE year_s__won = "1988" AND total < 148
Name the number of other builders for nant, visual studio
SELECT COUNT(other_builders) FROM table_22903426_1 WHERE windows_builders = "NAnt, Visual Studio"
What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen?
SELECT nationality FROM table_name_30 WHERE college_junior_club_team = "university of wisconsin (wcha)" AND player = "bob lundeen"
How many high schoolers are in each grade?
SELECT grade , count(*) FROM Highschooler GROUP BY grade
How many orders were shipped to GREAL via United Package?
SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.CustomerID = 'GREAL' AND T2.CompanyName = 'United Package'
Who had a rank larger than 7, less than 305 goals, and 418 matches?
SELECT name FROM table_name_36 WHERE rank > 7 AND goals < 305 AND matches = "418"
How many week 2 scores have a week 7 score of 40 + 40 = 80?
SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80
When Cancelable of yes, and a Type of drag, what was the Category?
SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag"
What playee has 24.21 as the average?
SELECT player FROM table_name_46 WHERE average = "24.21"
how many products there
SELECT count ( * ) from products
what is the constituency when the rank is less than 5 and the result is con hold?
SELECT constituency FROM table_name_64 WHERE rank < 5 AND result = "con hold"
Which airline operated more flights on 2018/8/1, American Airlines Inc. or Endeavor Air Inc.?
SELECT CASE WHEN COUNT(CASE WHEN T3.Description = 'American Airlines Inc.: AA' THEN 1 ELSE NULL END) > COUNT(CASE WHEN T3.Description = 'Endeavor Air Inc.: 9E' THEN 1 ELSE NULL END) THEN 'American Airlines Inc.: AA' ELSE 'Endeavor Air Inc.: 9E' END AS RESULT FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1'
Show the players from college UCLA.
SELECT Player FROM match_season WHERE College = "UCLA"
of these total drivers, how many countries are represented?
SELECT count ( distinct nationality ) FROM drivers
What is the Tallangatta DFL losses greater than 2 and an against greater than 1013
SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2
Which Award has a Result of nominated, and a Year of 2003?
SELECT award FROM table_name_85 WHERE result = "nominated" AND year = 2003
What status doe the area with a census ranking of 2,290 of 5,008 have?
SELECT status FROM table_171356_2 WHERE census_ranking = "2,290 of 5,008"
What are the issue dates of volumes associated with the artist aged 23 or younger?
SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23
Name the representative with presentation of credentials of august 16, 1928
SELECT representative FROM table_name_45 WHERE presentation_of_credentials = "august 16, 1928"
Who is the professor in the office DRE 102? | Do you want their first name, last name, or initial? | last name and hire date please.
SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'
What were all the salary values of players in 2010 and 2001?
SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001
Name the opponent for astrodome
SELECT opponent FROM table_14418812_1 WHERE game_site = "Astrodome"
What is the Singapore Cup when the S-League is 5 (14)?
SELECT singapore_cup FROM table_name_92 WHERE s_league = "5 (14)"
Which nation's total is less than 19 when there's less than 1 bronze?
SELECT nation FROM table_name_54 WHERE total < 19 AND bronze < 1
Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound.
SELECT T2.date, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T1.primary_description = 'DECEPTIVE PRACTICE' AND T1.secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10
What is average frequency MHZ when is in portales, new mexico?
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"
What are the names of the customers and staff members?
SELECT customer_details FROM customers UNION SELECT staff_details FROM staff
What was the name of the episode that was directed by Mary Harron?
SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron"
what are the apartment numbers for those 7?
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed"
What kind of Tongan has a North Marquesan of /haʔe/?
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
What is the winning % for the 2010 QF?
SELECT win__percentage FROM table_name_3 WHERE 2010 = "qf"
What is the week 1 with candice hunnicutt in week 3?
SELECT week_1 FROM table_name_53 WHERE week_3 = "candice hunnicutt"
How many stars does each of the 3 top users with the most likes in their reviews have?
SELECT T2.user_average_stars FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id GROUP BY T2.user_id ORDER BY SUM(T1.likes) DESC LIMIT 3
What Gold has a Silver greater than 30 and a Total less than 107?
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107
What is diego work title? | is Diego the employee first name? | Yes
SELECT Company from Customer where FirstName = "Diego"
What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?
SELECT third_place FROM table_name_94 WHERE winner = "thomas enqvist" AND runner_up = "guy forget"
How many distinct official languages are there among countries of players whose positions are defenders.
SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender"
What was the height of this Freshman with a forward position?
SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman"
Show the names of employees with role name Editor.
SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
On what date were the Ottawa Swans the away team?
SELECT date FROM table_name_25 WHERE away = "ottawa swans"
What round has a name of vladimir morozov?
SELECT round FROM table_name_90 WHERE name = "vladimir morozov"
Find the names of stadiums that some Australian swimmers have been to.
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'
How about the minimum too?
SELECT min ( used_kb ) FROM screen_mode
Which club has 77 points?
SELECT club FROM table_name_95 WHERE points = "77"
What was the away teams score when they played at kardinia park?
SELECT away_team AS score FROM table_name_7 WHERE venue = "kardinia park"
What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
SELECT home_team FROM table_name_69 WHERE date = "18 february 1956" AND tie_no = "3"
What are the phones and emails of workshop groups in which services are performed?
SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID
What are the names of all female candidates in alphabetical order (sex is F)?
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name
What name is listed under representative for the 112th congress?
SELECT representative FROM table_2841865_2 WHERE congress = "112th"
What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts?
SELECT volume AS :issue FROM table_name_96 WHERE weeks_on_top < 2 AND artist = "george mccrae"
State the state of businesses which have closing time at 12AM.
SELECT DISTINCT T1.state FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T2.closing_time = '12AM'
Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?
SELECT class FROM table_name_19 WHERE facility_id > 85076 AND call_sign = "k289au"
How many rooms in total are there in the apartments in the building with short name "Columbus Square"?
SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square"
In "maxild_playground\Playground.sln", what is the time of sampling for the method "GitHubRepo.Cli.GitHubClientWrapper.GetReleases"?
SELECT T2.SampledAt FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maxild_playgroundPlayground.sln' AND T2.Name = 'GitHubRepo.Cli.GitHubClientWrapper.GetReleases'
What is the result of the game played when 22,555 were in attendance and the Buckeyes were ranked #1?
SELECT result FROM table_name_57 WHERE rank__number = "1" AND attendance = "22,555"
How many cities have a stadium that was opened before the year of 2006?
SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006
For the episode(s) aired in the U.S. on 4 april 2008, what were the names?
SELECT title FROM table_10935205_1 WHERE us_airdate = "4 April 2008"
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"
Who were the co drivers past 1994 in the WSC class?
SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc"
what is the club that as 100 tries?
SELECT club FROM table_name_48 WHERE tries_for = "100"
show the date order placed for order id 9
SELECT date_order_placed from Orders where order_id = 9
Which class had a quantity made of 20?
SELECT class FROM table_name_19 WHERE quantity_made = "20"
On what date did a game higher than 10 have a score of 99-89?
SELECT date FROM table_name_26 WHERE game > 10 AND score = "99-89"
How many reviewers are there?
SELECT count ( DISTINCT RID ) FROM Rating
What are the names of manufacturers with revenue greater than the average of all revenues?
SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)
What percentage of podcasts are "technology" podcasts? List all of them.
SELECT CAST(SUM(CASE WHEN T1.category = 'technology' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.title) OR '%' "percentage" FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id
Among the students from the navy department, how many of them have payment due?
SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy' AND T2.bool = 'pos'
What are the distinct address type codes for all customer addresses?
SELECT DISTINCT address_type_code FROM customer_addresses
Please list all the paragraphs in Act 1, Scene 1 in Twelfth Night.
SELECT T3.PlainText FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'Twelfth Night'
Determine Disney's total box office gross between 2010 and 2016.
SELECT SUM(Total) FROM revenue WHERE `Year` BETWEEN 2010 AND 2016
How many players, in games played in 1990, achieved 50% or less of oRebounds than dRebounds.
SELECT COUNT(playerID) FROM players_teams WHERE CAST(oRebounds AS REAL) * 100 / dRebounds <= 50 AND year = 1990
Who is the vacator when south carolina 4th is the district?
SELECT vacator FROM table_225100_4 WHERE district = "South Carolina 4th"
What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese?
SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = "12.4%"
Which faculty members advise two ore more students? Give me their faculty ids.
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2
What is the winery at which the wine with the highest score was made?
SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
How many parks are in Atlanta?
SELECT count ( * ) FROM park where city = "Atlanta"
Which restaurants have highest rating? List the restaurant name and its rating.
SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1
Which school has the largest enrollment?
SELECT school FROM university ORDER BY enrollment DESC LIMIT 1
What pole position did 2006 gehl championship finale have?
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
What is the date for the tournament McDonald's wpga championship?
SELECT date FROM table_2167226_3 WHERE tournament = "McDonald's WPGA Championship"
What is the Score of the game with a Record of 29–23–13?
SELECT score FROM table_name_21 WHERE record = "29–23–13"
What is the course id of that?
SELECT course_id FROM course WHERE title = 'Care and Feeding of Cats'
What was the attendance when the score was 8–7?
SELECT SUM(attendance) FROM table_name_16 WHERE score = "8–7"
Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
Show the distinct director of films with market estimation in the year of 1995.
SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995
Show the first name and last name for all the instructors.
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor"
Which Track has a Writer(s) of mac davis?
SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = "mac davis"
Find the name and partition id for users who tweeted less than twice ?
SELECT T1.partitionid, T1.name FROM user_profiles AS T1 join tweets AS T2 where T1.uid = T2.uid group by T2.uid having count ( * ) <2
Name the founded for school closed in 2005
SELECT founded FROM table_262505_1 WHERE current_conference = "school closed in 2005"
Can you also tell me which position they play?
SELECT Player,Position FROM match_season where College = 'UCLA'
Which awards happened more recently than 2005?
SELECT awards FROM table_name_33 WHERE year > 2005
Who won the gold in 1958?
SELECT gold FROM table_name_18 WHERE year = "1958"
List all of the user ids and ages who rated movies with the id 1695219?
SELECT T2.userid, T2.age FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.movieid = 1695219