answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT home_team FROM table_name_71 WHERE venue = "mcg"
I want to know the home team for mcg venue
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(district) FROM table_17503169_1 WHERE republican = "Bob Goodlatte"
How many districts had republican Bob Goodlatte as a candidate?
CREATE TABLE table_17503169_1 (district VARCHAR, republican VARCHAR)
SELECT high_points FROM table_name_25 WHERE game > 2 AND date = "april 29"
On April 29, with a game larger than 2, what is the high points?
CREATE TABLE table_name_25 ( high_points VARCHAR, game VARCHAR, date VARCHAR )
SELECT moving_to FROM table_name_34 WHERE name = "konchesky"
Where did Konchesky move to?
CREATE TABLE table_name_34 (moving_to VARCHAR, name VARCHAR)
SELECT democratic FROM table_17503169_1 WHERE republican = "Frank Wolf"
Who was the democratic candidate when the republican was frank wolf?
CREATE TABLE table_17503169_1 (democratic VARCHAR, republican VARCHAR)
SELECT T2.protein_name, T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id
Show the protein name and the institution name.
CREATE TABLE protein ( common_name text, protein_name text, divergence_from_human_lineage number, accession_number text, sequence_length number, sequence_identity_to_human_protein text, institution_id text ) CREATE TABLE institution ( institution_id text, institution text, locat...
SELECT MIN(crowd) FROM table_name_94 WHERE home_team = "essendon"
Who is Essendon's home team?
CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(won) FROM table_17510803_2 WHERE points_against = "410"
How many won when points against is 410?
CREATE TABLE table_17510803_2 (won VARCHAR, points_against VARCHAR)
SELECT "Ceased to be Duchess" FROM table_6079 WHERE "Birth" = '9 october 1574'
Which duchess was born on 9 october 1574?
CREATE TABLE table_6079 ( "Image" text, "Father" text, "Birth" text, "Ceased to be Duchess" text, "Death" text, "Husband" text )
SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne"
What is the away team score for North Melbourne's home team?
CREATE TABLE table_name_5 (away_team VARCHAR)
SELECT bonus_points FROM table_17510803_2 WHERE points_for = "385"
How many bonus points are there when points for is 385?
CREATE TABLE table_17510803_2 (bonus_points VARCHAR, points_for VARCHAR)
SELECT engine FROM table_name_50 WHERE entrant = "garvey team lotus"
What engine does Garvey Team Lotus use?
CREATE TABLE table_name_50 ( engine VARCHAR, entrant VARCHAR )
SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong"
What is Geelong's home team score?
CREATE TABLE table_name_89 (home_team VARCHAR)
SELECT COUNT(club) FROM table_17510803_2 WHERE points = "62"
How many clubs have 62 points?
CREATE TABLE table_17510803_2 (club VARCHAR, points VARCHAR)
SELECT "Score" FROM table_79661 WHERE "Date" = 'september 24, 2006'
What is the score of the match on September 24, 2006?
CREATE TABLE table_79661 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in final" text, "Score" text, "Prize Money" text )
SELECT home_team AS score FROM table_name_27 WHERE home_team = "st kilda"
What is the home team score for St Kilda's home team?
CREATE TABLE table_name_27 (home_team VARCHAR)
SELECT bonus_points FROM table_17510803_2 WHERE won = "5"
How many bonus points were won by 5?
CREATE TABLE table_17510803_2 (bonus_points VARCHAR, won VARCHAR)
SELECT chassis_code FROM table_name_63 WHERE power = "ps (kw; hp) @ 4200" AND model = "200d"
What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?
CREATE TABLE table_name_63 ( chassis_code VARCHAR, power VARCHAR, model VARCHAR )
SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16
Who was #16 rank constructor with a grid of more than 1?
CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, rank VARCHAR)
SELECT played FROM table_17510803_2 WHERE points_for = "362"
How many have been played for 362 points?
CREATE TABLE table_17510803_2 (played VARCHAR, points_for VARCHAR)
SELECT date_address_to, COUNT(date_address_to) FROM Student_Addresses ORDER BY monthly_rental DESC
Draw a bar chart about the distribution of date_address_to and the amount of date_address_to bin date_address_to by weekday.
CREATE TABLE Students_in_Detention ( student_id INTEGER, detention_id INTEGER, incident_id INTEGER ) CREATE TABLE Teachers ( teacher_id INTEGER, address_id INTEGER, first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), gender VARCHAR(1), cell_mobile_number VARC...
SELECT constructor FROM table_name_12 WHERE rank > 10 AND driver = "joe james"
Who constructed Joe James car when his rank was more than 10?
CREATE TABLE table_name_12 (constructor VARCHAR, rank VARCHAR, driver VARCHAR)
SELECT points_against FROM table_17510803_2 WHERE lost = "13"
How many points against have a lose of 13?
CREATE TABLE table_17510803_2 (points_against VARCHAR, lost VARCHAR)
SELECT "Station" FROM table_1232 WHERE "Station users 2006\u201307" = '183000'
What stations had 183000 users in 2006-2007?
CREATE TABLE table_1232 ( "Station" text, "Year opened" text, "Metropolitan borough [c ]" text, "Zone" real, "Servedby Route maps:- [ dead link ] [ dead link ]" text, "Station users 2006\u201307" real, "Station users 2007\u201308" real )
SELECT MIN(rank) FROM table_name_78 WHERE laps > 182 AND qual > 134.14 AND time_retired = "+14:21.72" AND grid < 3
What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72?
CREATE TABLE table_name_78 (rank INTEGER, grid VARCHAR, time_retired VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT MAX(level) FROM table_1751142_2
What is the highest possible level?
CREATE TABLE table_1751142_2 (level INTEGER)
SELECT TagName, COUNT(CASE WHEN VoteTypeId = 2 THEN 1 END) AS UpVotes, COUNT(CASE WHEN VoteTypeId = 3 THEN 1 END) AS DownVotes, SUM(CASE WHEN VoteTypeId = 2 THEN 1 WHEN VoteTypeId = 3 THEN -1 END) AS NetVotes, COUNT(*) AS TotalVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.Par...
How many upvotes, downvotes, net votes and total votes do I have for each tag?.
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 COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
How many laps did Chuck Stevenson have with a grid of less than 11?
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT shuttle_time__seconds_ FROM table_1751142_2 WHERE speed__km_h_ = "15.5"
What is the shuttle time for the level where the speed is 15.5 km/h?
CREATE TABLE table_1751142_2 (shuttle_time__seconds_ VARCHAR, speed__km_h_ VARCHAR)
SELECT T1.service_type_description FROM ref_service_types AS T1 JOIN services AS T2 ON T1.service_type_code = T2.service_type_code WHERE T2.product_price > 100
What are the descriptions of the service types with product price above 100?
CREATE TABLE performers_in_bookings ( order_id number, performer_id number ) CREATE TABLE bookings_services ( order_id number, product_id number ) CREATE TABLE order_items ( order_item_id number, order_id number, product_id number, order_quantity text, other_item_details text ) CR...
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"
Which Week has an Opponent of san francisco 49ers?
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
SELECT MIN(shuttles) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.55"
What is the fewest number of shuttles where the shuttle time is 6.55 seconds?
CREATE TABLE table_1751142_2 (shuttles INTEGER, shuttle_time__seconds_ VARCHAR)
SELECT AVG("Total") FROM table_51931 WHERE "Tournament" = '3'
What is the total on average for teams with 3 tournaments?
CREATE TABLE table_51931 ( "Team" text, "Seasons" text, "Regular season" text, "Tournament" real, "Total" real )
SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = "145.0" AND bodyweight > 76.22
What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22?
CREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT MIN(distance__m_) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.86"
What is the distance (in meters) when the shuttle time is 6.86 seconds?
CREATE TABLE table_1751142_2 (distance__m_ INTEGER, shuttle_time__seconds_ VARCHAR)
SELECT ties FROM table_name_8 WHERE division = "bafl division two south"
What are the ties for division of bafl division two south?
CREATE TABLE table_name_8 ( ties VARCHAR, division VARCHAR )
SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18
What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18?
CREATE TABLE table_name_82 (clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR)
SELECT MAX(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Costa Rica"
How many 3rd ru does Costa Rica have?
CREATE TABLE table_17522854_6 (country VARCHAR)
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
CREATE TABLE table_224840_3 ( date_of_successors_formal_installation VARCHAR, successor VARCHAR )
SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT COUNT(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Canada"
How many 3rd ru does Canada have?
CREATE TABLE table_17522854_6 (country VARCHAR)
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4718) AND microbiologyevents.spec_type_desc = 'aspirate' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIM...
have there been any organism found during the first aspirate microbiology test of patient 4718 until 3 years ago?
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE c...
SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–"
What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?
CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR)
SELECT MIN(miss_united_continent) FROM table_17522854_6
What is the least number of miss united continents?
CREATE TABLE table_17522854_6 (miss_united_continent INTEGER)
SELECT "Away team" FROM table_11517 WHERE "Crowd" > '11,327' AND "Home team score" = '13.17 (95)'
In the game where the crowd was 11,327 and the hoem team scored 13.17 (95) How much did the away team score?
CREATE TABLE table_11517 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MAX(year) FROM table_name_17 WHERE result = "won"
What was the latest year that resulted in won?
CREATE TABLE table_name_17 (year INTEGER, result VARCHAR)
SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = "September 11, 2008"
How many different lead margins were stated in the poll administered on September 11, 2008?
CREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)
SELECT COUNT(high_rebounds) FROM table_17103729_8 WHERE score = "64-74"
Name the high rebounds for score of 64-74
CREATE TABLE table_17103729_8 ( high_rebounds VARCHAR, score VARCHAR )
SELECT position FROM table_name_35 WHERE pick = 50
Which position had a pick of 50?
CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR)
SELECT common_name FROM table_175442_1 WHERE scientific_name = "Rhampholeon spectrum"
Name the common name for rhampholeon spectrum
CREATE TABLE table_175442_1 (common_name VARCHAR, scientific_name VARCHAR)
SELECT SUM("interview") FROM table_203_523
how many total points were scored in the interview round between all states ?
CREATE TABLE table_203_523 ( id number, "state" text, "swimsuit" number, "interview" number, "evening gown" number, "average" number, "finalists" number )
SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008"
Which team had a 2008-3 2008 draft?
CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR)
SELECT scientific_name FROM table_175442_1 WHERE common_name = "Veiled chameleon"
Name the scientific name for veiled chameleon
CREATE TABLE table_175442_1 (scientific_name VARCHAR, common_name VARCHAR)
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
what was the top five most common specimen tests that followed within 2 months for those who had been diagnosed with mitral/aortic val insuff this year?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_co...
SELECT AVG(pick) FROM table_name_33 WHERE round > 2
What is the average pick after Round 2?
CREATE TABLE table_name_33 (pick INTEGER, round INTEGER)
SELECT common_name FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis"
Name the common name for furcifer pardalis
CREATE TABLE table_175442_1 (common_name VARCHAR, scientific_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Hip joint replacement"
what is the number of patients whose gender is m and diagnoses long title is hip joint replacement?
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 ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text,...
SELECT date FROM table_name_15 WHERE result = "loss" AND competition = "europe/africa group i, round robin" AND location = "murcia (esp)" AND year > 1998
What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998?
CREATE TABLE table_name_15 (date VARCHAR, year VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR)
SELECT COUNT(color) FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis"
Name the number of color for furcifer pardalis
CREATE TABLE table_175442_1 (color VARCHAR, scientific_name VARCHAR)
SELECT SUM(loses) FROM table_name_18 WHERE year > 1972 AND competition = "nswrfl" AND draws = 0 AND wins = 16
What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?
CREATE TABLE table_name_18 ( loses INTEGER, wins VARCHAR, draws VARCHAR, year VARCHAR, competition VARCHAR )
SELECT result FROM table_name_23 WHERE competition = "europe/africa group i, play-off"
What is the result of the Europe/Africa Group I, play-off competition?
CREATE TABLE table_name_23 (result VARCHAR, competition VARCHAR)
SELECT COUNT(international_freight) FROM table_1754531_4 WHERE domestic_mail = 260
Name the number of international frieghts for domestic mail of 260
CREATE TABLE table_1754531_4 (international_freight VARCHAR, domestic_mail VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "BASE" AND lab.label = "Calculated Thyroxine (T4) Index"
count the number of patients whose drug type is base and lab test name is calculated thyroxine (t4) index?.
CREATE TABLE procedures ( 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 prescription...
SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"
What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?
CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR)
SELECT COUNT(domestic_mail) FROM table_1754531_4 WHERE total_freight_and_mail = 7853
Name the total number of domestic mail for 7853 for total frieght and mail
CREATE TABLE table_1754531_4 (domestic_mail VARCHAR, total_freight_and_mail VARCHAR)
SELECT COUNT("miss northern ireland") FROM table_203_727 WHERE "hometown" = 'belfast'
what is the total number of miss northern irelands that were from belfast ?
CREATE TABLE table_203_727 ( id number, "year" number, "miss northern ireland" text, "hometown" text, "placement at miss world" text, "notes" text )
SELECT position FROM table_name_48 WHERE school = "clemson"
What position did the person from Clemson school fill?
CREATE TABLE table_name_48 (position VARCHAR, school VARCHAR)
SELECT COUNT(domestic_freight) FROM table_1754531_4 WHERE international_mail > 1.0 AND domestic_mail = 260
Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260
CREATE TABLE table_1754531_4 (domestic_freight VARCHAR, international_mail VARCHAR, domestic_mail VARCHAR)
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24894 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND microbiologyevents.spec_type_desc = 'blood culture (post-mort...
what was the name of the organism found in patient 24894's first blood culture (post-mortem) test, which took place in their last hospital encounter?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE...
SELECT MAX(pick) FROM table_name_25 WHERE round = "round 4" AND player = "rudy harris"
What was Rudy Harris' pick number in round 4?
CREATE TABLE table_name_25 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT MAX(others_number) FROM table_1756284_1
What was the highest vote for others?
CREATE TABLE table_1756284_1 (others_number INTEGER)
SELECT "album" FROM table_204_689 WHERE "title" = '"i want you to know"'
what album had the singles i want you to know and again on them ?
CREATE TABLE table_204_689 ( id number, "year" number, "title" text, "album" text, "uk" number, "b-sides" text )
SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker"
What was the pick number for the kicker in round 8?
CREATE TABLE table_name_7 (pick VARCHAR, round VARCHAR, position VARCHAR)
SELECT kerry_percentage FROM table_1756284_1 WHERE kerry_number = 199060
When Kerry# was 199060, what was the percentage?
CREATE TABLE table_1756284_1 (kerry_percentage VARCHAR, kerry_number VARCHAR)
SELECT "wrestler:" FROM table_204_684 ORDER BY "date:" DESC LIMIT 1
who is the last wrestler to hold the title ?
CREATE TABLE table_204_684 ( id number, "wrestler:" text, "times:" number, "date:" text, "location:" text, "notes:" text )
SELECT result FROM table_name_49 WHERE year = 2013
What is the result from 2013?
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR)
SELECT MAX(bush_number) FROM table_1756284_1
What was the highest vote number for Bush?
CREATE TABLE table_1756284_1 (bush_number INTEGER)
SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instr...
Who is teaching ULCS classes next Winter ?
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, countr...
SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs"
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?
CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR)
SELECT COUnT AS transfer_window FROM table_17596418_4 WHERE moving_from = "Crystal palace"
How many transfer windows coming from Crystal Palace?
CREATE TABLE table_17596418_4 (COUnT VARCHAR, moving_from VARCHAR)
SELECT "Home" FROM table_58955 WHERE "Season" = '1948-49'
For the 1948-49 season, what was the At Home record?
CREATE TABLE table_58955 ( "Season" text, "League" text, "Teams" text, "Home" text, "Away" text )
SELECT result FROM table_name_83 WHERE western_champion = "sacramento monarchs" AND eastern_champion = "connecticut sun"
What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?
CREATE TABLE table_name_83 (result VARCHAR, western_champion VARCHAR, eastern_champion VARCHAR)
SELECT country FROM table_17596418_4 WHERE p = "GK"
What country has a P of GK?
CREATE TABLE table_17596418_4 (country VARCHAR, p VARCHAR)
SELECT EMAIL, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of email and employee_id , display in asc by the y-axis.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JO...
SELECT nominee FROM table_name_96 WHERE category = "best lead actress"
Who is the nominee for Best Lead Actress?
CREATE TABLE table_name_96 (nominee VARCHAR, category VARCHAR)
SELECT p FROM table_17596418_4 WHERE moving_from = "Everton"
What is the P for the player moving from Everton?
CREATE TABLE table_17596418_4 (p VARCHAR, moving_from VARCHAR)
SELECT game FROM table_name_33 WHERE platform_s_ = "playstation 3" AND genre = "platform game"
What game has a platform(s) of playstation 3, when the genre is platform game?
CREATE TABLE table_name_33 ( game VARCHAR, platform_s_ VARCHAR, genre VARCHAR )
SELECT category FROM table_name_81 WHERE nominee = "carmen salinas"
In what category is Carmen Salinas nominated?
CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR)
SELECT competition FROM table_17594659_1 WHERE opposition = "Panathinaikos"
Name the competition of panathinaikos
CREATE TABLE table_17594659_1 (competition VARCHAR, opposition VARCHAR)
SELECT AVG("Grid") FROM table_78506 WHERE "Laps" < '3'
What is the average grid for the competitiors who had laps smaller than 3?
CREATE TABLE table_78506 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress"
What year was there a category of Best Supporting Actress?
CREATE TABLE table_name_8 (year INTEGER, category VARCHAR)
SELECT viewers__in_millions_ FROM table_175980_2 WHERE ranking = "#51" AND timeslot = "Tuesday 9:00 p.m."
What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?
CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, ranking VARCHAR, timeslot VARCHAR)
SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland"
What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?
CREATE TABLE table_name_28 ( year VARCHAR, result VARCHAR, venue VARCHAR )
SELECT londonborough FROM table_name_15 WHERE dialcode = "01992"
What Londongborough has a Dialcode of 01992?
CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR)
SELECT finale FROM table_175980_2 WHERE timeslot = "Tuesday 9:30 p.m."
What finales took place in the Tuesday 9:30 p.m. timeslot?
CREATE TABLE table_175980_2 (finale VARCHAR, timeslot VARCHAR)
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'control of epistaxis nos') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3712) ORDE...
when did patient 3712 receive control of epistaxis nos last time?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABL...
SELECT dialcode FROM table_name_62 WHERE location = "whitechapel"
What is the Dialcode of whitechapel?
CREATE TABLE table_name_62 (dialcode VARCHAR, location VARCHAR)
SELECT premiere FROM table_175980_2 WHERE finale = "May 25, 2004"
What premieres had a finale on May 25, 2004?
CREATE TABLE table_175980_2 (premiere VARCHAR, finale VARCHAR)
SELECT "Date" FROM table_69739 WHERE "Series" = '1-4'
What was the date of the game in which the series was 1-4?
CREATE TABLE table_69739 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Series" text )
SELECT postcodedistrict FROM table_name_76 WHERE location = "eden park"
What is the name of the Post code district that is in Eden Park?
CREATE TABLE table_name_76 (postcodedistrict VARCHAR, location VARCHAR)