sentence
stringlengths
3
347
sql
stringlengths
18
804
Indicate if there is any pair formed by the words fukunaga and d'egees.
SELECT CASE WHEN COUNT(T1.wid) > 0 THEN 'yes' ELSE 'no' END FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st = ( SELECT wid FROM words WHERE T1.word = 'fukunaga' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word LIKE 'd%egees' )
Find the names of all instructors whose name includes the substring “dar”.
SELECT name FROM instructor WHERE name LIKE '%dar%'
What are the titles of courses without prerequisites?
SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Which Blagojevich (D) has a Source of zogby/wsj, and a Date of october 16, 2006?
SELECT blagojevich__d_ FROM table_name_70 WHERE source = "zogby/wsj" AND date = "october 16, 2006"
Find the maximum age of all the students.
SELECT max(Age) FROM STUDENT
what is the activity id of faculty id of 1082
select actid from Faculty_Participates_in where FacID = 1082
What is the name of the Artist for the Spoofed Title of the moron downer jr. show?
SELECT artist FROM table_name_13 WHERE spoofed_title = "the moron downer jr. show"
Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?
SELECT MIN(administrative_panel) FROM table_name_52 WHERE nominated_by_the_taoiseach < 0
What are the product id and product type of the cheapest product?
SELECT product_id, product_type_code FROM products ORDER BY product_price LIMIT 1
What is the IATA for San Francisco airport?
SELECT iata FROM table_name_88 WHERE airport = "san francisco airport"
what is the bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1?
SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = "11" AND total > 1
How many games are puzzle genre?
SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Puzzle'
What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli"
Which Distance has a Time of men's speed skating?
SELECT distance FROM table_name_46 WHERE time = "men's speed skating"
What are the first year and last year of the parties with theme "Teqnology"
SELECT First_year , Last_year FROM party WHERE Party_Theme = "Teqnology"
Who was the player from the United States, with a total larger than 145?
SELECT player FROM table_name_32 WHERE country = "united states" AND total > 145
What transaction type code did that have?
SELECT T3.transaction_type_code FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = "PUR" ORDER BY T3.amount_of_transaction DESC LIMIT 1
What vehicle has an epa highway fuel economy of 109 mpg-e?
SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
WHAT POSITION DOES PATRICK WIERCIOCH PLAY?
SELECT position FROM table_11803648_17 WHERE player = "Patrick Wiercioch"
what is the city of Riverside Park
SELECT city FROM park where park_name = "Riverside Park"
In what region do 18.6% of the people make less than 50% of the median income?
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "18.6%"
What is the full comment on the method whose solution path is "bmatzelle_nini\Source\Nini.sln" with a tokenized name of "alias text add alias"?
SELECT T2.FullComment FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'bmatzelle_niniSourceNini.sln' AND T2.NameTokenized = 'alias text add alias'
What is the gold number when the total is 8 and bronze is more than 4?
SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4
Name the example when the realization is [ɐ]
SELECT example FROM table_name_36 WHERE realization = "[ɐ]"
What is the most popular payment method?
SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1
What was the attendance at the West Ham United home game?
SELECT attendance FROM table_name_69 WHERE home_team = "west ham united"
what is the language when the awardee is re-recordist : mateen ahmad?
SELECT language FROM table_25926120_7 WHERE awardee_s_ = "Re-recordist : Mateen Ahmad"
What is the lowest episode number with an original airdate on 8 June 2008?
SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 2008"
What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?
SELECT inverse_subjunctive FROM table_name_9 WHERE imperative = "—" AND subjunctive = "se måchadn"
In what year and season did Sohail Abbas compete?
SELECT T1.games_year, T1.season FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'Sohail Abbas'
Find the name and component amount of the least popular furniture.
SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1
Hello. How many classes are there?
SELECT count ( * ) FROM CLASS
What is the name of the perpetrator with the biggest weight.
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1;
List the player's ID of the top five players, by descending order, in terms of bowling skill.
SELECT Player_Id FROM Player ORDER BY Bowling_skill DESC LIMIT 5
Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.
SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology')
What are the unique labels for the albums?
SELECT count(DISTINCT label) FROM albums
Name the score for philadelphia flyers
SELECT score FROM table_16864968_9 WHERE opponent = "Philadelphia Flyers"
How many times did kevin love (22) have the high points?
SELECT COUNT(date) FROM table_27756314_8 WHERE high_points = "Kevin Love (22)"
How many chips used by phones have a ram mib higher or equal to 64
SELECT count ( * ) FROM chip_model WHERE model_name IN ( SELECT chip_model FROM phone ) AND RAM_MiB > = 64
Name the location for democratic méga-plex taschereau imax
SELECT location FROM table_2461720_1 WHERE theatre_name = "Méga-Plex Taschereau IMAX"
Tally the movie ID and character name in the movie starring Jim Carrey.
SELECT T2.movie_id, T2.character_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Jim Carrey'
What week was the December 24, 1994 game?
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994"
Name the lowest Founded with the Name cougars?
SELECT MIN(founded) FROM table_name_42 WHERE nickname = "cougars"
How many districts have an incumbent first elected in 1940?
SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940
List restaurant ids located in Danville city.
SELECT id_restaurant FROM location WHERE city = 'Danville'
what the team where the record is 1-1 and the player is 1-1
SELECT × FROM table_26173058_2 WHERE jeel = "1-1" AND ramtha = "1-1"
Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?
SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = "4–6"
What is the attendance of the location where New Orleans's team plays?
SELECT location_attendance FROM table_name_81 WHERE team = "new orleans"
what's the notes where withdrawn is 1956–57
SELECT notes FROM table_1181375_1 WHERE withdrawn = "1956–57"
How many female students did Stanford University have in 2011?
SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University'
Give the phone number of the customer who placed the order id 10264.
SELECT T1.Phone FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10264
Return the names of parties that have two or more events.
SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2
How many players scored the most points on game 4?
SELECT COUNT(high_points) FROM table_13762472_3 WHERE game = 4
May I have the ids of those employees who cant authorize the destruction of documents?
SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
What are the most recent three independent nations?
SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country ORDER BY T2.Independence DESC LIMIT 3
On which day did the Chicago Cubs have a loss of trout (4-2)?
SELECT date FROM table_name_23 WHERE loss = "trout (4-2)"
Show the game that least number of hours played.
SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum ( hours_played ) ASC LIMIT 1
What is the resolution for song name "Just beat it"?
SELECT resolution from song where song_name = "Just beat it"
On which day and in which zip code was the min dew point lower than any day in zip code 94107?
SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)
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 value for Bahia when the Northeast total was 6747013?
SELECT bahia FROM table_name_97 WHERE northeast_total = "6747013"
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No?
SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = "yes" AND probate_activities = "no"
What is the sum of Kilometers that has a Station Code of KGQ?
SELECT COUNT(kilometers) FROM table_name_43 WHERE station_code = "kgq"
Awesome! Finally, can you show me the number of residents per officer for this county?
SELECT T1.Residents_per_officer FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID order by Population desc limit 1
How many shots on goal did Cam Neely had in the year of 1990?
SELECT T2.SOG FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T1.firstName = 'Cam' AND T1.lastName = 'Neely' AND T2.year = '1990'
What is the most recent year where the average start is 8.5?
SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = "8.5"
How many airlines does Russia has?
SELECT count(*) FROM airlines WHERE country = 'Russia'
What is Date (Closing), when Opening Film is "Deconstruction of Korean Housewife"?
SELECT date__closing_ FROM table_name_95 WHERE opening_film = "deconstruction of korean housewife"
What is the sum of all the years that Landon Donovan won the ESPY award?
SELECT COUNT(year) FROM table_name_32 WHERE player = "landon donovan"
What driver has 44 laps?
SELECT driver FROM table_name_75 WHERE laps = 44
What is the total number of orders made by customers in United States?
SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey INNER JOIN nation AS T3 ON T2.c_nationkey = T3.n_nationkey WHERE T3.n_name = 'UNITED STATES'
Can you show me the first and last names of all employees who work in any department located in London please?
SELECT first_name , last_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?
SELECT top_25 FROM table_name_47 WHERE events < 13 AND cuts_made < 3 AND top_10 = 1
Give the unit of measure for the product with the name 'cumin'.
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin"
Which season had a trade with the school/club team La Salle?
SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle"
List the description of the outcomes for all projects.
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code
What is the maximum dew point in Fahrenheit degree on 7/15/2014 in the area with a zip code of 94301?
SELECT DISTINCT CASE WHEN date = '7/15/2014' AND zip_code = 94301 THEN max_dew_point_f END FROM weather
What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
WHAT IS THE YEAR OF FLOETIC?
SELECT SUM(year) FROM table_name_5 WHERE title = "floetic"
what is the reported age when the reported birth date is 22 december 1878?
SELECT reported_age FROM table_name_62 WHERE reported_birth_date = "22 december 1878"
Show the transaction types and the total amount of transactions.
SELECT transaction_type, SUM(transaction_amount) FROM Financial_transactions GROUP BY transaction_type
What is the country location of the employee who handled order id 10257?
SELECT T1.Country FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10257
how many order Items there
SELECT count ( * ) FROM Order_Items
If the winners from the previous round is 8, what is the round?
SELECT round FROM table_1859269_1 WHERE winners_from_previous_round = "8"
What is the home team venue for the New Zealand Breakers?
SELECT venue FROM table_name_30 WHERE home_team = "new zealand breakers"
Hello. Can you list the top three vote getters?
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 3
What is the count for the Zero Fighter with hours of 2:00?
SELECT count FROM table_name_5 WHERE flight_hours = "2:00"
Which behavior category does user number 5902120154267990000 belong to?
SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 5902120154267990000
How many countries are having their country's footnotes described as "unspecified"? Please provide the full names of any three of those countries.
SELECT COUNT(DISTINCT T1.CountryCode) FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' UNION SELECT T1.LongName FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' LIMIT 4
How many times the word "desena" occurs?
SELECT occurrences FROM words WHERE word = 'desena'
What is the western word for "latrones" in Latin?
SELECT western FROM table_26614365_1 WHERE latin = "latrones"
What medium was used for the sculpture by Ernest Richard Gause?
SELECT medium FROM table_20903658_1 WHERE artist = "Ernest Richard Gause"
What is the average diff when games played are more than 6?
SELECT AVG(diff) FROM table_name_84 WHERE played > 6
What form of governance does the least prosperous nation in the world have?
SELECT T3.Government FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE T2.GDP IS NOT NULL ORDER BY T2.GDP ASC LIMIT 1
How many laps have a time/retired of +23.080?
SELECT laps FROM table_name_51 WHERE time_retired = "+23.080"
What are their genders? | Would you like their names and their genders? | Yes.
SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Sales Person" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Clerical Staff"
What team was the away team at Junction Oval?
SELECT away_team FROM table_name_20 WHERE venue = "junction oval"
Count the number of artists.
SELECT count(*) FROM artist
Tell the number of cases with arrests in North Lawndale community.
SELECT SUM(CASE WHEN T1.community_area_name = 'North Lawndale' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.arrest = 'TRUE'
Return the elimination movies of wrestlers on Team Orton.
SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"