sentence
stringlengths
3
347
sql
stringlengths
18
804
what is the 1st round when team 1 is stade lavallois (d2)?
SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = "stade lavallois (d2)"
Show the statuses of roller coasters longer than 3300 or higher than 100.
SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
Show the types of schools that have two schools.
SELECT TYPE FROM school GROUP BY TYPE HAVING count(*) = 2
What was the score for a game with the odds of p + 2 after 1847?
SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847
Name the most pos for west bromwich albion club
SELECT MAX(pos) FROM table_226619_12 WHERE club = "West Bromwich Albion"
Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.
SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Forward" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender"
For player is jamal mayers mention the minimum pick
SELECT MIN(pick) FROM table_2781227_4 WHERE player = "Jamal Mayers"
Show the names of pilots from team "Bradley" or "Fordham".
SELECT Pilot_name FROM pilot WHERE Team = "Bradley" OR Team = "Fordham"
What is the release year of the game that gained 350000 sales in North America?
SELECT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 = 350000 AND T1.region_name = 'North America'
Provide the population of Arecibo in 2020.
SELECT SUM(T2.population_2020) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'ARECIBO'
What day was the visitor Chicago Black Hawks and the record 0-2?
SELECT date FROM table_name_16 WHERE visitor = "chicago black hawks" AND record = "0-2"
What are the names of all the clubs starting with the oldest?
SELECT name FROM club ORDER BY Start_year ASC
Return the minimum, maximum, and average seating across all tracks.
SELECT min(seating) , max(seating) , avg(seating) FROM track
Please list the IDs of all the faculty employees who teaches a basic or medium undergraduate course.
SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id INNER JOIN person AS T3 ON T3.p_id = T2.p_id WHERE T1.courseLevel = 'Level_300' AND T3.hasPosition = 'Faculty_eme'
What are the paragraph texts for the document with the name 'Customer reviews'?
SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Customer reviews"
Name the score for 21 may 2011
SELECT score FROM table_name_35 WHERE date = "21 may 2011"
When did Bitcoin reach its highest price on 2013/4/29?
SELECT T2.time_high FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T1.name = 'Bitcoin'
How many student are involved in any kind of accident?
SELECT count ( * ) FROM STUDENTS WHERE student_id IN ( SELECT student_id FROM Behavior_Incident )
What was the report of the Belgian Grand Prix?
SELECT report FROM table_1132600_3 WHERE grand_prix = "Belgian grand_prix"
Tell the weight of Dagfinn Sverre Aarskog.
SELECT weight FROM person WHERE full_name = 'Dagfinn Sverre Aarskog'
include the first and last name of customers of this address in the table
SELECT T1.Address,T1.FirstName,T1.LastName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"
Who did the Cubs play when they had a record of 4-4?
SELECT opponent FROM table_name_56 WHERE record = "4-4"
In Act 1 Scene 2 of the Twelfth Night, what is the total number of of lines said by Viola?
SELECT COUNT(T4.id) 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 INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T2.Act = 1 AND T2.Scene = 2 AND T4.id = 1238 AND T4.CharName = 'Viola' AND T1.Title = 'Twelfth Night'
What are the high points that have 42 as the game?
SELECT high_points FROM table_name_65 WHERE game = 42
What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb, Becker and Wyman'
Which total number of Crowd has a Home team of melbourne?
SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = "melbourne"
Which airport has an ICAO of RCKH?
SELECT airport FROM table_name_81 WHERE icao = "rckh"
Name the date that had a score of 7–6(4), 6–1
SELECT date FROM table_name_98 WHERE score = "7–6(4), 6–1"
How many cities are there that have more than 3 airports?
SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3)
How many millions of U.S viewers watched the episode written by Liz Feldman?
SELECT us_viewers__million_ FROM table_29920800_1 WHERE written_by = "Liz Feldman"
Name the number of judges for dré steemans ann van elsen
SELECT COUNT(judges) FROM table_16884579_1 WHERE host_s_ = "Dré Steemans Ann Van Elsen"
Find the number of settlements each claim corresponds to. Show the number together with the claim id.
SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id
What is the maximum number of matches in a game?
SELECT MAX(matches) FROM table_28547332_4
What is the result of the game on May 14 with Philadelphia as the road team?
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14"
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
SELECT MIN(laps) FROM table_name_44 WHERE constructor = "minardi - motori moderni" AND grid < 18
Return the name of the team and the acc during the regular season for the school that was founded the earliest.
SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1
Which browsers are compatible with firefox?
SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Firefox'
Which Result has the Event Strikeforce and the Method, Ko (spinning back fist)?
SELECT result FROM table_name_15 WHERE event = "strikeforce" AND method = "ko (spinning back fist)"
What's the power when the frequency is 101.5mhz?
SELECT power__kw_ FROM table_name_26 WHERE frequency = "101.5mhz"
How many goals when the score is 3-0 in the euro 2012 q?
SELECT COUNT(goal) FROM table_name_61 WHERE competition = "euro 2012 q" AND score = "3-0"
How many different games had David Lee (13) with High rebounds?
SELECT COUNT(score) FROM table_17060277_6 WHERE high_rebounds = "David Lee (13)"
What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?
SELECT womens_u20 FROM table_16724844_1 WHERE mens_45 = "SunWest Razorbacks def Northern Eagles"
Which builder has the least trains?
SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID order by count ( * ) asc limit 1
What score had a record of 17–18–6?
SELECT score FROM table_name_31 WHERE record = "17–18–6"
What is all the information about employees with D or S in their first name, ordered by salary descending?
SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC
What was the win-loss record for the player from Switzerland?
SELECT win_loss FROM table_25820786_2 WHERE nationality = "Switzerland"
Name the production code for viewers for 1.69
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
Show ids for all employees with at least 100000 salary.
SELECT eid FROM Employee WHERE salary > 100000
Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30
How many Orange Cap awards were won by CH Gayle?
SELECT SUM(CASE WHEN T1.Player_Name = 'CH Gayle' THEN 1 ELSE 0 END) AS cnt FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Orange_Cap
Return the name of the party with the most members.
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1
Show the most common apartment type code.
SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?
SELECT COUNT(T3.name) FROM ( SELECT T2.name FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' AND T1.genre = 'Comedy' GROUP BY T2.name ) T3
Which Horse finished in 8?
SELECT horse FROM table_name_54 WHERE finished = "8"
Indicate the number of authors affiliated with the organization named 'Arizona State University'.
SELECT COUNT(Name) FROM Author WHERE Affiliation = 'Arizona State University'
What is the to par with the winning score of 74-67-71-73=285?
SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?
SELECT pc_intro FROM table_2490289_1 WHERE amiga_demo = "My Kingdom (Haujobb & Scoopex)"
Which city has the highest number of businesses in the food industry whose number of reviews is high?
SELECT T1.city FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.review_count LIKE 'High' AND T3.category_name LIKE 'Food' GROUP BY T1.city
What is the highest evening gown number in North Carolina with less than 9.214 interviews?
SELECT MAX(evening_gown) FROM table_name_94 WHERE state = "north carolina" AND interview < 9.214
Which ICAO has a Province of heilongjiang, and a IATA of jmu?
SELECT icao FROM table_name_34 WHERE province = "heilongjiang" AND iata = "jmu"
What is the school's nickname?
SELECT nickname FROM university ORDER BY enrollment DESC LIMIT 1
How many cities in each district have a population that is above the average population across all cities?
SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District
Which country has at most 3 stadiums listed?
SELECT country FROM stadium GROUP BY country HAVING count(*) <= 3
How many medals under total when silver is less than 2, gold is 3, and bronze is less than 0?
SELECT SUM(total) FROM table_name_53 WHERE silver < 2 AND gold = 3 AND bronze < 0
What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?
SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = "chevrolet silverado" AND team = "rbr enterprises"
Among the movie in which Dariusz Wolski works as the director of photography, what is the title of the one with the highest average vote?
SELECT T1.title FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' ORDER BY T1.vote_average DESC LIMIT 1
Please show the most common type of ships.
SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
What year was the house named gongola made?
SELECT founded FROM table_11464746_1 WHERE house_name = "Gongola"
What couple averaged 21.0?
SELECT couple FROM table_25557556_5 WHERE average = "21.0"
Who is the publisher of the game 2002 FIFA World Cup?
SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T3.game_name = '2002 FIFA World Cup'
What were their birth dates?
SELECT date_of_birth FROM Guests where gender_code = "Unknown"
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?
SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56
When was the earliest year that Guillermo Vilas was the runner-up?
SELECT MIN(year) FROM table_name_9 WHERE runner_up = "guillermo vilas"
What is the total sum of points for songs performed by Partners in Crime?
SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime"
Find the name of the user who gives the most reviews.
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1
Please just list the asset model of those assets.
Select asset_model from Assets where asset_id not in ( SELECT asset_id from Fault_Log )
Please list the IDs of all the menus in which the dish "Clear green turtle" had appeared.
SELECT T1.menu_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Clear green turtle'
What is the date for the episode performed by Sue Manchester?
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
How many high schools have storm mascots?
SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm"
WHo Became Duchess that has a Death of 26 october 1614?
SELECT became_duchess FROM table_name_84 WHERE death = "26 october 1614"
what is the manner of departure when the date of vacancy is 15 september 2008?
SELECT manner_of_departure FROM table_name_14 WHERE date_of_vacancy = "15 september 2008"
What is the number of Apps for Internazionale Club of Brazil?
SELECT COUNT(apps) FROM table_name_69 WHERE national_team = "brazil" AND club = "internazionale"
what was the destination of flight 99 ?
SELECT destination FROM Flight WHERE flno = 99
How many drivers are there, total?
SELECT count ( * ) FROM drivers
WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?
SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17
Which batter has a uni# of 31?
SELECT bats FROM table_name_17 WHERE uni_number = 31
Who was the coach for episode 15?
SELECT coach FROM table_2140071_8 WHERE episode = 15
What are the names of the product that has the lowest rating?
SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Rating = ( SELECT Rating FROM ProductReview ORDER BY Rating ASC LIMIT 1 )
Can you list all songs that were released in March? | Do you mean the songs name? | Yes
SELECT T2.song_name FROM song AS T2 WHERE T2.releasedate LIKE "%Mar%"
Which Pendle has a Burnley smaller than 0?
SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0
Name the mountains classification for rabobank and damiano cunego
SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = "Rabobank" AND general_classification = "Damiano Cunego"
Who wrote the episode that 2.93 million viewers?
SELECT written_by FROM table_28019988_2 WHERE us_viewers__million_ = "2.93"
What is the combined consumption of the engine with the code k9k 796?
SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796"
Which E. coli has a substrate of uracil?
SELECT e_coli FROM table_name_22 WHERE substrates = "uracil"
What was the rank of operator whose technology is CDMA EVDO?
SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO"
List the names of all the distinct customers who bought a keyboard.
SELECT DISTINCT T1.customer_name 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 JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = "keyboard"
Who wrote the episode with the production code of 3t7255?
SELECT written_by FROM table_27116696_1 WHERE production_code = "3T7255"
What is the name of the war where the Ottoman sultan was Selim I?
SELECT name_of_the_war FROM table_24706337_1 WHERE ottoman_sultan = "Selim I"
List the name and the number of stations for all the cities that have at least 15 stations.
SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15
What was the class for Appleton, Wisconsin?
SELECT class FROM table_name_96 WHERE city_of_license = "appleton, wisconsin"