sentence
stringlengths
3
347
sql
stringlengths
18
804
What is the low loss total for teams with under 3 years and a less than 0.625% winning percentage?
SELECT MIN(lost) FROM table_name_44 WHERE pct < 0.625 AND years < 3
What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
SELECT SUM(silver) FROM table_name_19 WHERE total < "6" AND rank = "6" AND nation = "bulgaria"
Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640
SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640
What is the most common first name of staff?
SELECT first_name FROM Staff group by first_name order by count ( * ) desc limit 1
Among the zip code under Saint Croix county, which zip code has the biggest land area?
SELECT T1.zip_code FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'SAINT CROIX' ORDER BY T2.land_area DESC LIMIT 1
What is the greatest goals for Curtis Davies if ends is greater than 2012?
SELECT MAX(goals) FROM table_name_9 WHERE name = "curtis davies" AND ends > 2012
Who directed the episode that aired on July 29, 2011?
SELECT directed_by FROM table_18424435_5 WHERE us_air_date = "July 29, 2011"
what is the time/retired when the grid is less than 3 and 45 laps?
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45
What are the highest recorded attendance rates of the stadiums with an average attendance of 4752?
SELECT highest FROM table_11208143_9 WHERE average = 4752
What was the result of the election featuring incumbent norman sisisky?
SELECT results FROM table_1341423_46 WHERE incumbent = "Norman Sisisky"
what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?
SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = "cineplex entertainment"
ok,show the count of all room
SELECT count ( DISTINCT room ) FROM Reservations
How many female students have milk or egg allergies?
SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs"
Show all locations with only 1 station.
SELECT LOCATION FROM station GROUP BY LOCATION HAVING COUNT(*) = 1
What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?
SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36"
What is the position for the Rockets years of 2004-05?
SELECT position FROM table_name_75 WHERE years_for_rockets = "2004-05"
What is the role of the aircraft that has a registration of s5-hpb?
SELECT role FROM table_name_51 WHERE registration = "s5-hpb"
List the names of all songs that have 4 minute duration or are in English.
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english"
Name the Venue which has a Position of 5th?
SELECT venue FROM table_name_39 WHERE position = "5th"
What was the nationality of every player that attended Baylor?
SELECT nationality FROM table_name_55 WHERE school_country = "baylor"
How much in total does customer with first name as Carole and last name as Bernhard paid?
SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
Find the number of distinct amenities.
SELECT COUNT(*) FROM dorm_amenity
show me the price of the rooms also
SELECT roomName, decor, basePrice FROM Rooms WHERE bedtype = 'King'
What is the attendance of tie no. 23?
SELECT attendance FROM table_name_34 WHERE tie_no = "23"
What is the list of program origins ordered alphabetically?
SELECT origin FROM program ORDER BY origin
Show the headquarters shared by more than two companies.
SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2
List the ids, names and market shares of all browsers.
SELECT id , name , market_share FROM browser
List all the animation titles.
SELECT T3.title AS per FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Animation'
List all open years when at least two shops are opened.
SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2
What is the score of the game with Pacers as the Visitor?
SELECT score FROM table_name_32 WHERE visitor = "pacers"
What are the names of all the persons who are friends with Alice?
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
Which opponent had the result of W 24-14?
SELECT opponent FROM table_name_64 WHERE result = "w 24-14"
What was the Pure Church of Christ's Split off/ Continuation?
SELECT split_off___continuation_of FROM table_name_40 WHERE church_name = "pure church of christ"
Visitor of minnesota has what average attendance?
SELECT AVG(attendance) FROM table_name_30 WHERE visitor = "minnesota"
How many players are there?
SELECT count(*) FROM players
Tell me what was commissioned december 30, 1965
SELECT commissioned FROM table_name_12 WHERE launched = "december 30, 1965"
List the power output for Phoenix.
SELECT power__kw_ FROM table_2523809_1 WHERE coverage = "Phoenix"
How many people did not enjoy the finale episode?
SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 24 AND T2.stars = 1
What is the color of the grape whose wine products has the highest average price?
SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
what is the position of Pedro Álvarez
SELECT Position FROM player WHERE Player = "Pedro Álvarez"
How many chassis used number 34?
SELECT COUNT(chassis) FROM table_15491596_1 WHERE no = 34
What position does Maryland have a player for Round 3?
SELECT position FROM table_name_81 WHERE school_club_team = "maryland" AND round = 3
Who played Lily Cahill in the Australian 2012 production?
SELECT australian_cast, _2012 FROM table_29289213_1 WHERE character = "Lily Cahill"
What is Season, when # Of Episodes is "10", and when Date Released is "1 April 2010"?
SELECT season FROM table_name_97 WHERE _number_of_episodes = 10 AND date_released = "1 april 2010"
What is the lowest rank for Andre Vonarburg, when the notes are FB?
SELECT MIN(rank) FROM table_name_54 WHERE notes = "fb" AND athlete = "andre vonarburg"
Return the themes of farm competitions, sorted by year ascending.
SELECT Theme FROM farm_competition ORDER BY YEAR ASC
What is the brand name for the antibody Brentuximab Vedotin?
SELECT brand_name FROM table_1661124_1 WHERE antibody = "Brentuximab vedotin"
What is the average number of dishes per menu page of menu ID12882?
SELECT CAST(COUNT(dish_id) AS REAL) / COUNT(T3.page_count) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T2.menu_id = 12882
Show all paragraph texts for the document "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"
Give the title of the course offered in Chandler during the Fall of 2010.
SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010
Among the top 5 heaviest shipments, how many shipments were transported via Mack?
SELECT COUNT(T2.ship_id) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Mack' ORDER BY T2.weight DESC LIMIT 1
What is the number of the apartment with the greatest number of bedrooms?
SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1
How many female competitors were from Iran?
SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Iran' AND T3.gender = 'F'
What is the credit card type used by Kenneth Walton?
SELECT DISTINCT T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Kenneth' AND T1.Last = 'Walton'
What structure is in Chile?
SELECT structure FROM table_name_88 WHERE country = "chile"
What is the lowest rank of the athlete with a taijiquan greater than 9.42 and a 19.02 total?
SELECT MIN(rank) FROM table_name_89 WHERE taijiquan > 9.42 AND total = 19.02
What is the total number of word cited under that class labelled 'AI'?
SELECT COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'
Write all the review content belonging to StormCast: The Official Warhammer Age of Sigmar Podcast.
SELECT content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'StormCast: The Official Warhammer Age of Sigmar Podcast' )
What about the other artist?
select count ( * ) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.artist_name = ( SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" and T1.artist_name ! = "Enrique" GROUP BY T2.artist_name HAVING count ( * ) > = 1 )
Find the common login name of course authors and students.
SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students
What is the region for the album with a catalog number of 7567-83061-2?
SELECT region FROM table_name_60 WHERE catalog__number = "7567-83061-2"
Thank you. Can you also show me the statement detail for the statement with the most number of accounts?
SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count ( * ) DESC LIMIT 1
I want the displacement for version of db
SELECT displacement FROM table_name_28 WHERE version = "db"
When koki mizuno is the player how man positions are there?
SELECT COUNT(position) FROM table_18254488_2 WHERE player = "Koki Mizuno"
When was the park demolished in 1994 closed?
SELECT MIN(closed) FROM table_1987995_5 WHERE demod = 1994
What is the Home team at the Blackburn Rovers Away game?
SELECT home_team FROM table_name_70 WHERE away_team = "blackburn rovers"
Which Date had an Outcome of runner-up, and a Surface of carpet?
SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet"
Who was the runner-up with the margin of victory of 8 strokes?
SELECT runner_s__up FROM table_name_6 WHERE margin_of_victory = "8 strokes"
What is the Place of the Player with a To par of –1?
SELECT place FROM table_name_61 WHERE to_par = "–1"
What is Syracuse, when Utica is Union Springs Shale And Limestone, and when Rochester is Union Springs Shale And Limestone?
SELECT syracuse FROM table_name_20 WHERE utica = "union springs shale and limestone" AND rochester = "union springs shale and limestone"
Show the distinct fate of missions that involve ships with nationality "United States"
SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = "United States"
Which cities' temperature in March is lower than that in July or higher than that in Oct?
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct
Among the movies from France, how many of them are drama?
SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'France' AND T1.genre = 'drama'
What is the place of the player who scored less than 70?
SELECT place FROM table_name_96 WHERE score < 70
How many publications were published in relation to the conference 'Adaptive Multimedia Retrieval' in 2007?
SELECT COUNT(T2.ConferenceId) FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Adaptive Multimedia Retrieval' AND T2.Year = 2007
What are the instructors name for each of those ids the are advising more than one student?
SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count ( * ) > 1
Name the awardee for tingya
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
Can you sort the list to show only the 3 highest base prices?
SELECT basePrice FROM Rooms ORDER BY basePrice DESC LIMIT 3
Who was the opponent in the mallorca 2, spain tournament?
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain"
how many varsity teams are in west roxbury, ma?
SELECT MAX(varsity_teams) FROM table_2439728_1 WHERE location = "West Roxbury, MA"
What are the titles of all the albums by artist id 4?
SELECT Title FROM ALBUM where ArtistId = 4
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
Which kind of part has the least number of faults? List the part name.
SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) LIMIT 1
Name the written by for production code 4g07
SELECT written_by FROM table_20967430_2 WHERE prod_code = "4G07"
The prize of £1,000,000 was given by an event in what city?
SELECT city FROM table_name_56 WHERE prize = "£1,000,000"
Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert?
SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"
Names of headquarters that have at least two companies?
SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT ( * ) > = 2
Show the host names for parties with number of hosts greater than 20.
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20
What are the id and name of the photos for mountains?
SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000
Who is the television commentator when the spokesperson is Kateryna Osadcha?
SELECT television_commentator FROM table_1998037_9 WHERE spokesperson = "Kateryna Osadcha"
what is the address of customer id 2?
SELECT customer_address from Customers where customer_id = 2
Which Rank has an Opposition of limerick?
SELECT rank FROM table_name_12 WHERE opposition = "limerick"
Select the name and price of the cheapest product.
SELECT name , price FROM Products ORDER BY price ASC LIMIT 1
How many pick #'s have james britt as the name, with a round greater than 2?
SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 2
What is the name of the location that has more than one gas station?
SELECT LOCATION FROM gas_station GROUP BY LOCATION having count ( * ) > 1
How many songs have a shared vocal?
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"
Clerk#000000936 dealt with a "Not Specified" order on 1995/3/13, what was the charge for the part of the order shipped by truck?
SELECT T2.l_extendedprice * (1 - T2.l_discount) * (1 + T2.l_tax) AS num FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_clerk = 'Clerk#000000936' AND T2.l_shipmode = 'TRUCK' AND T1.o_orderstatus = '4-NOT SPECIFIED' AND T1.o_orderdate = '1995-03-13'
Who is the host on the series aired on 18 January 2012?
SELECT host_s_ FROM table_27487310_5 WHERE air_dates = "18 January 2012"
Tell me the Lieutenant Governor name for the year 1998 ?
SELECT Lieutenant_Governor FROM party WHERE year = "1998.0"
What was the flyers' record when the visitors were florida?
SELECT record FROM table_name_63 WHERE visitor = "florida"