answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT fastest_lap FROM table_name_31 WHERE race = "belgian grand prix" | What was the fastest lap in the Belgian Grand Prix? | CREATE TABLE table_name_31 (fastest_lap VARCHAR, race VARCHAR) |
SELECT MIN(year) FROM table_177273_2 | what is the lowest year represented? | CREATE TABLE table_177273_2 (year INTEGER) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2154" AND prescriptions.drug = "SW" | how many patients whose admission year is less than 2154 and drug name is sw? | 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 home_team FROM table_name_15 WHERE away_team = "hawthorn" | Who was the home team when the away team was Hawthorn? | CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) |
SELECT score FROM table_177273_2 WHERE partner = "Françoise Dürr" | What was the score when Françoise Dürr was partner? | CREATE TABLE table_177273_2 (score VARCHAR, partner VARCHAR) |
SELECT opponent FROM table_name_63 WHERE date = "december 20, 1998" | Which opponent was playing on December 20, 1998? | CREATE TABLE table_name_63 (
opponent VARCHAR,
date VARCHAR
) |
SELECT date FROM table_name_24 WHERE venue = "windy hill" | On what date did the game at Windy Hill take place? | CREATE TABLE table_name_24 (date VARCHAR, venue VARCHAR) |
SELECT outcome FROM table_177273_2 WHERE year = 1975 | What was the outcome in 1975? | CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR) |
SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT... | what were the top five most frequent diagnoses of the patients of age 40s a year before? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... |
SELECT venue FROM table_name_69 WHERE away_team = "hawthorn" | What was the venue when the away team was Hawthorn? | CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR) |
SELECT surface FROM table_177273_2 WHERE score = "6–4, 6–4" | On what surface was the game played with a score of 6–4, 6–4? | CREATE TABLE table_177273_2 (surface VARCHAR, score VARCHAR) |
SELECT "High points" FROM table_47734 WHERE "Score" = 'w 93-85' | Which player was the high points scorer during the game with an end score of W 93-85? | CREATE TABLE table_47734 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) |
SELECT home_team FROM table_name_36 WHERE venue = "windy hill" | What was the home team when the game was at Windy Hill? | CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR) |
SELECT years_of_appearance FROM table_17751942_4 WHERE team = "Prince Albert Raiders" | What is the year of appearance for the Prince Albert Raiders? | CREATE TABLE table_17751942_4 (years_of_appearance VARCHAR, team VARCHAR) |
SELECT opponent FROM table_name_5 WHERE date = "april 29" | Who was the opponent on April 29? | CREATE TABLE table_name_5 (
opponent VARCHAR,
date VARCHAR
) |
SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010 | What position has less than 343 laps in 2010? | CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR) |
SELECT wins FROM table_17751942_4 WHERE team = "Erie Otters" | How many wins do the Erie Otters have? | CREATE TABLE table_17751942_4 (wins VARCHAR, team VARCHAR) |
SELECT "Tournament" FROM table_69926 WHERE "Date" = 'march 27, 2006' | what tournament happened on march 27, 2006? | CREATE TABLE table_69926 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002 | What are panoz motor sports' lowest number of laps before 2002? | CREATE TABLE table_name_68 (laps INTEGER, team VARCHAR, year VARCHAR) |
SELECT final_win__percentage FROM table_17751942_4 WHERE team = "Sault Ste. Marie Greyhounds" | What is the final win percentage of the Sault Ste. Marie Greyhounds? | CREATE TABLE table_17751942_4 (final_win__percentage VARCHAR, team VARCHAR) |
SELECT AVG("Bronze") FROM table_34278 WHERE "Gold" > '1' AND "Total" = '14' AND "Silver" > '3' | Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14 | CREATE TABLE table_34278 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT SUM(game) FROM table_name_61 WHERE high_assists = "paul (9)" | What's the sum of the games that had paul (9) for high assists? | CREATE TABLE table_name_61 (game INTEGER, high_assists VARCHAR) |
SELECT MAX(Semi) - final_losses FROM table_17751942_4 WHERE team = "Kitchener Rangers" | What is the total number of semi-final losses for the Kitchener Rangers? | CREATE TABLE table_17751942_4 (final_losses VARCHAR, Semi INTEGER, team VARCHAR) |
SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = "benson" AND ansi_code < 1759243 | Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243? | CREATE TABLE table_name_13 (
water__sqmi_ INTEGER,
county VARCHAR,
ansi_code VARCHAR
) |
SELECT team FROM table_name_65 WHERE high_points = "west (20)" | What team had a high points of west (20)? | CREATE TABLE table_name_65 (team VARCHAR, high_points VARCHAR) |
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels" | How many wins do the Red Deer Rebels have? | CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR) |
SELECT species_specific FROM table_name_29 WHERE comparative = "no" AND intra_molecular_structure = "no" AND link = "sourcecode" | Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode? | CREATE TABLE table_name_29 (
species_specific VARCHAR,
link VARCHAR,
comparative VARCHAR,
intra_molecular_structure VARCHAR
) |
SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633 | What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? | CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR) |
SELECT record FROM table_17765888_1 WHERE date = "November 26, 1961" | What is the record for November 26, 1961? | CREATE TABLE table_17765888_1 (record VARCHAR, date VARCHAR) |
SELECT home_away FROM table_name_70 WHERE date = "april 27, 2008" | Which Home/Away was on April 27, 2008? | CREATE TABLE table_name_70 (
home_away VARCHAR,
date VARCHAR
) |
SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 5 | What is the time/retired associated with a grid of 5 and under 73 laps? | CREATE TABLE table_name_46 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT game_site FROM table_17765888_1 WHERE opponent = "Dallas Texans" | What was the game site against the Dallas Texans? | CREATE TABLE table_17765888_1 (game_site VARCHAR, opponent VARCHAR) |
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT... | Before CMPLXSYS 281 what courses do I need ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE requirement (
... |
SELECT free FROM table_name_80 WHERE total = 156.67 | What was the free score of the skater with a total of 156.67? | CREATE TABLE table_name_80 (free VARCHAR, total VARCHAR) |
SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "Tom Fleming" | In how many years was Tom Fleming the final television commentator? | CREATE TABLE table_17766232_7 (year_s_ VARCHAR, final_television_commentator VARCHAR) |
SELECT nat FROM table_name_15 WHERE transfer_window = "summer" AND type = "transfer" AND name = "marcell jansen" | Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation? | CREATE TABLE table_name_15 (
nat VARCHAR,
name VARCHAR,
transfer_window VARCHAR,
type VARCHAR
) |
SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35 | What was the average figure score of the skater with a free score under 56.35? | CREATE TABLE table_name_19 (figures INTEGER, free INTEGER) |
SELECT MAX(year_s_) FROM table_17766232_7 WHERE spokesperson = "Colin Berry" | What was the latest year that Colin Berry was the spokesperson? | CREATE TABLE table_17766232_7 (year_s_ INTEGER, spokesperson VARCHAR) |
SELECT "Club" FROM table_36906 WHERE "Head Coach" = 'wojciech kamiński' | Head Coach of wojciech kami ski is what club? | CREATE TABLE table_36906 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text,
"Head Coach" text
) |
SELECT opponent FROM table_name_85 WHERE round = "1" | Which opponent had round 1? | CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR) |
SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray" | Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray? | CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR) |
SELECT COUNT("Points") FROM table_52801 WHERE "Against" = '753' AND "Points Diff" > '-114' | I want the total number of points for against of 753 and points diff more than -114 | CREATE TABLE table_52801 (
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Points Diff" real,
"Points" real
) |
SELECT date FROM table_name_52 WHERE opponent = "dender" AND tournament = "jupiler league" AND ground = "a" | Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a? | CREATE TABLE table_name_52 (date VARCHAR, ground VARCHAR, opponent VARCHAR, tournament VARCHAR) |
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn" | Who was the radio commentator when the final television commentator was John Dunn? | CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR) |
SELECT COUNT(apogee__km_) FROM table_name_74 WHERE alt_name = "ops-8285" AND mass__kg_ > 1500 | How many Apogee sis Ops-8285 with more than 1500 kg? | CREATE TABLE table_name_74 (
apogee__km_ VARCHAR,
alt_name VARCHAR,
mass__kg_ VARCHAR
) |
SELECT ground FROM table_name_17 WHERE round = "33" | Which ground's round was 33? | CREATE TABLE table_name_17 (ground VARCHAR, round VARCHAR) |
SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs" | What is the latest year that the final television commentator was David Jacobs? | CREATE TABLE table_17766232_7 (year_s_ INTEGER, final_television_commentator VARCHAR) |
SELECT "rider" FROM table_204_535 WHERE "grid" = 6 | which is the only rider with number 6 grid on the chart | CREATE TABLE table_204_535 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) |
SELECT competition FROM table_name_68 WHERE final_position___round = "2" | Which competition had a final position/round of 2? | CREATE TABLE table_name_68 (competition VARCHAR, final_position___round VARCHAR) |
SELECT record FROM table_17765264_1 WHERE attendance = 14489 | What was their record when the attendance at the game was 14489? | CREATE TABLE table_17765264_1 (record VARCHAR, attendance VARCHAR) |
SELECT "Score" FROM table_15776 WHERE "Date" = '21 april 2001' | what is the score for the game on 21 april 2001? | CREATE TABLE table_15776 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round" | Which first match had a final position/round in the third qualifying round? | CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR) |
SELECT date FROM table_17765264_1 WHERE game_site = "Cotton Bowl" | When did they play at the Cotton Bowl? | CREATE TABLE table_17765264_1 (date VARCHAR, game_site VARCHAR) |
SELECT game FROM table_23286158_8 WHERE high_rebounds = "Andre Miller , Rudy Fernandez (7)" | Name the game for andre miller , rudy fernandez (7) | CREATE TABLE table_23286158_8 (
game VARCHAR,
high_rebounds VARCHAR
) |
SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6 | What is the lowest number of bronze medals for nations with over 6 total and 2 golds? | CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR) |
SELECT percentage FROM table_177766_1 WHERE abbreviation = "Nor" | What is the percentage of this constellation abbreviated as 'nor'? | CREATE TABLE table_177766_1 (percentage VARCHAR, abbreviation VARCHAR) |
SELECT COUNT(*) FROM table_204_275 WHERE "type of game" <> 'friendly' AND "date" = 2010 | other than friendly games , how many games did serbia play in 2010 ? | CREATE TABLE table_204_275 (
id number,
"date" text,
"city" text,
"opponent" text,
"results" text,
"scorers" text,
"type of game" text
) |
SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2 | What is the total number of silver medals for karate athletes with over 2 golds? | CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR) |
SELECT COUNT(right_ascension__hm_) FROM table_177766_1 WHERE abbreviation = "Oph" | This constellation, abbreviated as 'oph' has how many right ascension (in hm)? | CREATE TABLE table_177766_1 (right_ascension__hm_ VARCHAR, abbreviation VARCHAR) |
SELECT "# of\nparty list votes" FROM table_204_72 WHERE "election year" = 1987 | what was the number of party votes cast in 1987 ? | CREATE TABLE table_204_72 (
id number,
"election year" number,
"# of\nconstituency votes" number,
"# of\nparty list votes" number,
"% of\nparty list votes" number,
"# of\noverall seats won" text,
"+/-" number
) |
SELECT 2009 FROM table_name_20 WHERE 2010 = "1r" AND 2011 = "a" | What is the 2009 value with a 1r in 2010 and A in 2011? | CREATE TABLE table_name_20 (Id VARCHAR) |
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375" | What is the name of this constellation with an area of 245.375 sq. deg.? | CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND days.day_name = 'WEDNESDAY' AND flight.flight_days = days.days_c... | show me flights from DALLAS to SAN FRANCISCO on WEDNESDAY | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... |
SELECT 2009 FROM table_name_79 WHERE 2010 = "a" | What is the 2009 value with a 2010 A value? | CREATE TABLE table_name_79 (Id VARCHAR) |
SELECT COUNT(per) AS centage FROM table_177766_1 WHERE rank = 51 | This constellation with a ranking of 51 has how many percentages on record? | CREATE TABLE table_177766_1 (per VARCHAR, rank VARCHAR) |
SELECT (SELECT "population" FROM table_204_616 WHERE "township" = 'alexandria') > (SELECT "population" FROM table_204_616 WHERE "township" = 'delaware') | does alexandria county have a higher or lower population than delaware county ? | CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
) |
SELECT 2010 FROM table_name_50 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "2r" | What is the 2010 value with A in 2008, A in 2011, and 2r in 2012? | CREATE TABLE table_name_50 (Id VARCHAR) |
SELECT percentage FROM table_177766_1 WHERE area__sqdeg_ = "248.885" | What is the percentage of this constellation with an area of 248.885 sq. deg.? | CREATE TABLE table_177766_1 (percentage VARCHAR, area__sqdeg_ VARCHAR) |
SELECT "TV Time" FROM table_74562 WHERE "Attendance" = '60,894' | Tell me the tv time for attendance of 60,894 | CREATE TABLE table_74562 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) |
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24" | What is the average attendance on april 24? | CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) |
SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r" | Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r | CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR) |
SELECT "Date" FROM table_11636 WHERE "Home team score" = '9.10 (64)' | What date did the home team score 9.10 (64)? | CREATE TABLE table_11636 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT away_team AS score FROM table_name_85 WHERE away_team = "richmond" | What was the score of the away team when Richmond played? | CREATE TABLE table_name_85 (away_team VARCHAR) |
SELECT archive FROM table_1776943_1 WHERE run_time = "24:04" | Name the archive where run time 24:04 | CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401) AND icustays.outtime IS NULL) A... | how many days have elapsed since the first time that patient 4401 had a tpn d13.0 intake on the current intensive care unit visit? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,... |
SELECT constructor FROM table_name_47 WHERE laps = 16 AND grid = 9 | What company was Constructor when there were 16 laps and grid was 9? | CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT game_site FROM table_17781394_1 WHERE date = "November 1, 1964" | On November 1, 1964, where was the game site? | CREATE TABLE table_17781394_1 (game_site VARCHAR, date VARCHAR) |
SELECT COUNT("districts") FROM table_204_739 | how many districts are there in this city ? | CREATE TABLE table_204_739 (
id number,
"districts" text,
"ubigeo" number,
"area\n(km2)" number,
"population" number,
"population density\n(/km2)" number,
"created" text,
"postal\ncode" number
) |
SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 17 | What is the Time/Retired when lotus - ford was constructor and the laps were less than 17? | CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) |
SELECT attendance FROM table_17778417_1 WHERE week = 8 | How many people attended the Week 8 game when Denver played Buffalo? | CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR) |
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) | Find the number of the enrollment date for all the tests that have 'Pass' result, sort in asc by the Y. | CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password... |
SELECT SUM(grid) FROM table_name_25 WHERE time_retired = "engine" AND laps < 9 | What is the number of the grid when there was a Time/Retired of engine and less than 9 laps? | CREATE TABLE table_name_25 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans" | How many times did the Denver Broncos face the Dallas Texans this season? | CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR) |
SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s" | Which yacht name has a Combined elapsed time of 179d 11h 58m 14s? | CREATE TABLE table_name_50 (
yacht_name VARCHAR,
combined_elapsed_time VARCHAR
) |
SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0" | what was the attendance for a home venue and a w 3-0 result? | CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR) |
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13" | What year was the winning race time 1:55:13? | CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR) |
SELECT MAX("Attendance") FROM table_36394 WHERE "Score" = '4 – 5' | How many Attendances have a Score of 4 5? Question 4 | CREATE TABLE table_36394 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) |
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "home" AND result = "w 3-1" | what was the attendance at the home venue with result w 3-1? | CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, result VARCHAR) |
SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = "113.835" | For races with an average speed of 113.835 mph, what are the winning race times? | CREATE TABLE table_17801022_1 (race_time VARCHAR, average_speed__mph_ VARCHAR) |
SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building ORDER BY building | Display a bar chart for how many rooms in each building have a capacity of over 50?, could you list from low to high by the X? | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
se... |
SELECT venue FROM table_name_77 WHERE opponent = "rochdale" | where did rochdale play as opponent? | CREATE TABLE table_name_77 (venue VARCHAR, opponent VARCHAR) |
SELECT manufacturer FROM table_17801022_1 WHERE date = "November 2" | What manufacturer won the race on November 2? | CREATE TABLE table_17801022_1 (manufacturer VARCHAR, date VARCHAR) |
SELECT SUM("total") FROM table_203_314 | what is the total number of medals given ? | CREATE TABLE table_203_314 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT away_team FROM table_name_14 WHERE stadium = "adelaide oval" | Which team was hosted at Adelaide Oval? | CREATE TABLE table_name_14 (away_team VARCHAR, stadium VARCHAR) |
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray" | What date did Jamie McMurray win the race? | CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR) |
SELECT LAST_NAME, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME DESC | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of last_name and department_id , and I want to list in descending by the X please. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... |
SELECT year FROM table_name_29 WHERE report = "not held" | When was a report not held? | CREATE TABLE table_name_29 (year VARCHAR, report VARCHAR) |
SELECT date FROM table_17801022_1 WHERE race_time = "1:55:13" | What was the date of the race with a winning time of 1:55:13? | CREATE TABLE table_17801022_1 (date VARCHAR, race_time VARCHAR) |
SELECT MIN("Last CF") FROM table_60296 WHERE "CF appearances" = '2' AND "Cup wins" = '0' AND "CF wins" < '0' | What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins? | CREATE TABLE table_60296 (
"Team" text,
"CF appearances" real,
"CF wins" real,
"Cup wins" real,
"Last CF" real
) |
SELECT visitor FROM table_name_77 WHERE home = "vancouver" | Who was the visitor when vancouver was at home? | CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.