answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT AVG(crowd) FROM table_name_71 WHERE home_team = "north melbourne" | How many people attended the North Melbourne game? | CREATE TABLE table_name_71 (crowd INTEGER, home_team VARCHAR) |
SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE viewers__millions_ = "9.38" | what is the total number of rank where viewers is 9.38? | CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%GREEKMOD%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | If I want to declare a major in GREEKMOD , what classes do I need to take ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course (
c... |
SELECT venue FROM table_name_9 WHERE away_team = "carlton" | Where did Carlton play? | CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) |
SELECT destination FROM table_1569516_1 WHERE service_pattern = "Sydenham then fast to Norwood Junction" | Where is the service pattern sydenham then fast to norwood junction? | CREATE TABLE table_1569516_1 (destination VARCHAR, service_pattern VARCHAR) |
SELECT department_id, AVG(salary) FROM employees WHERE commission_pct <> "null" GROUP BY department_id | display the average salary of employees for each department who gets a commission percentage. | CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE regions (
region_id number,
region_name text
)
... |
SELECT home_team FROM table_name_95 WHERE venue = "vfl park" | Which team played at VFL Park? | CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(platform) FROM table_1569516_1 WHERE operator = "Southern" AND service_pattern = "All stations via Clapham Junction" | How many platforms have a southern opertator and the pattern is all stations via clapham junction? | CREATE TABLE table_1569516_1 (platform VARCHAR, operator VARCHAR, service_pattern VARCHAR) |
SELECT date_of_appointment FROM table_name_69 WHERE outgoing_manager = "giray bulak" | What is Date of Appointment, when Outgoing Manager is 'Giray Bulak'? | CREATE TABLE table_name_69 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
) |
SELECT player FROM table_name_83 WHERE college = "arizona" | Which player has a College of arizona? | CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR) |
SELECT frequency__per_hour_ FROM table_1569516_1 WHERE destination = "London Bridge" | When London Bridge is the destination, what is the frequency? | CREATE TABLE table_1569516_1 (frequency__per_hour_ VARCHAR, destination VARCHAR) |
SELECT MAX(series__number) FROM table_25800134_1 WHERE airdate = "February 16, 1957" | What is largest series number for the episode that aired February 16, 1957? | CREATE TABLE table_25800134_1 (
series__number INTEGER,
airdate VARCHAR
) |
SELECT school FROM table_name_39 WHERE hometown = "phoenix, az" | Which school has a Hometown of phoenix, az? | CREATE TABLE table_name_39 (school VARCHAR, hometown VARCHAR) |
SELECT COUNT(line) FROM table_1569516_1 WHERE destination = "London Bridge" | When London Bridge is the destination, how many lines are there? | CREATE TABLE table_1569516_1 (line VARCHAR, destination VARCHAR) |
SELECT MIN("Other") FROM table_15724 WHERE "Total" < '14' AND "League" = '2' AND "FA Cup" > '0' AND "League Cup" < '0' | Name the least other for league cup less than 0, FA cup more than 0 and league of 2 with total less than 14 | CREATE TABLE table_15724 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
) |
SELECT nba_draft FROM table_name_57 WHERE school = "huntington high school" | Which NBA draft has a School of huntington high school? | CREATE TABLE table_name_57 (nba_draft VARCHAR, school VARCHAR) |
SELECT playoffs FROM table_1570003_2 WHERE year = 1998 | What was the playoff advancement during the year 1998? | CREATE TABLE table_1570003_2 (playoffs VARCHAR, year VARCHAR) |
SELECT to_par FROM table_name_26 WHERE place = "t10" AND score = 72 - 74 - 71 - 69 = 286 | what is the to par when the place is t10 and the score is 72-74-71-69=286? | CREATE TABLE table_name_26 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
) |
SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high school" | Which NBA draft has a School of st. mary's high school? | CREATE TABLE table_name_91 (nba_draft VARCHAR, school VARCHAR) |
SELECT open_cup FROM table_1570003_2 WHERE year = 2003 | During 2003 what was open cup qualifying status? | CREATE TABLE table_1570003_2 (open_cup VARCHAR, year VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2195" | how many married patients were admitted to hospital before 2195? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... |
SELECT school FROM table_name_6 WHERE player = "donte greene" | Which school has a Player of donte greene? | CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR) |
SELECT MAX(year) FROM table_1570003_2 WHERE open_cup = "2nd Round" | What is the most recent year where team made it to 2nd round of the Open Cup? | CREATE TABLE table_1570003_2 (year INTEGER, open_cup VARCHAR) |
SELECT record FROM table_name_59 WHERE opponent = "magomedkhan gamzatkhanov" AND method = "submission" | What record has magomedkhan gamzatkhanov as the opponent, and submission as the method? | CREATE TABLE table_name_59 (
record VARCHAR,
opponent VARCHAR,
method VARCHAR
) |
SELECT MAX(points) FROM table_name_33 WHERE r_magjistari > 12 | For R. Magjistari scores over 12, what is the highest number of points? | CREATE TABLE table_name_33 (points INTEGER, r_magjistari INTEGER) |
SELECT margin_of_victory FROM table_1569625_1 WHERE no = 15 | Name the margin of victory when the number is 15 | CREATE TABLE table_1569625_1 (margin_of_victory VARCHAR, no VARCHAR) |
SELECT * FROM table_train_144 WHERE dementia = 1 AND (moderate_dementia = 1 OR severe_dementia = 1) OR (moca_score < 17 OR mini_mental_state_examination_mmse < 17) | subjects with dementia must have moderate / severe dementia as preferentially defined by a documented moca score of less than 17 , or by mmse score of less than 17, within the last 12 months | CREATE TABLE table_train_144 (
"id" int,
"retinal_dystrophy" bool,
"mini_mental_state_examination_mmse" int,
"memory_box" float,
"body_weight" float,
"neutrophil_count" int,
"moca_score" int,
"severe_dementia" bool,
"dementia" bool,
"macular_degeneration" bool,
"diabetic_reti... |
SELECT AVG(a_krajka) FROM table_name_60 WHERE r_magjistari < 6 AND d_tukiqi = 6 AND rank < 5 | For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score? | CREATE TABLE table_name_60 (a_krajka INTEGER, rank VARCHAR, r_magjistari VARCHAR, d_tukiqi VARCHAR) |
SELECT COUNT(no) FROM table_1569625_1 WHERE runner_s__up = "Howard Clark" | Name the number of numbers for howard clark | CREATE TABLE table_1569625_1 (no VARCHAR, runner_s__up VARCHAR) |
SELECT flight FROM table_name_26 WHERE aircraft = "vickers viscount type 794" | Which flight had an aircraft of vickers viscount type 794? | CREATE TABLE table_name_26 (
flight VARCHAR,
aircraft VARCHAR
) |
SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal" | Where did the Vitória de Setúbal club place in the 2006-2007 season? | CREATE TABLE table_name_13 (club VARCHAR) |
SELECT margin_of_victory FROM table_1569625_1 WHERE tournament = "Algarve Open de Portugal" | Name the margin of victory when tournament is algarve open de portugal | CREATE TABLE table_1569625_1 (margin_of_victory VARCHAR, tournament VARCHAR) |
SELECT COUNT(goals_per_match) FROM table_name_12 WHERE name = "cha bum-kun" | What is Cha Bum-Kun's average number of goals per match? | CREATE TABLE table_name_12 (
goals_per_match VARCHAR,
name VARCHAR
) |
SELECT SUM(long) FROM table_name_12 WHERE yards < 197 AND player = "matt nagy" | Name the sum of Long for yards less than 197 and players of matt nagy | CREATE TABLE table_name_12 (long INTEGER, yards VARCHAR, player VARCHAR) |
SELECT tournament FROM table_1569625_1 WHERE margin_of_victory = "3 strokes" AND winning_score = 71 - 66 - 70 - 67 = 274 | Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274 | CREATE TABLE table_1569625_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT SUM("League Apps") FROM table_32376 WHERE "Cup Goals" > '2' AND "Cup Apps" > '6' | How many league apps in the season with more than 2 cup goals and more than 6 cup apps? | CREATE TABLE table_32376 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
) |
SELECT visitor FROM table_name_26 WHERE home = "tampa bay" | Who was the visitor team in tampa bay? | CREATE TABLE table_name_26 (visitor VARCHAR, home VARCHAR) |
SELECT MAX(runs_conceded) FROM table_15700367_4 | Name the most runs conceded | CREATE TABLE table_15700367_4 (runs_conceded INTEGER) |
SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N' | Which of the classes do n't have lab sessions ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id ... |
SELECT home FROM table_name_55 WHERE record = "32-29-8" | Who had a 32-29-8 record at home? | CREATE TABLE table_name_55 (home VARCHAR, record VARCHAR) |
SELECT wickets FROM table_15700367_4 WHERE overs_bowled = "9" | Name the wickets when overs bowled is 9 | CREATE TABLE table_15700367_4 (wickets VARCHAR, overs_bowled VARCHAR) |
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31260) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '08' | count how many medications patient 31260 has been prescribed in 08/last year. | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid... |
SELECT home FROM table_name_99 WHERE record = "33-30-8" | Who had a 33-30-8 record at home? | CREATE TABLE table_name_99 (home VARCHAR, record VARCHAR) |
SELECT MAX(maidens) FROM table_15700367_4 WHERE er = "5.11" | Name the most maidens when e.r. 5.11 | CREATE TABLE table_15700367_4 (maidens INTEGER, er VARCHAR) |
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Ilisiakos" | What's team #2 in the round where team $1 is Ilisiakos? | CREATE TABLE table_19130829_4 (
team__number2 VARCHAR,
team__number1 VARCHAR
) |
SELECT home_team AS score FROM table_name_15 WHERE away_team = "north melbourne" | What was the home teams score when North Melbourne played as the away team? | CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee" | Name the least runs conceded for brett lee | CREATE TABLE table_15700367_4 (runs_conceded INTEGER, name VARCHAR) |
SELECT COUNT("School") FROM table_17062 WHERE "Player" = 'Mike Jones' | How many schools did Mike Jones attend? | CREATE TABLE table_17062 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) |
SELECT away_team FROM table_name_11 WHERE venue = "windy hill" | Who was the away team at Windy Hill? | CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR) |
SELECT runs_conceded FROM table_15700367_6 WHERE er = "4.96" | How many runs conceded when the earned runs was 4.96? | CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, er VARCHAR) |
SELECT first_name, gender_mf FROM Customers WHERE good_or_bad_customer = 'good' ORDER BY gender_mf | Take the first name of all the good customers as the X-axis and gender of all the good customers as Y-axis in a bar chart, list by the Y in asc. | CREATE TABLE Bookings (
booking_id INTEGER,
customer_id INTEGER,
booking_status_code VARCHAR(10),
returned_damaged_yn VARCHAR(40),
booking_start_date DATETIME,
booking_end_date DATETIME,
count_hired VARCHAR(40),
amount_payable DECIMAL(19,4),
amount_of_discount DECIMAL(19,4),
amou... |
SELECT venue FROM table_name_22 WHERE home_team = "fitzroy" | Where did Fitzroy play as the home team? | CREATE TABLE table_name_22 (venue VARCHAR, home_team VARCHAR) |
SELECT COUNT(runs_conceded) FROM table_15700367_6 WHERE name = "Sanath Jayasuriya" | How many players named sanath jayasuriya? | CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, name VARCHAR) |
SELECT MAX("Position") FROM table_39123 WHERE "Against" = '12' AND "Points" < '11' AND "Drawn" > '2' AND "Played" > '9' | What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played? | CREATE TABLE table_39123 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) |
SELECT away_team FROM table_name_99 WHERE home_team = "south melbourne" | Who was away team at the home game of south melbourne? | CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR) |
SELECT runs_conceded FROM table_15700367_6 WHERE name = "Chaminda Vaas" | How many runs conceded for chaminda vaas? | CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, name VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636')) AND NOT vitalperiodic.sao2 IS NULL AND ... | what was the first time that patient 016-9636 had a minimum sao2 today? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... |
SELECT away_team AS score FROM table_name_26 WHERE home_team = "south melbourne" | What did the away team score when they visited south melbourne? | CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(overs_bowled) FROM table_15700367_6 WHERE name = "Muttiah Muralitharan" | How many overs bowled for muttiah muralitharan? | CREATE TABLE table_15700367_6 (overs_bowled VARCHAR, name VARCHAR) |
SELECT MIN("No. in season") FROM table_2589 WHERE "No. in series" = '84' | What's the season number of the episode with series number 84? | CREATE TABLE table_2589 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) |
SELECT MAX(crowd) FROM table_name_10 WHERE away_team = "north melbourne" | What is the highest crowd with north melbourne as away team? | CREATE TABLE table_name_10 (crowd INTEGER, away_team VARCHAR) |
SELECT er FROM table_15700367_6 WHERE runs_conceded = 368 | What was the ER average for the player that conceded 368 runs? | CREATE TABLE table_15700367_6 (er VARCHAR, runs_conceded VARCHAR) |
SELECT category FROM table_name_14 WHERE year = 1964 | What category was in 1964? | CREATE TABLE table_name_14 (
category VARCHAR,
year VARCHAR
) |
SELECT venue FROM table_name_88 WHERE home_team = "south melbourne" | Which venue has a Home team of south melbourne? | CREATE TABLE table_name_88 (venue VARCHAR, home_team VARCHAR) |
SELECT MIN(wickets) FROM table_15700367_6 WHERE name = "Farveez Maharoof" | What is the lowest number of wickets for farveez maharoof? | CREATE TABLE table_15700367_6 (wickets INTEGER, name VARCHAR) |
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51858) AND prescriptions.drug = 'felodipine' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-12' ORDER BY prescriptions.startdate DESC LIMIT 1 | when did patient 51858 receive his/her last prescription for felodipine since 12/2105? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
... |
SELECT home_team AS score FROM table_name_82 WHERE away_team = "fitzroy" | What home score has an Away team of fitzroy? | CREATE TABLE table_name_82 (home_team VARCHAR, away_team VARCHAR) |
SELECT airdate FROM table_15739098_2 WHERE story = "Hugh Leonard" | What is the airdate when the story is listed as hugh leonard? | CREATE TABLE table_15739098_2 (airdate VARCHAR, story 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, 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_name = 'OAKLAN... | please show me all the flights from DENVER to OAKLAND that are nonstop | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purc... |
SELECT home_team FROM table_name_61 WHERE venue = "corio oval" | Which home team has a Venue of corio oval? | CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR) |
SELECT kansas_state_vs FROM table_15740666_6 WHERE last_meeting = "11/26/1988" | who won the kansas state game on 11/26/1988 | CREATE TABLE table_15740666_6 (kansas_state_vs VARCHAR, last_meeting VARCHAR) |
SELECT aggressive_rider FROM table_25580292_13 WHERE winner = "Luis León Sánchez" | Who was the aggressive rider when the winner was luis le n s nchez? | CREATE TABLE table_25580292_13 (
aggressive_rider VARCHAR,
winner VARCHAR
) |
SELECT home_team FROM table_name_58 WHERE away_team = "carlton" | Which team has an Away team of carlton? | CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(games_played) FROM table_15740666_6 WHERE kansas_state_vs = "DePaul" | how many games has kansas state and depaul played against each other | CREATE TABLE table_15740666_6 (games_played VARCHAR, kansas_state_vs VARCHAR) |
SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-87703')) AND diagnosis.diagnosisname = 'respiratory acidosis'... | what was patient 004-87703 last diagnosis time of respiratory acidosis during this year. | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... |
SELECT date FROM table_name_21 WHERE away_team = "richmond" | Which date has an Away team of richmond? | CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR) |
SELECT current_streak FROM table_15740666_6 WHERE last_meeting = "12/5/1987" | if they played last on 12/5/1987 what is their record | CREATE TABLE table_15740666_6 (current_streak VARCHAR, last_meeting VARCHAR) |
SELECT "Venue" FROM table_58049 WHERE "Home team score" = '12.21 (93)' | Where was the game held when the home team scored 12.21 (93)? | CREATE TABLE table_58049 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = "matanzas" AND population__2005_ < 670427 | How many regions have a capital of matanzas and a 2005 population under 670427? | CREATE TABLE table_name_85 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR) |
SELECT high_points FROM table_15780049_8 WHERE date = "March 7" | Name the high points for march 7 | CREATE TABLE table_15780049_8 (high_points VARCHAR, date VARCHAR) |
SELECT SUM("Rank") FROM table_40680 WHERE "Gold" = '2' AND "Total" > '4' | What is the total of rank when gold is 2 and total is more than 4? | CREATE TABLE table_40680 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = "camagüey" AND population___percentage_ > 7.02 | What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02? | CREATE TABLE table_name_25 (area__km²_ INTEGER, capital VARCHAR, population___percentage_ VARCHAR) |
SELECT date FROM table_15780049_8 WHERE team = "Sacramento" | Name the date for sacramento | CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR) |
SELECT position FROM table_name_7 WHERE height = "188cm" | What is the Position of the player with a Height off 188cm? | CREATE TABLE table_name_7 (
position VARCHAR,
height VARCHAR
) |
SELECT score FROM table_name_76 WHERE attendance > 18 OFFSET 630 | What was the score of the Kings game attended by more than 18,630 people? | CREATE TABLE table_name_76 (score VARCHAR, attendance INTEGER) |
SELECT high_rebounds FROM table_15780049_8 WHERE date = "March 17" | Name the high rebounds for march 17 | CREATE TABLE table_15780049_8 (high_rebounds VARCHAR, date VARCHAR) |
SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur" | What language is spoken after 2007 for the role of urvashi mathur? | CREATE TABLE table_name_56 (
language VARCHAR,
year VARCHAR,
role VARCHAR
) |
SELECT AVG(attendance) FROM table_name_92 WHERE record = "1–5–0" | What was the average attendance for a Kings game when they had a record of 1–5–0? | CREATE TABLE table_name_92 (attendance INTEGER, record VARCHAR) |
SELECT location_attendance FROM table_15780049_8 WHERE team = "Philadelphia" | Name the location attendance for philadelphia | CREATE TABLE table_15780049_8 (location_attendance VARCHAR, team VARCHAR) |
SELECT "Week" FROM table_227 WHERE "Attendance" = '77,098' | what's the week where attendance is 77,098 | CREATE TABLE table_227 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"TV" text,
"Attendance" text,
"Record" text
) |
SELECT team FROM table_name_47 WHERE tournament > 1 AND regular_season = "0" AND total = 2 | What team has over 1 tournament title, 0 in the regular season, and 2 total? | CREATE TABLE table_name_47 (team VARCHAR, total VARCHAR, tournament VARCHAR, regular_season VARCHAR) |
SELECT high_assists FROM table_15780718_8 WHERE game = 59 | Who scored the most assists in game 59? | CREATE TABLE table_15780718_8 (high_assists VARCHAR, game VARCHAR) |
SELECT team_chassis FROM table_name_46 WHERE year > 1987 | Which Team/Chassis has a Year larger than 1987? | CREATE TABLE table_name_46 (
team_chassis VARCHAR,
year INTEGER
) |
SELECT AVG(total) FROM table_name_8 WHERE tournament = 3 | What is the total on average for teams with 3 tournaments? | CREATE TABLE table_name_8 (total INTEGER, tournament VARCHAR) |
SELECT record FROM table_15780718_8 WHERE team = "Boston" | What was the record against Boston? | CREATE TABLE table_15780718_8 (record VARCHAR, team VARCHAR) |
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND microlab.culturesite = 'urine, voided specimen' AND STRF... | what was the name of the organism found on the last urine, voided specimen microbiology test of patient 031-24513 in 03/2104? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutpu... |
SELECT MIN(grid) FROM table_name_21 WHERE laps > 7 AND driver = "rubens barrichello" | what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello? | CREATE TABLE table_name_21 (grid INTEGER, laps VARCHAR, driver VARCHAR) |
SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = "March 19, 2008" | Name the poll winner for march 19, 2008 | CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR) |
SELECT COUNT("2013 Press Freedom Index") FROM table_1416 WHERE "Country" = 'Austria' | How many freedom indices does the country of Austria have? | CREATE TABLE table_1416 (
"Country" text,
"Freedom in the World 2013" text,
"2013 Index of Economic Freedom" text,
"2013 Press Freedom Index" text,
"2012 Democracy Index" text
) |
SELECT grid FROM table_name_5 WHERE laps > 0 AND time_retired = "engine" AND driver = "pedro de la rosa" | what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa? | CREATE TABLE table_name_5 (grid VARCHAR, driver VARCHAR, laps VARCHAR, time_retired VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.