answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35 | Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? | CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) |
SELECT soccer_stadium FROM table_27369069_4 WHERE varsity_name = "Citadins" | What is the soccer stadium with the varsity name is citadins? | CREATE TABLE table_27369069_4 (soccer_stadium VARCHAR, varsity_name VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10559')) AND medication.drugname IN ('potassium chloride 20 meq tr tab... | in this year had patient 030-10559 been prescribed potassium chloride 20 meq tr tab, d50 or dexamethasone? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medi... |
SELECT to_par FROM table_name_99 WHERE country = "france" | What is the To Par score for the player from France? | CREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR) |
SELECT province FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard" | What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard? | CREATE TABLE table_27369069_4 (province VARCHAR, soccer_stadium VARCHAR) |
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | what was the four most frequent laboratory test ordered during this year? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT player FROM table_name_41 WHERE score = 70 - 69 - 69 = 208 | What is the name of the player with an overall score of 70-69-69=208? | CREATE TABLE table_name_41 (player VARCHAR, score VARCHAR) |
SELECT province FROM table_27369069_4 WHERE stadium_capacity = 5100 | What is the province for with the stadium capacity of 5100? | CREATE TABLE table_27369069_4 (province VARCHAR, stadium_capacity VARCHAR) |
SELECT home_team FROM table_name_68 WHERE score = "1–1" AND away_team = "tottenham hotspur" | Which Home team has a Score of 1 1, and an Away team of tottenham hotspur? | CREATE TABLE table_name_68 (
home_team VARCHAR,
score VARCHAR,
away_team VARCHAR
) |
SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208 | What is the To Par score for the player with an overall score of 71-68-69=208? | CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR) |
SELECT university FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard" | What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard? | CREATE TABLE table_27369069_4 (university VARCHAR, soccer_stadium VARCHAR) |
SELECT COUNT("Team name") FROM table_1283 WHERE "City, State/Country" = 'Bridgewater, NJ, USA' | How many teams are in Bridgewater, NJ, USA? | CREATE TABLE table_1283 (
"Year / Theme" text,
"Award name" text,
"Team name" text,
"Team number" real,
"City, State/Country" text
) |
SELECT location FROM table_name_68 WHERE champion = "anke huber" | What location did Anke Huber win the championship? | CREATE TABLE table_name_68 (location VARCHAR, champion VARCHAR) |
SELECT date_of_appointment FROM table_27374004_4 WHERE replaced_by = "Hugo Broos" | When was the date of appointment by Hugo Broos? | CREATE TABLE table_27374004_4 (date_of_appointment VARCHAR, replaced_by VARCHAR) |
SELECT 2009 FROM table_name_77 WHERE 2012 = "2r" AND 2011 = "1r" AND 2007 = "a" AND 2008 = "a" | WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A? | CREATE TABLE table_name_77 (
Id VARCHAR
) |
SELECT runner_up FROM table_name_26 WHERE year = 1999 | Who won the runner-up in 1999? | CREATE TABLE table_name_26 (runner_up VARCHAR, year VARCHAR) |
SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = "Bart De Roover" | How many times did outgoing manager Bart de Roover vacated a position? | CREATE TABLE table_27374004_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) |
SELECT lost FROM table_name_59 WHERE points_against = "383" | What was lost against 383 points? | CREATE TABLE table_name_59 (
lost VARCHAR,
points_against VARCHAR
) |
SELECT score FROM table_name_67 WHERE champion = "flavia pennetta" | What was the score when Flavia Pennetta won the championship? | CREATE TABLE table_name_67 (score VARCHAR, champion VARCHAR) |
SELECT outgoing_manager FROM table_27374004_4 WHERE manner_of_departure = "Sacked" AND position_in_table = "15th" | Who was the outgoing manager of the team in 15th position that was sacked? | CREATE TABLE table_27374004_4 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR) |
SELECT "Nationality" FROM table_50098 WHERE "School/Club Team" = 'duke' | What is the nationality of Duke? | CREATE TABLE table_50098 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) |
SELECT COUNT(matches) FROM table_name_96 WHERE s_rate < 133.72 AND team = "yorkshire carnegie" | How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie? | CREATE TABLE table_name_96 (matches VARCHAR, s_rate VARCHAR, team VARCHAR) |
SELECT position_in_table FROM table_27374004_4 WHERE outgoing_manager = "Danny Ost" | What was the team's position in table when Danny OST was the outgoing manager? | CREATE TABLE table_27374004_4 (position_in_table VARCHAR, outgoing_manager VARCHAR) |
SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)" | What is the share of votes in the 2000 (2nd) election? | CREATE TABLE table_name_20 (
share_of_votes VARCHAR,
election VARCHAR
) |
SELECT team FROM table_name_27 WHERE balls < 258 AND inns = 10 AND matches < 12 | Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12? | CREATE TABLE table_name_27 (team VARCHAR, matches VARCHAR, balls VARCHAR, inns VARCHAR) |
SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = "8.01" | how many maximum # when viewers (m) is 8.01 | CREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR) |
SELECT dept_name, COUNT(dept_name) FROM instructor GROUP BY dept_name ORDER BY salary | Find dept_name and the amount of dept_name , and group by attribute dept_name, and visualize them by a bar chart. | CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
... |
SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09 | How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09? | CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR) |
SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters" | How many outgoing managers were replaced by Bob Peeters? | CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR) |
SELECT COUNT(P.Title), YEAR(P.CreationDate) FROM Posts AS P WHERE (P.Tags LIKE '%android-testing%') OR (P.Tags LIKE '%robotium%') OR (P.Tags LIKE '%androidviewclient%') OR (P.Tags LIKE '%monkeyrunner%') OR (P.Tags LIKE '%robolectric%') OR (P.Tags LIKE '%android-espresso%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%... | New Android Testing by Year. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... |
SELECT fastest_lap FROM table_name_56 WHERE grand_prix = "dutch tt" | What was the fastest lap for Grand Prix dutch tt? | CREATE TABLE table_name_56 (fastest_lap VARCHAR, grand_prix VARCHAR) |
SELECT replaced_by FROM table_27374004_3 WHERE outgoing_manager = "Michel Preud'homme" | Who replaced Michel Preud'homme? | CREATE TABLE table_27374004_3 (replaced_by VARCHAR, outgoing_manager VARCHAR) |
SELECT "title" FROM table_201_21 WHERE "year" = 2002 AND "role" = 'vindici' | which film came out in 2002 and also had the role of vindici ? | CREATE TABLE table_201_21 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) |
SELECT race_winner FROM table_name_47 WHERE circuit = "sachsenring" | Who won the race circuit of sachsenring? | CREATE TABLE table_name_47 (race_winner VARCHAR, circuit VARCHAR) |
SELECT manner_of_departure FROM table_27374004_3 WHERE team = "Cercle Brugge" | What was the manner of departure for the manager of Cercle Brugge? | CREATE TABLE table_27374004_3 (manner_of_departure VARCHAR, team VARCHAR) |
SELECT "points" FROM table_204_954 WHERE "country" = 'germany' | how many points did germany have ? | CREATE TABLE table_204_954 (
id number,
"no." number,
"country" text,
"2009 winter\nuniversiade" number,
"2007 wjcc" number,
"2007 wwcc" number,
"2008 wjcc" number,
"2008 wwcc" number,
"points" number
) |
SELECT race_winner FROM table_name_97 WHERE fastest_lap = "daijiro hiura" AND date = "march 29" | Who won with the fastest lap of daijiro hiura on March 29? | CREATE TABLE table_name_97 (race_winner VARCHAR, fastest_lap VARCHAR, date VARCHAR) |
SELECT outgoing_manager FROM table_27374004_3 WHERE team = "Charleroi" | Who was the outgoing manager of Charleroi? | CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT "Date" FROM table_45100 WHERE "Tournament" = 'greenbrier classic' | What is Date, when Tournament, is Greenbrier Classic? | CREATE TABLE table_45100 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) |
SELECT year FROM table_name_35 WHERE total = "2" AND la_matches = "0" | What year had a total of 2 and LA matches of 0? | CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR) |
SELECT shirt_sponsor FROM table_27383390_2 WHERE head_coach = "Samad Marfavi" | What sponsor has the head coach Samad Marfavi? | CREATE TABLE table_27383390_2 (shirt_sponsor VARCHAR, head_coach VARCHAR) |
SELECT AVG("Enrollment") FROM table_14181 WHERE "School" = 'lanesville' | What is the enrollment at Lanesville? | CREATE TABLE table_14181 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
) |
SELECT year FROM table_name_9 WHERE total = "9" | What year was the total 9? | CREATE TABLE table_name_9 (year VARCHAR, total VARCHAR) |
SELECT team FROM table_27383390_2 WHERE head_coach = "Ali Daei" | Which team has Ali Daei as head coach? | CREATE TABLE table_27383390_2 (team VARCHAR, head_coach VARCHAR) |
SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania" | What is the date of the match in Vilnius, Lithuania? | CREATE TABLE table_name_60 (
date VARCHAR,
location VARCHAR
) |
SELECT week_4 FROM table_name_8 WHERE week_5 = "[month ended]" AND week_2 = "april ireland" | Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland? | CREATE TABLE table_name_8 (week_4 VARCHAR, week_5 VARCHAR, week_2 VARCHAR) |
SELECT kit_maker FROM table_27383390_2 WHERE team = "Foolad" | What is the kit maker for team foolad? | CREATE TABLE table_27383390_2 (kit_maker VARCHAR, team VARCHAR) |
SELECT DISTINCT aircraft_code FROM aircraft WHERE capacity = (SELECT MIN(AIRCRAFTalias1.capacity) FROM aircraft AS AIRCRAFTalias1 WHERE AIRCRAFTalias1.capacity > ALL (SELECT DISTINCT AIRCRAFTalias2.capacity FROM aircraft AS AIRCRAFTalias2 WHERE AIRCRAFTalias1.propulsion = 'TURBOPROP')) AND capacity > ALL (SELECT DISTIN... | what 's the next smallest plane after a TURBOPROP | CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
tr... |
SELECT week_3 FROM table_name_64 WHERE week_2 = "nikki fiction" | Who is week 3 if week 2 is Nikki Fiction? | CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR) |
SELECT outgoing_head_coach FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi" | Who is the outgoing head coach when the incoming head coach is abdollah veysi? | CREATE TABLE table_27383390_4 (outgoing_head_coach VARCHAR, incoming_head_coach VARCHAR) |
SELECT AVG(week) FROM table_name_94 WHERE record = "0–1" | What week that shows a game record of 0 1? | CREATE TABLE table_name_94 (
week INTEGER,
record VARCHAR
) |
SELECT week_1 FROM table_name_3 WHERE week_3 = "natasha budhi" | Who is week 1 if week 3 is Natasha Budhi? | CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR) |
SELECT date_of_appointment FROM table_27383390_4 WHERE position_in_table = 16 | When is the date of appointment when the position in table is 16? | CREATE TABLE table_27383390_4 (date_of_appointment VARCHAR, position_in_table VARCHAR) |
SELECT "Semifinalists" FROM table_76481 WHERE "Tournament" = 'rome' | Who were the semifinalists in the Rome tournament? | CREATE TABLE table_76481 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) |
SELECT week_5 FROM table_name_68 WHERE week_2 = "jenna jordan" | Who is week 5 if week 2 is Jenna Jordan? | CREATE TABLE table_name_68 (week_5 VARCHAR, week_2 VARCHAR) |
SELECT COUNT(team) FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi" | How many times is the incoming head coach abdollah veysi? | CREATE TABLE table_27383390_4 (team VARCHAR, incoming_head_coach VARCHAR) |
SELECT "Tie no" FROM table_12333 WHERE "Score" = 'marlow united won 4–2 on penalties' | What is Tie No, when Score is 'Marlow United won 4 2 on penalties'? | CREATE TABLE table_12333 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) |
SELECT week_2 FROM table_name_65 WHERE week_3 = "sara stokes" | Who is week 2 if week 3 is Sara Stokes? | CREATE TABLE table_name_65 (week_2 VARCHAR, week_3 VARCHAR) |
SELECT team FROM table_27383390_4 WHERE date_of_vacancy = "8 Dec 2010" | What is the team with the date of vacancy 8 dec 2010? | CREATE TABLE table_27383390_4 (team VARCHAR, date_of_vacancy VARCHAR) |
SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts" | How many people attended the match when Manchester United played against the Hearts? | CREATE TABLE table_name_95 (
attendance INTEGER,
opponents VARCHAR
) |
SELECT week_3 FROM table_name_47 WHERE week_1 = "amanda batt" | Who is week 3 if week 1 is Amanda Batt? | CREATE TABLE table_name_47 (week_3 VARCHAR, week_1 VARCHAR) |
SELECT manner_of_departure FROM table_27383390_4 WHERE incoming_head_coach = "Mohammad Khakpour" | What is the manner of departure when the incoming head coach is mohammad khakpour? | CREATE TABLE table_27383390_4 (manner_of_departure VARCHAR, incoming_head_coach VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "HAIT" | find the number of patients who prefer haitian language. | 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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... |
SELECT AVG(bronze) FROM table_name_29 WHERE total < 1 | What average bronze has a total less than 1? | CREATE TABLE table_name_29 (bronze INTEGER, total INTEGER) |
SELECT original_air_date FROM table_27389024_2 WHERE written_by = "Rama Stagner" | What is the original air date of the episode that was written by Rama Stagner? | CREATE TABLE table_27389024_2 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT year FROM table_name_16 WHERE engine = "ford" AND pts = 13 | What year had a Ford engine and 13 points? | CREATE TABLE table_name_16 (
year VARCHAR,
engine VARCHAR,
pts VARCHAR
) |
SELECT AVG(gold) FROM table_name_63 WHERE nation = "china (chn)" AND bronze > 1 | What average gold has China (chn) as the nation with a bronze greater than 1? | CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT MAX(pos) FROM table_27396005_2 WHERE car = 19 | For the #19 car, what was their finish position? | CREATE TABLE table_27396005_2 (pos INTEGER, car VARCHAR) |
SELECT SUM(year) FROM table_name_49 WHERE entrant = "connaught engineering" AND points < 0 | Name the sum of year for connaught engineering and points less than 0 | CREATE TABLE table_name_49 (
year INTEGER,
entrant VARCHAR,
points VARCHAR
) |
SELECT MAX(gold) FROM table_name_96 WHERE bronze > 4 | Which is the highest gold that has a bronze greater than 4? | CREATE TABLE table_name_96 (gold INTEGER, bronze INTEGER) |
SELECT COUNT(constructor) FROM table_27396005_2 WHERE grid = 13 | How many constructors had a grid of 13? | CREATE TABLE table_27396005_2 (constructor VARCHAR, grid VARCHAR) |
SELECT stu_gpa, stu_phone, stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5 | What is the first name, gpa and phone number of the top 5 students with highest gpa? | CREATE TABLE student (
stu_gpa VARCHAR,
stu_phone VARCHAR,
stu_fname VARCHAR
) |
SELECT date FROM table_name_84 WHERE against < 32 AND opposing_teams = "australia" | What date has fewer than 32 against and the opposing team of Australia? | CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR) |
SELECT MAX(pos) FROM table_27396005_2 WHERE constructor = "Joe Gibbs Racing" AND driver = "Denny Hamlin" | What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin? | CREATE TABLE table_27396005_2 (pos INTEGER, constructor VARCHAR, driver VARCHAR) |
SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings | Bar chart x axis booking end date y axis the number of booking end date | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Guests (
gue... |
SELECT AVG(against) FROM table_name_64 WHERE status = "test match" | What is the average against for a test match? | CREATE TABLE table_name_64 (against INTEGER, status VARCHAR) |
SELECT title FROM table_27397948_2 WHERE no_in_series = 57 | List all titles with a 57 series number. | CREATE TABLE table_27397948_2 (title VARCHAR, no_in_series VARCHAR) |
SELECT MAX("Overall") FROM table_4598 WHERE "College" = 'kentucky state' | What is the highest overall number for a player from Kentucky State? | CREATE TABLE table_4598 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
) |
SELECT venue FROM table_name_90 WHERE against > 9 AND status = "second test" | Which venue has more than 9 against and a status of second test? | CREATE TABLE table_name_90 (venue VARCHAR, against VARCHAR, status VARCHAR) |
SELECT MAX(no_in_season) FROM table_27397948_2 WHERE no_in_series = 47 | What's the highest season number with a series number of 47? | CREATE TABLE table_27397948_2 (no_in_season INTEGER, no_in_series VARCHAR) |
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'acute pain due to trauma')) AND DATETIME(cost.chargetime) <= DA... | what is the minimum hospital cost for a patient suffering from acute pain due to trauma until 2 years ago? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
... |
SELECT status FROM table_name_52 WHERE against = 35 | Which status has an against of 35? | CREATE TABLE table_name_52 (status VARCHAR, against VARCHAR) |
SELECT written_by FROM table_27397948_2 WHERE no_in_season = 7 | Who was the writer for season episode 7? | CREATE TABLE table_27397948_2 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT SUM(laps) FROM table_name_33 WHERE bike = "honda cbr1000rr" AND time = "+16.569" | What is the sum of laps of the honda cbr1000rr bike, which has a time of +16.569? | CREATE TABLE table_name_33 (
laps INTEGER,
bike VARCHAR,
time VARCHAR
) |
SELECT music FROM table_name_64 WHERE dance = "modern" | What was the music for the modern dance? | CREATE TABLE table_name_64 (music VARCHAR, dance VARCHAR) |
SELECT directed_by FROM table_27401228_1 WHERE us_viewers__million_ = "5.86" | Name who directed when the viewers is 5.86 | CREATE TABLE table_27401228_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT PostId AS "post_link", CreationDate AS "entering_the_list_on" FROM PostHistory WHERE PostHistoryTypeId = 52 ORDER BY CreationDate DESC LIMIT 100 | Most recent 100 HNQ (Hot Network Questions). | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number... |
SELECT place FROM table_name_29 WHERE dance = "tango" AND points_jury = "24 (7,5,6,6)" | What was the place for the tango dance when the points was jury of 24 (7,5,6,6)? | CREATE TABLE table_name_29 (place VARCHAR, dance VARCHAR, points_jury VARCHAR) |
SELECT location FROM table_27409644_1 WHERE club = "Lootos Põlva" | Where is lootos põlva from? | CREATE TABLE table_27409644_1 (location VARCHAR, club VARCHAR) |
SELECT "In service" FROM table_31638 WHERE "Versions" = 't-260 eu' | How many T-260 EU aircrafts are currently in service? | CREATE TABLE table_31638 (
"Aircraft" text,
"Origin" text,
"Type" text,
"Versions" text,
"In service" text
) |
SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0 | What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? | CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR) |
SELECT manager FROM table_27409644_1 WHERE club = "Lootos Põlva" | Who is the manager for lootos põlva? | CREATE TABLE table_27409644_1 (manager VARCHAR, club VARCHAR) |
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_... | When Manuel Simon took ASIANLAN 551 , who taught the class ? | CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_seme... |
SELECT player FROM table_name_90 WHERE total_goals > 1 AND qualifying_goals < 3 | Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3? | CREATE TABLE table_name_90 (player VARCHAR, total_goals VARCHAR, qualifying_goals VARCHAR) |
SELECT location FROM table_27409644_1 WHERE ground = "Lootospark" | Where is lootospark from? | CREATE TABLE table_27409644_1 (location VARCHAR, ground VARCHAR) |
SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY cName DESC | Compare the smallest enrollment of schools in each state using a bar chart, and order cName in desc order. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) |
SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3 | What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3? | CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR) |
SELECT manager FROM table_27409644_1 WHERE club = "Pärnu" | Who is the pärnu manager? | CREATE TABLE table_27409644_1 (manager VARCHAR, club VARCHAR) |
SELECT "Station" FROM table_31457 WHERE "Metlink code" = 'MATA' | what is the name of the station where the metlink code is mata? | CREATE TABLE table_31457 (
"Station" text,
"Metlink code" text,
"Line(s)" text,
"Service(s)" text,
"Serves" text,
"km from Wellington" text,
"Fare zone(s)" text,
"Opened" text
) |
SELECT AVG(finals_goals) FROM table_name_40 WHERE total_goals < 1 | What is the Average Finals Goals if the Total Goals is less than 1? | CREATE TABLE table_name_40 (finals_goals INTEGER, total_goals INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.