sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
How many projects have their resources provided by the vendor Lakeshore Learning Materials and are created by a teacher with a doctor degree? | SELECT COUNT(T1.projectid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Lakeshore Learning Materials' AND T2.teacher_prefix = 'Dr.' |
How many hectars of land is in Kaxholmen? | SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = "Kaxholmen" |
What ship does Captain Henry steer? | Do you mean the name of ships of Captain Henry? | Yes the name of the ship of Captain Henry | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.Name like '%Henry%' |
List down five movie titles that were released before 2000. | SELECT title FROM movie WHERE CAST(STRFTIME('%Y', release_date) AS INT) < 2000 LIMIT 5 |
List the top five cities in terms of the number of 5-star ratings in 2016 reviews, in descending order. | SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 5 AND T1.Date LIKE '2016%' ORDER BY T1.Date DESC LIMIT 5 |
What is the Home team on November 16, 1946? | SELECT home FROM table_name_38 WHERE date = "november 16, 1946" |
What is the home team score at lake oval? | SELECT home_team AS score FROM table_name_45 WHERE venue = "lake oval" |
how many ships have a single captain? | Select count ( * ) from ( SELECT * FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count ( * ) = 1 ) |
How much Elevation (m) has a Col (m) smaller than 562, and a Rank of 10, and a Prominence (m) larger than 1,598? | SELECT COUNT(elevation__m_) FROM table_name_15 WHERE col__m_ < 562 AND rank = 10 AND prominence__m_ > 1 OFFSET 598 |
What is the difference in salary of the top 2 employees with the highest number of territories in charge? | SELECT MAX(Salary) - MIN(Salary) FROM ( SELECT T1.Salary FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.EmployeeID, T1.Salary ORDER BY COUNT(T2.TerritoryID) DESC LIMIT 2 ) T1 |
what is the average of the milliseconds? | SELECT avg ( Milliseconds ) from Track |
How many rounds did Ken Wharton go? | SELECT rounds FROM table_name_64 WHERE driver = "ken wharton" |
List the names and business certificates of the eateries which got inspection score under 50. | SELECT T2.name, T2.business_id FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score < 50 |
What was the margin of victory with the winning score "63-68-68-68=267"? | SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267 |
How many times is the couple kerry & daniel? | SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Kerry & Daniel" |
On what Date was the Opponent the Tennessee Titans? | SELECT date FROM table_name_47 WHERE opponent = "tennessee titans" |
what is the race where the pole position is niki lauda and the date is 27 april? | SELECT race FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND date = "27 April" |
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9? | SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9 |
What was the last year that they had less than 16 points in class 500cc? | SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = "500cc" |
What location has a killed of 100.9, and a year later than 1993? | SELECT location FROM table_name_81 WHERE year > 1993 AND killed = "100.9" |
Which Week has an Attendance of 72,855? | SELECT MAX(week) FROM table_name_47 WHERE attendance = "72,855" |
Hello, how many different nationalities of pilots are there? | SELECT count ( distinct Nationality ) FROM pilot |
What venue saw a crowd larger than 29,840? | SELECT venue FROM table_name_13 WHERE crowd > 29 OFFSET 840 |
What is the Total of the Player who won in 1979 with a To par of less than 11? | SELECT MAX(total) FROM table_name_28 WHERE year_s__won = "1979" AND to_par < 11 |
How many joined this Private/Church of God institution? | SELECT joined FROM table_255205_1 WHERE type = "Private/Church of God" |
Who took test #4? | SELECT test_taker FROM table_10749367_3 WHERE _number = 4 |
In the year 2012, which conference had the most papers presented? Give the short name of the conference. | SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = '2012' GROUP BY T1.ConferenceId ORDER BY COUNT(T1.Id) DESC LIMIT 1 |
What is the Date of Week 9? | SELECT date FROM table_name_6 WHERE week = 9 |
What is the document type name and the document type description and creation date for all the documents? | SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code |
Who was the Prato Elector with a faction of Italian? | SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato" |
What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed? | SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992 |
What is the highest win for the team Nacional? | SELECT MAX(wins) FROM table_14871601_1 WHERE team = "Nacional" |
Name the number of teams for college/junior club for philadelphia flyers | SELECT COUNT(college_junior_club_team) FROM table_1473672_4 WHERE nhl_team = "Philadelphia Flyers" |
List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no. | SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1 |
Who is the player when the economy is 5.29? | SELECT player FROM table_28846752_9 WHERE economy = "5.29" |
Name the total number of number disc for jimmy kaufman | SELECT COUNT(no_disc) FROM table_15430606_1 WHERE directed_by = "Jimmy Kaufman" |
What is solution 1's processing time and how many methods have been using this solution? | SELECT T1.ProcessedTime, COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1 |
In what parish is the Askrova Bedehuskapell church? | SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = "Askrova bedehuskapell" |
How many students passed the test? | SELECT count ( T1.student_id ) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" |
What team has 33 starts? | SELECT team FROM table_name_22 WHERE start = "33" |
At a longitude of 321.9e, what is the latitude of the features found? | SELECT latitude FROM table_16799784_3 WHERE longitude = "321.9E" |
Show the name and opening year for three churches that opened most recently. | SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3 |
Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA. | SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA" |
I'd like to know about the prerequisites for courses | select course_id, prereq_id from prereq |
What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap? | SELECT winning_team FROM table_name_84 WHERE winning_driver = "jonathan bomarito" AND fastest_lap = "jonathan summerton" |
List the names of poker players ordered by the final tables made in ascending order. | SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made |
What finals have grant brebner as the name? | SELECT finals FROM table_name_40 WHERE name = "grant brebner" |
What the cores with a release date of February 2011 and a BGA-1023 socket? | SELECT cores FROM table_name_81 WHERE socket = "bga-1023" AND release_date = "february 2011" |
What is the date where the attendance was 31,220? | SELECT date FROM table_name_62 WHERE attendance = "31,220" |
What are the official names of cities that have hosted more than one competition? | SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1 |
What is the highest episode of Wood Flutes segment c? | SELECT MAX(episode) FROM table_name_65 WHERE segment_c = "wood flutes" |
Name the 2003 for atp masters series 1998 | SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series" |
Tell me the player for team 1 in the season 1996 ? | SELECT player from match_season WHERE season = "1996.0" AND team = "1" |
What are the coordinates of the school where project 'Look, Look, We Need a Nook!' Was donated to and what resource type is it? | SELECT T2.school_latitude, T2.school_longitude, T2.resource_type FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Look, Look, We Need a Nook!' |
What number pick was Danny Walters in the 1983 NFL draft? | SELECT COUNT(pick__number) FROM table_2508633_4 WHERE player = "Danny Walters" |
and ones that do? | SELECT ObjectNumber FROM railway WHERE Railway_ID IN ( SELECT Railway_ID FROM train ) |
How many instrument does the musician with last name "Heilo" use? | SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" |
What's the total score of Danny Edwards? | SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards" |
What is the description of the marketing region China? | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" |
What are the other account details for the account with the name 338? | SELECT other_account_details FROM Accounts WHERE account_name = "338" |
On the title feature brad mehldau as the performer, what is the original album? | SELECT original_album FROM table_name_92 WHERE performer = "brad mehldau" |
What is the maximum folded value of the team whose stadium is Fraser Field? | SELECT MAX(folded) FROM table_24334261_1 WHERE stadium = "Fraser Field" |
Name province of 1936 viana do castelo | SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo" |
What is the College/Junior/Club Team (League) when the position is rw, and the player is Don Murdoch? | SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "rw" AND player = "don murdoch" |
Find the name, address, number of students in the departments that have the top 3 highest number of students. | SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3 |
What episode number had a cable ranking of 8? | SELECT MIN(episode_no) FROM table_24399615_4 WHERE cable_rank = "8" |
What are the names of all the songs that have a lower rating than some song of the blues genre? | SELECT song_name FROM song WHERE rating < ( SELECT max ( rating ) FROM song WHERE genre_is = "blues" ) |
What is the to par for the score 72-69-68=209? | SELECT to_par FROM table_name_11 WHERE score = 72 - 69 - 68 = 209 |
What is the address of address id 3? | SELECT * FROM Addresses where address_id = 3 |
List the names of all players who have a crossing score higher than 90 and prefer their right foot. | SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right" |
What are the years won when the to par is +5? | SELECT year_s__won FROM table_name_76 WHERE to_par = "+5" |
List the locations of schools that do not have any player. | SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player) |
What is the zip code for Port Chelsea? | SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' |
What is the fame number when the Montreal Canadiens were the opponent? | SELECT COUNT(game) FROM table_name_56 WHERE opponent = "montreal canadiens" |
What is the lowest Bronze, when Gold is less than 0? | SELECT MIN(bronze) FROM table_name_58 WHERE gold < 0 |
What school is located in Chestnut Hill, Massachusetts? | SELECT institution FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts" |
What are the names of shops in ascending order of open year? | SELECT Shop_Name FROM shop ORDER BY Open_Year ASC |
Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004 | SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004 |
What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6? | SELECT opponent FROM table_name_57 WHERE score = "4–6, 4–6" AND tournament = "banja luka" |
Can you tell me the Season that has the Score of 1-0? | SELECT season FROM table_name_34 WHERE score = "1-0" |
WHICH PARK HAS HIGHEST SPEED OF ROLL COASTER | select Park from roller_coaster order by Speed desc limit 1 |
What Gauthier had a 15 Liscumb? | SELECT gauthier FROM table_name_65 WHERE liscumb = "15" |
With a nominative of chven-i what is the ergative? | SELECT ergative FROM table_name_56 WHERE nominative = "chven-i" |
What was the round when he fought Joe Stevenson? | SELECT round FROM table_name_26 WHERE opponent = "joe stevenson" |
Name the surface for february 25, 1996 | SELECT surface FROM table_name_58 WHERE date = "february 25, 1996" |
How many countries are using the same type of currency? Please list the short names of any 3 countries. | SELECT ShortName FROM country WHERE currencyunit = 'U.S. dollar' LIMIT 3 |
Among the students who filed for bankruptcy, how many students are disabled? | SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name |
Find the name, address, number of students in the departments that have the top 3 highest number of students. | SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3 |
Which Att-Cmp has a TD-INT of 7-8? | SELECT att_cmp FROM table_name_21 WHERE td_int = "7-8" |
What is the percent yes of Alberta, which had a percent no larger than 60.2? | SELECT COUNT(percent_yes) FROM table_name_68 WHERE jurisdiction = "alberta" AND percent_no > 60.2 |
What are the points for ktm-vmc equipment? | SELECT points FROM table_16729457_18 WHERE equipment = "KTM-VMC" |
What's the total attendance at anaheim stadium after 1983 when the result is 14-28? | SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28" |
What is the location and attendance of game 44? | SELECT location_attendance FROM table_name_65 WHERE game = 44 |
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' |
Find the average and minimum price of the rooms in different decor. | SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor; |
Swimmer Jiao Liuyang has what for the sum of lane? | SELECT COUNT(lane) FROM table_name_50 WHERE name = "jiao liuyang" |
List the title of all cartoons in alphabetical order. | SELECT Title FROM Cartoon ORDER BY title |
What are those parties? | SELECT Party FROM party GROUP BY Party HAVING COUNT ( * ) > = 2 |
What is the total number of people who could stay in the modern rooms in this inn? | SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern'; |
What is the event name when the method is submission (brabo choke)? | SELECT event FROM table_name_20 WHERE method = "submission (brabo choke)" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.