answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE ((SEM... | Can I enroll in 400 -level classes for the Fall or Winter term ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE job... |
SELECT player FROM table_name_77 WHERE nationality = "sweden" AND round > 3 | Who is the player from Sweden from a round after 3? | CREATE TABLE table_name_77 (player VARCHAR, nationality VARCHAR, round VARCHAR) |
SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = "Curtis Kheel" | Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel? | CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR) |
SELECT date, vote_percent FROM election | List the dates and vote percents of elections. | CREATE TABLE representative (
representative_id number,
name text,
state text,
party text,
lifespan text
)
CREATE TABLE election (
election_id number,
representative_id number,
date text,
votes number,
vote_percent number,
seats number,
place number
) |
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)" | What is the nationality of a player from linköpings hc (se)? | CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR) |
SELECT COUNT(result) FROM table_21311525_1 WHERE date = "19/06/2009" | How many results were there on 19/06/2009? | CREATE TABLE table_21311525_1 (result VARCHAR, date VARCHAR) |
SELECT name FROM table_26916717_1 WHERE team_school = "California" | What player attended california university? | CREATE TABLE table_26916717_1 (
name VARCHAR,
team_school VARCHAR
) |
SELECT crowd FROM table_name_17 WHERE home_team = "st kilda" | What is the crowd size for st kilda as the home team? | CREATE TABLE table_name_17 (crowd VARCHAR, home_team VARCHAR) |
SELECT round FROM table_21311525_1 WHERE date = "19/06/2009" | What is the round number for the date 19/06/2009? | CREATE TABLE table_21311525_1 (round VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND lab.label = "MCV" | how many black/cape verdean patients had mcv lab test? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 (... |
SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses" | I want the sum of pages for thistle among roses | CREATE TABLE table_name_36 (pages INTEGER, translated_title VARCHAR) |
SELECT round FROM table_21311525_1 WHERE venue = "Stade de la Méditerranée" | What is the round number for the venue of Stade de la Méditerranée? | CREATE TABLE table_21311525_1 (round VARCHAR, venue VARCHAR) |
SELECT former_county FROM table_2801185_2 WHERE district = "Great Grimsby" | What are the former counties of the Great Grimsby district? | CREATE TABLE table_2801185_2 (
former_county VARCHAR,
district VARCHAR
) |
SELECT manager FROM table_name_3 WHERE fund = "fmc corporation pension fund" | Who is the manager for FMC Corporation pension fund? | CREATE TABLE table_name_3 (manager VARCHAR, fund VARCHAR) |
SELECT score FROM table_21311525_1 WHERE date = "17/07/2009" | What was the score when the date was 17/07/2009? | CREATE TABLE table_21311525_1 (score VARCHAR, date VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight_stop.arrival_time < 1200 AND flight_stop.stop_airport = airport_service.airport_code AND flight.airline_code = 'NW' AND flight.flight_id = flight_sto... | which NW flights stop in DENVER before 1200 | CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
applica... |
SELECT position FROM table_name_28 WHERE character = "frank tripp" | What was the position of Frank Tripp? | CREATE TABLE table_name_28 (position VARCHAR, character VARCHAR) |
SELECT position FROM table_21321804_5 WHERE player = "Marc Parenteau" | What is Marc Parenteau's position? | CREATE TABLE table_21321804_5 (position VARCHAR, player VARCHAR) |
SELECT user_name, password FROM users GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 | List all the username and passwords of users with the most popular role. | CREATE TABLE users (
user_name VARCHAR,
password VARCHAR,
role_code VARCHAR
) |
SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187 | What was the final episode credited of 187? | CREATE TABLE table_name_72 (final_episode VARCHAR, episodes_credited VARCHAR) |
SELECT MIN(pick__number) FROM table_21321804_5 WHERE college = "McGill" | What is the smallest pick number for McGill? | CREATE TABLE table_21321804_5 (pick__number INTEGER, college VARCHAR) |
SELECT "year identified" FROM table_203_589 WHERE "year identified" IN (2008, 1997) GROUP BY "year identified" ORDER BY COUNT("protein") DESC LIMIT 1 | what yea had more proteins 2008 or 1997 ? | CREATE TABLE table_203_589 (
id number,
"protein" text,
"natural host" text,
"normal function" text,
"prion state" text,
"prion phenotype" text,
"year identified" number
) |
SELECT class FROM table_name_66 WHERE no_built = 55 | Which class at 55 built? | CREATE TABLE table_name_66 (class VARCHAR, no_built VARCHAR) |
SELECT college FROM table_21321804_5 WHERE player = "Derik Fury" | Derik Fury plays for which college? | CREATE TABLE table_21321804_5 (college VARCHAR, player VARCHAR) |
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall" | How many male (sex is M) students have class senator votes in the fall election cycle? | CREATE TABLE VOTING_RECORD (
Election_Cycle VARCHAR
)
CREATE TABLE STUDENT (
StuID VARCHAR,
Sex VARCHAR
) |
SELECT loco_nos FROM table_name_80 WHERE class = "e3" | What is the Loco Nos of the e3 class? | CREATE TABLE table_name_80 (loco_nos VARCHAR, class VARCHAR) |
SELECT COUNT(college) FROM table_21321804_5 WHERE player = "David Kasouf" | David Kasouf plays for how many colleges? | CREATE TABLE table_21321804_5 (college VARCHAR, player VARCHAR) |
SELECT "Best finish" FROM table_1253 WHERE "Scoring rank" = '97' | What is the best finish where the scoring rank is 97? | CREATE TABLE table_1253 (
"Year" real,
"Events played" real,
"Cuts made" real,
"Wins" real,
"2nds" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Rank" text,
"Scoring average" text,
"Scoring rank" text
) |
SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval" | How many people attended Junction Oval? | CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR) |
SELECT position FROM table_21321804_5 WHERE cfl_team = "Hamilton Tiger-Cats" | What position was drafted by the Hamilton Tiger-Cats? | CREATE TABLE table_21321804_5 (position VARCHAR, cfl_team VARCHAR) |
SELECT date_to, COUNT(date_to) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id ORDER BY COUNT(date_to) | Show the number of customer address history in each month and bin date to by month interval with a bar chart, and I want to sort in asc by the y axis. | CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(15),
product_name VARCHAR(80),
product_price DOUBLE
)
CREATE TABLE Customer_Address_History (
customer_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Customer_Orders (
order_i... |
SELECT home_team AS score FROM table_name_97 WHERE away_team = "fitzroy" | What was the score of the team that played against Fitzroy? | CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) |
SELECT winning_driver FROM table_21321935_2 WHERE fastest_lap = "Jamie Green" | Who won when Jamie Green had the best lap? | CREATE TABLE table_21321935_2 (winning_driver VARCHAR, fastest_lap VARCHAR) |
SELECT country FROM table_name_9 WHERE year = 2009 AND publication = "paste" | What country had a paste publication in 2009? | CREATE TABLE table_name_9 (
country VARCHAR,
year VARCHAR,
publication VARCHAR
) |
SELECT stadium FROM table_name_7 WHERE city = "melfi" | What is the name of the stadium for the city of melfi? | CREATE TABLE table_name_7 (stadium VARCHAR, city VARCHAR) |
SELECT fastest_lap FROM table_21321935_2 WHERE circuit = "Motorsport Arena Oschersleben" | Who had the fasted lap in motorsport arena oschersleben? | CREATE TABLE table_21321935_2 (fastest_lap VARCHAR, circuit VARCHAR) |
SELECT crowd FROM table_name_78 WHERE venue = "moorabbin oval" | What was the attendance at the game played at Moorabbin Oval? | CREATE TABLE table_name_78 (
crowd VARCHAR,
venue VARCHAR
) |
SELECT SUM(capacity) FROM table_name_96 WHERE stadium = "pasquale ianniello" | What is the total capacity for the stadium of pasquale ianniello? | CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR) |
SELECT date FROM table_21321935_2 WHERE pole_position = "Oliver Jarvis" | When did Oliver Jarvis have pole position? | CREATE TABLE table_21321935_2 (date VARCHAR, pole_position VARCHAR) |
SELECT score FROM table_name_12 WHERE time = "7:00pm" AND location = "scotiabank place" AND opponent = "philadelphia flyers" | What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers? | CREATE TABLE table_name_12 (
score VARCHAR,
opponent VARCHAR,
time VARCHAR,
location VARCHAR
) |
SELECT city FROM table_name_25 WHERE airport = "jaffna airport" | What city is Jaffna Airport in? | CREATE TABLE table_name_25 (city VARCHAR, airport VARCHAR) |
SELECT college FROM table_21321804_3 WHERE cfl_team = "Hamilton Tiger-Cats" | What college did the player for the Hamilton Tiger-Cats go to? | CREATE TABLE table_21321804_3 (college VARCHAR, cfl_team VARCHAR) |
SELECT races FROM table_name_19 WHERE poles = "0" AND team = "asm" | What is the number of races associated with Team ASM and 0 poles? | CREATE TABLE table_name_19 (
races VARCHAR,
poles VARCHAR,
team VARCHAR
) |
SELECT city FROM table_name_84 WHERE icao = "tba" | Which city has an ICAO of TBA? | CREATE TABLE table_name_84 (city VARCHAR, icao VARCHAR) |
SELECT COUNT(player) FROM table_21321804_3 WHERE position = "DT" | How many players are at the DT position? | CREATE TABLE table_21321804_3 (player VARCHAR, position VARCHAR) |
SELECT rainfall_totals__million_m_3__ FROM table_26609958_1 WHERE hydrographic_basin = "Martha Brae, River" | When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)? | CREATE TABLE table_26609958_1 (
rainfall_totals__million_m_3__ VARCHAR,
hydrographic_basin VARCHAR
) |
SELECT player FROM table_name_99 WHERE college = "wyoming" | Which player went to the College of Wyoming? | CREATE TABLE table_name_99 (player VARCHAR, college VARCHAR) |
SELECT cfl_team FROM table_21321804_3 WHERE college = "Nebraska" | What team does the player who went to Nebraska play for? | CREATE TABLE table_21321804_3 (cfl_team VARCHAR, college VARCHAR) |
SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone) DESC | List the number of the phone numbers of all employees, I want to show in descending by the y axis. | CREATE TABLE PlaylistTrack (
PlaylistId integer,
TrackId integer
)
CREATE TABLE MediaType (
MediaTypeId integer,
Name varchar(120)
)
CREATE TABLE Album (
AlbumId integer,
Title varchar(160),
ArtistId integer
)
CREATE TABLE InvoiceLine (
InvoiceLineId integer,
InvoiceId integer,
... |
SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond" | What was the smallest crowd at a game when Richmond was the away team? | CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR) |
SELECT MAX(pick__number) FROM table_21321804_3 | What is the highest number any of the players were picked at? | CREATE TABLE table_21321804_3 (pick__number INTEGER) |
SELECT demographic.age, demographic.admittime FROM demographic WHERE demographic.subject_id = "2560" | what is age and admission time of subject id 2560? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... |
SELECT home_team FROM table_name_80 WHERE crowd > 24 OFFSET 520 | Who was the home team at the game that had a crowd of over 24,520? | CREATE TABLE table_name_80 (home_team VARCHAR, crowd INTEGER) |
SELECT player FROM table_21321804_3 WHERE cfl_team = "Winnipeg Blue Bombers" | Which player plays for the Winnipeg Blue Bombers? | CREATE TABLE table_21321804_3 (player VARCHAR, cfl_team VARCHAR) |
SELECT "Championship" FROM table_38329 WHERE "Opponent in the final" = 'francesca schiavone' | What championship had Francesca Schiavone in the finals? | CREATE TABLE table_38329 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) |
SELECT COUNT(since) FROM table_name_24 WHERE name = "belletti" | Name the total number of since for belletti | CREATE TABLE table_name_24 (since VARCHAR, name VARCHAR) |
SELECT pick__number FROM table_21321804_1 WHERE player = "Wes Lysack" | What is the pick # for player wes lysack? | CREATE TABLE table_21321804_1 (pick__number VARCHAR, player VARCHAR) |
SELECT Comment FROM ReviewTaskResults WHERE NOT Comment IS NULL AND ReviewTaskResultTypeId != 3 | What's the Comment field in ReviewTaskResults?. | CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal bool... |
SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system" | Name the highest goals for youth system and ita | CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR) |
SELECT COUNT(cfl_team) FROM table_21321804_1 WHERE pick__number = 5 | How many clf teams have a pick # of 5? | CREATE TABLE table_21321804_1 (cfl_team VARCHAR, pick__number VARCHAR) |
SELECT "Current Club" FROM table_17886 WHERE "Player" = 'Sacha Giffa' | Name the current club for player sacha giffa | CREATE TABLE table_17886 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) |
SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = "eddie irvine" | What is the time/retired for eddie irvine with a grid of greater than 3? | CREATE TABLE table_name_84 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) |
SELECT COUNT(position) FROM table_21321804_1 WHERE college = "Utah" | How many total positions are there for utah college? | CREATE TABLE table_21321804_1 (position VARCHAR, college VARCHAR) |
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "21796" | what is diagnoses short title of subject id 21796? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... |
SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision" | How many laps had a grid of greater than 17 and retired due to collision? | CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) |
SELECT cfl_team FROM table_21321804_1 WHERE college = "Manitoba" | Which cfl team is manitoba college? | CREATE TABLE table_21321804_1 (cfl_team VARCHAR, college VARCHAR) |
SELECT "title" FROM table_203_197 ORDER BY "weeks at no. 1" DESC LIMIT 1 | which song stayed at no. 1 for the most amount of weeks . | CREATE TABLE table_203_197 (
id number,
"#" number,
"title" text,
"artist" text,
"highest pos. reached" number,
"weeks at no. 1" text
) |
SELECT MAX(silver) FROM table_name_15 WHERE nation = "south korea" AND gold < 1 | How many silvers for south korea with under 1 gold medal? | CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, gold VARCHAR) |
SELECT position FROM table_21321804_1 WHERE cfl_team = "Edmonton Eskimos" AND college = "Weber State" | Which position is cfl team edmonton eskimos for weber state college? | CREATE TABLE table_21321804_1 (position VARCHAR, cfl_team VARCHAR, college VARCHAR) |
SELECT COUNT(*) FROM table_203_158 WHERE "attendance" >= 50000 | how many games had an attendance of 50,000 or greater fans ? | CREATE TABLE table_203_158 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) |
SELECT MAX(gold) FROM table_name_25 WHERE nation = "uganda" AND total < 3 | How many golds for uganda with under 3 total medals? | CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, total VARCHAR) |
SELECT MAX(pick__number) FROM table_21321804_1 WHERE player = "Wes Lysack" | What is the pick # for player wes lysack? | CREATE TABLE table_21321804_1 (pick__number INTEGER, player VARCHAR) |
SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439 | How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439? | CREATE TABLE table_name_78 (
percentage_of_marine_area__foreez_ VARCHAR,
ecozone VARCHAR,
area__km²__exclusive_economic_zone VARCHAR
) |
SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 10 | How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals? | CREATE TABLE table_name_78 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR) |
SELECT COUNT(length) FROM table_21326205_2 WHERE time = "14:33.9" | How many stages of the rally took 14:33.9 for the leader to finish? | CREATE TABLE table_21326205_2 (length VARCHAR, time VARCHAR) |
SELECT "Mission" FROM table_6674 WHERE "Local Position" = 'ambassador' AND "Resident Country" = 'democratic republic of congo' | What is the mission that has ambassador of local position, and a resident country of democratic republic of congo? | CREATE TABLE table_6674 (
"Mission" text,
"Resident Country" text,
"Local Location" text,
"Local Mission" text,
"Local Position" text
) |
SELECT week FROM table_name_82 WHERE result = "l 24-10" | Which week has a result showing L 24-10? | CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR) |
SELECT stage FROM table_21326205_2 WHERE rally_leader = "Sébastien Loeb" AND name = "Tempo 2" | In which special stage named Tempo 2 was Sébastien Loeb the leader? | CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR) |
SELECT u.DisplayName, u.Id, REPLACE(CAST(TIME_TO_STR(b.Date, '%d %b %Y') AS TEXT(30)), ' ', '/') FROM Users AS u JOIN Badges AS b ON u.Id = b.UserId WHERE b.Name = 'css' AND b.Class = 1 ORDER BY b.Date DESC | Gold badge ranking in India. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDi... |
SELECT week FROM table_name_85 WHERE kickoff_[a_] = "1:00" AND record = "4-5-1" | Which week has a Kickoff time of 1:00 with a record of 4-5-1? | CREATE TABLE table_name_85 (week VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR) |
SELECT winner FROM table_21326205_2 WHERE time__gmt_ = "18:54" | Which ralliers won the stages that were at 18:54 GMT? | CREATE TABLE table_21326205_2 (winner VARCHAR, time__gmt_ VARCHAR) |
SELECT * FROM Posts WHERE AnswerCount = 0 ORDER BY CreationDate | Oldest question without any answer. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
Li... |
SELECT week FROM table_name_58 WHERE record = "5-7-1" | Which week has a record of 5-7-1? | CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR) |
SELECT COUNT(location) FROM table_21330550_2 WHERE big_ten_team = "#12 Michigan State" | How many locations have #12 Michigan State as the big ten team? | CREATE TABLE table_21330550_2 (location VARCHAR, big_ten_team VARCHAR) |
SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14 | Which Oilers points have a Record of 10 6, and Oilers first downs larger than 14? | CREATE TABLE table_name_1 (
oilers_points INTEGER,
record VARCHAR,
oilers_first_downs VARCHAR
) |
SELECT opponent FROM table_name_79 WHERE game_site = "metropolitan stadium" | Who is the opponent on the game that will be played at metropolitan stadium? | CREATE TABLE table_name_79 (opponent VARCHAR, game_site VARCHAR) |
SELECT winner FROM table_21330550_2 WHERE challenge_leader = "BigTen (2-1)" | Who is the winner when bigten (2-1) is the challenge leader? | CREATE TABLE table_21330550_2 (winner VARCHAR, challenge_leader VARCHAR) |
SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id | Show the name for regions and the number of storms for each region. | CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions... |
SELECT away_team AS score FROM table_name_85 WHERE venue = "kardinia park" | What did the away team score at Kardinia Park? | CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) |
SELECT winner FROM table_21330550_2 WHERE location = "LJVM Coliseum • Winston-Salem, NC" | Who is the winner in the location of ljvm coliseum • winston-salem, nc? | CREATE TABLE table_21330550_2 (winner VARCHAR, location VARCHAR) |
SELECT first_name, last_name, salary 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 are full names and salaries of employees working in the city of London? | CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_... |
SELECT away_team AS score FROM table_name_38 WHERE venue = "junction oval" | What was the away team's score in Junction Oval? | CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) |
SELECT time FROM table_21330550_2 WHERE acc_team = "#17 Wake Forest" | What time was the acc team #17 wake forest? | CREATE TABLE table_21330550_2 (time VARCHAR, acc_team VARCHAR) |
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1 | What are the first and last name of the faculty who has the most students? | CREATE TABLE Student (
advisor VARCHAR
)
CREATE TABLE Faculty (
fname VARCHAR,
lname VARCHAR,
FacID VARCHAR
) |
SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval" | What did the away team score at Moorabbin Oval? | CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) |
SELECT location FROM table_21330550_2 WHERE time = "9:30PM" | Which location has a time of 9:30pm? | CREATE TABLE table_21330550_2 (location VARCHAR, time VARCHAR) |
SELECT COUNT(date) FROM table_23916462_3 WHERE week = 4 | How many dates for the week of 4? | CREATE TABLE table_23916462_3 (
date VARCHAR,
week VARCHAR
) |
SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50 | Who constructed the car that has a Time/Retired of engine, and over 50 laps? | CREATE TABLE table_name_56 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR) |
SELECT COUNT(date) FROM table_21330550_2 WHERE big_ten_team = "#10 Purdue" | How many dates have a big ten team of #10 purdue? | CREATE TABLE table_21330550_2 (date VARCHAR, big_ten_team VARCHAR) |
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'dextrose 50%' AND patient.uniquepid = '025-44842' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CUR... | the first time patient 025-44842 was prescribed alprazolam 0.25 mg po tabs and dextrose 50% at the same time during this month? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.