answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "winner" FROM table_204_373 WHERE "loser" = 'mocho cota' AND "date" = 1994 | only opponent to defeat mocho cota in 1994 | CREATE TABLE table_204_373 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
) |
SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "20.94" | What episode titles have 20.94 million U.S. viewers? | CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" | What is the id for the employee called Ebba? | CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR) |
SELECT "Date" FROM table_53070 WHERE "Home team score" = '8.9 (57)' | When was the game where the home team score was 8.9 (57)? | CREATE TABLE table_53070 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT season__number FROM table_16617025_1 WHERE directed_by = "Kate Woods" | In what seasons did Kate Woods direct Without A Trace? | CREATE TABLE table_16617025_1 (season__number VARCHAR, directed_by VARCHAR) |
SELECT employee_name FROM Employees WHERE role_code = "HR" | Show the names of all the employees with role "HR". | CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 ORDER BY Reputation DESC LIMIT 150 | Top 150 users from China. Top 150 SO users from China | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT written_by FROM table_16617025_1 WHERE season__number = 8 | Who wrote Season 8? | CREATE TABLE table_16617025_1 (written_by VARCHAR, season__number VARCHAR) |
SELECT role_code, COUNT(*) FROM Employees GROUP BY role_code | Show all role codes and the number of employees in each role. | CREATE TABLE Employees (role_code VARCHAR) |
SELECT "Date successor seated" FROM table_25067 WHERE "Reason for change" = 'Until August 2, 1813' | When was the successor who got his seat because of 'until august 2, 1813' seated? | CREATE TABLE table_25067 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) |
SELECT joined_opec FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)" | When did the country that produced 1,213,000 (21st) bbl/day join Opec? | CREATE TABLE table_166346_1 (joined_opec VARCHAR, production___bbl__day_ VARCHAR) |
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the role code with the largest number of employees? | CREATE TABLE Employees (role_code VARCHAR) |
SELECT team FROM table_28628309_6 WHERE category = "Field goal percentage" | Who was the team when the category is field goal percentage? | CREATE TABLE table_28628309_6 (
team VARCHAR,
category VARCHAR
) |
SELECT MIN(area__km²_) FROM table_166346_1 WHERE production___bbl__day_ = "3,200,000 (12th)" | What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day? | CREATE TABLE table_166346_1 (area__km²_ INTEGER, production___bbl__day_ VARCHAR) |
SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3 | Show all role codes with at least 3 employees. | CREATE TABLE Employees (role_code VARCHAR) |
SELECT COUNT("Points") FROM table_21068 WHERE "Team" = 'Sportivo Luqueño' | how many points scored by sportivo luque o | CREATE TABLE table_21068 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) |
SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690 | What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers? | CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR) |
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) LIMIT 1 | Show the role code with the least employees. | CREATE TABLE Employees (role_code VARCHAR) |
SELECT "Competition" FROM table_68487 WHERE "Result" = '3-2' AND "Score" = '2-1' | What is the competition type of the event with a result of 3-2 and a score of 2-1? | CREATE TABLE table_68487 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT region FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)" | Which regions had a production (bbl/day) of 1,213,000 (21st)? | CREATE TABLE table_166346_1 (region VARCHAR, production___bbl__day_ VARCHAR) |
SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba" | What is the role name and role description for employee called Ebba? | CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR) |
SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "32" | How many new entries started in the round where winners from the previous round is 32? | CREATE TABLE table_18328569_1 (
new_entries_this_round VARCHAR,
winners_from_previous_round VARCHAR
) |
SELECT country FROM table_166346_1 WHERE production___bbl__day_ = "2,494,000 (10th)" | Which country had a production (bbl/day) of 2,494,000 (10th)? | CREATE TABLE table_166346_1 (country VARCHAR, production___bbl__day_ VARCHAR) |
SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor" | Show the names of employees with role name Editor. | CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) |
SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin" | which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday? | CREATE TABLE table_18173916_8 (
friday VARCHAR,
monday VARCHAR
) |
SELECT approved_treatment_s_ FROM table_1661124_1 WHERE target = "CD30" | What are all the approved treatments for the target CD30? | CREATE TABLE table_1661124_1 (approved_treatment_s_ VARCHAR, target VARCHAR) |
SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager" | Show the employee ids for all employees with role name "Human Resource" or "Manager". | CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR) |
SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11 | What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11? | CREATE TABLE table_name_77 (
league_cup INTEGER,
total VARCHAR,
fa_cup VARCHAR,
premier_league VARCHAR
) |
SELECT brand_name FROM table_1661124_1 WHERE antibody = "Brentuximab vedotin" | What is the brand name for the antibody Brentuximab Vedotin? | CREATE TABLE table_1661124_1 (brand_name VARCHAR, antibody VARCHAR) |
SELECT DISTINCT location_code FROM Document_locations | What are the different location codes for documents? | CREATE TABLE Document_locations (location_code VARCHAR) |
SELECT * FROM table_train_234 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 35 | bmi 25 to 35 inclusive | CREATE TABLE table_train_234 (
"id" int,
"orthostatic_hypotension" bool,
"systolic_blood_pressure_sbp" int,
"estimated_glomerular_filtration_rate_egfr" int,
"postural_fall_of_dbp" int,
"diastolic_blood_pressure_dbp" int,
"postural_fall_of_sbp" int,
"allergy_to_sglt_2_inhibitors" bool,
... |
SELECT COUNT(target) FROM table_1661124_1 WHERE approval_date = 1997 | How many targets are there with an approval date of 1997? | CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR) |
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV" | Show the location name for document "Robin CV". | CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR) |
SELECT "Joined" FROM table_16187 WHERE "Institution" = 'Tougaloo College' | What is the year the institution Tougaloo College joined? | CREATE TABLE table_16187 (
"Institution" text,
"Location" text,
"Mens Nickname" text,
"Womens Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
) |
SELECT approved_treatment_s_ FROM table_1661124_1 WHERE antibody = "Bevacizumab" | What are the approved treatments when the antibody is bevacizumab? | CREATE TABLE table_1661124_1 (approved_treatment_s_ VARCHAR, antibody VARCHAR) |
SELECT location_code, date_in_location_from, date_in_locaton_to FROM Document_locations | Show the location code, the starting date and ending data in that location for all the documents. | CREATE TABLE Document_locations (location_code VARCHAR, date_in_location_from VARCHAR, date_in_locaton_to VARCHAR) |
SELECT "Pole position" FROM table_11142 WHERE "Race" = 'french grand prix' | Who had Pole position for the French Grand Prix? | CREATE TABLE table_11142 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) |
SELECT target FROM table_1661124_1 WHERE approved_treatment_s_ = "non-Hodgkin lymphoma" | What is the target when the approved treatment is non-hodgkin lymphoma? | CREATE TABLE table_1661124_1 (target VARCHAR, approved_treatment_s_ VARCHAR) |
SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV" | What is "the date in location from" and "the date in location to" for the document with name "Robin CV"? | CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR) |
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na... | show me the airlines that fly from DENVER to SAN FRANCISCO | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... |
SELECT target FROM table_1661124_1 WHERE approval_date = 2006 | What is the target with an approval date of 2006? | CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR) |
SELECT location_code, COUNT(*) FROM Document_locations GROUP BY location_code | Show the location codes and the number of documents in each location. | CREATE TABLE Document_locations (location_code VARCHAR) |
SELECT "Record" FROM table_21460 WHERE "Location Attendance" = 'Verizon Center 20,173' | Name the record for verizon center 20,173 | CREATE TABLE table_21460 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MIN(rural), __percentage FROM table_16645_1 WHERE year__january_ = 1979 | What is the rural population percentage in 1979? | CREATE TABLE table_16645_1 (__percentage VARCHAR, rural INTEGER, year__january_ VARCHAR) |
SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the location code with the most documents? | CREATE TABLE Document_locations (location_code VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "ERYT250" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | what is the number of patients whose drug code is eryt250 and lab test fluid is cerebrospinal fliuid (csf)? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... |
SELECT COUNT(urban), __percentage FROM table_16645_1 WHERE population__000_ = 14685 | How many percentage figures are given for the urban population when the total population number is 14685? | CREATE TABLE table_16645_1 (__percentage VARCHAR, urban VARCHAR, population__000_ VARCHAR) |
SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3 | Show the location codes with at least 3 documents. | CREATE TABLE Document_locations (location_code VARCHAR) |
SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32 | Name the total number of height for number 32 | CREATE TABLE table_25360865_1 (
height VARCHAR,
_number VARCHAR
) |
SELECT islam FROM table_16642_1 WHERE ethnicity = "Tajik" | When tajik is the ethnicity what is islam? | CREATE TABLE table_16642_1 (islam VARCHAR, ethnicity VARCHAR) |
SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1 | Show the location name and code with the least documents. | CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR) |
SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate DESC | Compare the total number of each fate with a bar chart, show from high to low by the x axis. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) |
SELECT COUNT(name) FROM table_16654785_2 WHERE length__m_ = 455 | How many had a length of 455? | CREATE TABLE table_16654785_2 (name VARCHAR, length__m_ VARCHAR) |
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id | What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? | CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR) |
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97395) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE... | what were the new prescriptions of patient 97395 today compared to the prescription they received yesterday? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... |
SELECT MIN(average_climb___percentage_) FROM table_16654785_2 WHERE name = "Tenbosse" | What is the average climb for Tenbosse? | CREATE TABLE table_16654785_2 (average_climb___percentage_ INTEGER, name VARCHAR) |
SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID | Show the id of each employee and the number of document destruction authorised by that employee. | CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) |
SELECT best FROM table_name_6 WHERE qual_1 = "59.448" | What is the best time for a team with a first-qualifying time of 59.448? | CREATE TABLE table_name_6 (
best VARCHAR,
qual_1 VARCHAR
) |
SELECT number FROM table_16654785_2 WHERE kilometer = 233 | How many have a kilometers of 233? | CREATE TABLE table_16654785_2 (number VARCHAR, kilometer VARCHAR) |
SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID | Show the employee ids and the number of documents destroyed by each employee. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR) |
SELECT written_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.39" | who write the episode that have 14.39 million viewers | CREATE TABLE table_19417244_2 (
written_by VARCHAR,
us_viewers__millions_ VARCHAR
) |
SELECT COUNT(average_climb___percentage_) FROM table_16654785_2 WHERE length__m_ = 375 | How many have a length of 375? | CREATE TABLE table_16654785_2 (average_climb___percentage_ VARCHAR, length__m_ VARCHAR) |
SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of the employees who don't authorize destruction for any document. | CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) |
SELECT MAX(long) FROM table_name_40 WHERE name = "thomas clayton" AND gain < 71 | When Thomas Clayton had a gain less than 71, what was the highest long value? | CREATE TABLE table_name_40 (
long INTEGER,
name VARCHAR,
gain VARCHAR
) |
SELECT playoffs FROM table_16636344_1 WHERE year = "2011" | What was the team's playoff status in 2011? | CREATE TABLE table_16636344_1 (playoffs VARCHAR, year VARCHAR) |
SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who have authorized destruction. | CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) |
SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti" | Name the gdp per capita for haiti | CREATE TABLE table_26313243_1 (
gdp__ppp__per_capita___intl_$___2011 VARCHAR,
country VARCHAR
) |
SELECT league FROM table_16636344_1 WHERE year = "2010" | What was the team's league in 2010? | CREATE TABLE table_16636344_1 (league VARCHAR, year VARCHAR) |
SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who have destroyed a document. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR) |
SELECT COUNT("Population") FROM table_21283 WHERE "Area km 2" = '149.32' | What is the total number of population in the land with an area of 149.32 km2? | CREATE TABLE table_21283 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) |
SELECT league FROM table_16636344_1 WHERE regular_season = "2nd, Mid Atlantic" | What is the league name for the regular season status of 2nd, mid atlantic? | CREATE TABLE table_16636344_1 (league VARCHAR, regular_season VARCHAR) |
SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who don't destroy any document. | CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR) |
SELECT (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Reputation >= 1000) AS "significant_users", (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Id NOT IN (SELECT DISTINCT OwnerUserId FROM Posts WHERE PostTypeId = 1 AND OwnerUserId != '') AND u.Reputation >= 94000) AS "with_no_questions" | Proportion of users who've asked no questions. Counts the number of users with Rep>=1000 who've asked no questions, and the total number of users with Rep>=1000. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... |
SELECT winning_driver FROM table_16670746_2 WHERE circuit = "Okayama International circuit" | Who was the winning driver at Okayama International Circuit? | CREATE TABLE table_16670746_2 (winning_driver VARCHAR, circuit VARCHAR) |
SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who have either destroyed a document or made an authorization to do this. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) |
SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295 | What is Player, when Money ( $ ) is less than 387, and when Score is '73-76-74-72=295'? | CREATE TABLE table_name_40 (
player VARCHAR,
money___$__ VARCHAR,
score VARCHAR
) |
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "TOM'S Racing" | Who had the fastest lap when the winning team was Tom's Racing? | CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR) |
SELECT clubname FROM club | What are the names of all clubs? | CREATE TABLE club (clubname VARCHAR) |
SELECT "Ijekavian" FROM table_29854 WHERE "Ikavian" = 'grijati' | What's the ijekavian translation of the ikavian word grijati? | CREATE TABLE table_29854 (
"English" text,
"Predecessor" text,
"Ekavian" text,
"Ikavian" text,
"Ijekavian" text,
"Ijekavian development" text
) |
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi" | Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit? | CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR) |
SELECT COUNT(*) FROM student | How many students are there? | CREATE TABLE student (Id VARCHAR) |
SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328" | What date did the T328 that entered service on 18 June 1956 re-enter service? | CREATE TABLE table_name_22 (
re_entered_service__p_ VARCHAR,
entered_service__t_ VARCHAR,
pre_conversion VARCHAR
) |
SELECT COUNT(opponents) FROM table_16677874_2 WHERE game = 13 | How many opponents did the team play in week 13? | CREATE TABLE table_16677874_2 (opponents VARCHAR, game VARCHAR) |
SELECT DISTINCT fname FROM student | What are the first names of all the students? | CREATE TABLE student (fname VARCHAR) |
SELECT country FROM table_15887683_6 WHERE television_service = "Sky Primafila 7 HD" | Name the country for sky primafila 7 hd | CREATE TABLE table_15887683_6 (
country VARCHAR,
television_service VARCHAR
) |
SELECT MAX(opponents) FROM table_16677887_2 WHERE date = "Sept. 14" | How many points did the opponent score on Sept. 14? | CREATE TABLE table_16677887_2 (opponents INTEGER, date VARCHAR) |
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" | Find the last names of the members of the club "Bootup Baltimore". | CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) |
SELECT "Nominating Festival" FROM table_15380 WHERE "Director(s)" = 'iao lethem' | Which nominating festival nominated Iao Lethem's film? | CREATE TABLE table_15380 (
"Category" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Nominating Festival" text
) |
SELECT opponent FROM table_16677887_2 WHERE bills_first_downs = 23 | What team were the bills playing where their first down was 23? | CREATE TABLE table_16677887_2 (opponent VARCHAR, bills_first_downs VARCHAR) |
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" | Who are the members of the club named "Hopkins Student Enterprises"? Show the last name. | CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) |
SELECT MAX("Games Played") FROM table_11772 WHERE "Losses" = '3' AND "Wins" > '5' | What is the largest number of Games Played with Losses of 3, and more Wins than 5? | CREATE TABLE table_11772 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) |
SELECT record FROM table_16677887_2 WHERE date = "Sept. 14" | What was the record for the game on Sept. 14? | CREATE TABLE table_16677887_2 (record VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club" | How many members does the club "Tennis Club" has? | CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) |
SELECT "County" FROM table_63746 WHERE "IHSAA Football Class" = 'a' AND "Mascot" = 'royals' | What county has an IHSAA Football Class of A, and a Mascot of royals? | CREATE TABLE table_63746 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Football Class" text,
"Primary Conference" text,
"County" text
) |
SELECT MAX(gore_hundred) FROM table_16677738_1 WHERE spelthorne_hundred = 12743 | When 12743 is the spelthorne what is the largest gore hundred? | CREATE TABLE table_16677738_1 (gore_hundred INTEGER, spelthorne_hundred VARCHAR) |
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming" | Find the number of members of club "Pen and Paper Gaming". | CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) |
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99647 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = '... | what is during the first hospital encounter maximum neutrophils value of patient 99647? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
... |
SELECT finsbury_division FROM table_16677738_1 WHERE inns_of_court_and_chancery = 1546 | When 1546 is inns of court and chancery what is the finsbury division? | CREATE TABLE table_16677738_1 (finsbury_division VARCHAR, inns_of_court_and_chancery VARCHAR) |
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Linda" AND t3.lname = "Smith" | How many clubs does "Linda Smith" belong to? | CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) |
SELECT *, CAST(100.0 * without_tag / (without_tag + with_tag) AS FLOAT(18, 2)) AS perc_not_tag FROM (SELECT COUNT(p.Id) AS post_count, t.TagName, SUM(CASE WHEN p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS with_tag, SUM(CASE WHEN NOT p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS without_tag FROM Posts AS p JOIN Pos... | Overlap between a given tag and related ones. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.