answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT AVG("Overall") FROM table_76922 WHERE "Pick" < '20' AND "College" = 'north carolina' AND "Round" < '8'
What is the average overall that has a pick less than 20, North Carolina as the college, with a round less than 8?
CREATE TABLE table_76922 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT time_retired FROM table_name_12 WHERE grid = 24
I want the time/retired for grid of 24
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)"
How many dates are associated with a guest 4 being Jim Jeffries (debut)?
CREATE TABLE table_20466963_4 (date VARCHAR, guest_4 VARCHAR)
SELECT "Term expires" FROM table_11789 WHERE "Appointing Governor" = 'tom vilsack' AND "Name" = 'daryl hecht'
What is the expiring term for Daryl Hecht when the appointing governor is Tom Vilsack?
CREATE TABLE table_11789 ( "Name" text, "Appointed/Elected" text, "Term expires" text, "Appointing Governor" text, "Governor's Party Affiliation" text )
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
I want the driver for ferrari who made Laps less than 26 and grids more than 9
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT date FROM table_20466963_4 WHERE presenter = "Johnny Vaughan"
What is the date of the episode in which the presenter is Johnny Vaughan?
CREATE TABLE table_20466963_4 (date VARCHAR, presenter VARCHAR)
SELECT "president" FROM table_203_800 WHERE "president's party" = 'republican' ORDER BY "#" DESC LIMIT 1
who was the last president from the republican party ?
CREATE TABLE table_203_800 ( id number, "#" number, "president" text, "president's party" text, "senate with" number, "senate opposed" number, "house with" number, "house opposed" number, "years served" number, "elections won" number )
SELECT COUNT(grid) FROM table_name_60 WHERE laps = 52
Tell me the total number of grid for laps of 52
CREATE TABLE table_name_60 (grid VARCHAR, laps VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"
Name the guest 4 for 8 december
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR)
SELECT t2.age, COUNT(t2.Id) AS Count_of_users_by_age FROM Users AS t2 GROUP BY t2.age ORDER BY t2.age
What is the age distribution for the users?.
CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal...
SELECT record FROM table_name_48 WHERE date = "january 10"
What's the record for january 10?
CREATE TABLE table_name_48 (record VARCHAR, date VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq"
Name the guest 4 for steve lamacq
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID) DESC
For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the hire_date bin hire_date by time, sort in descending by the total number.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal...
SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 5"
What's the score on january 5 with a hasek decision?
CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR)
SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"
Name the guest 2 for colin murray 6 april
CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)
SELECT daytime FROM table_name_22 WHERE name = "exmouth"
Name the Daytime which has a Name of exmouth?
CREATE TABLE table_name_22 ( daytime VARCHAR, name VARCHAR )
SELECT club_team FROM table_name_97 WHERE overall > 131 AND round = 8 AND player = "kaj linna"
What Club team has an average of 8, plays kaj linna, and has an overall larger than 131?
CREATE TABLE table_name_97 (club_team VARCHAR, player VARCHAR, overall VARCHAR, round VARCHAR)
SELECT presenter FROM table_20466963_13 WHERE date = "11 May"
Name the presenter 11 may
CREATE TABLE table_20466963_13 (presenter VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_21 WHERE away_team = "luton town"
Who was the home team in the match against Luton Town?
CREATE TABLE table_name_21 ( home_team VARCHAR, away_team VARCHAR )
SELECT round FROM table_name_64 WHERE player = "bryan berard"
What round does Bryan Berard do?
CREATE TABLE table_name_64 (round VARCHAR, player VARCHAR)
SELECT guest_3 FROM table_20466963_13 WHERE guest_2 = "Iyare Igiehon"
Name the guest 3 for iyare igiehon
CREATE TABLE table_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR)
SELECT * FROM Posts WHERE AnswerCount > 0
select * from Posts wheere AnswerCount>0.
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 AVG(gross_tonnage) FROM table_name_57 WHERE entered_service = "april 1919"
Tell me the average gross tonnage for april 1919 entered service
CREATE TABLE table_name_57 (gross_tonnage INTEGER, entered_service VARCHAR)
SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29
How many seasons featured 29 conversions?
CREATE TABLE table_20505342_1 (penalties VARCHAR, conversions VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "V4987"
give me the number of patients whose diagnoses icd9 code is v4987?
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 diagnoses ( ...
SELECT COUNT(gross_tonnage) FROM table_name_51 WHERE entered_service = "1903"
I want the total number of gross tonnage when entered service was 1903
CREATE TABLE table_name_51 (gross_tonnage VARCHAR, entered_service VARCHAR)
SELECT MIN(drop_goals) FROM table_20505342_1
Lowest number of drop goals?
CREATE TABLE table_20505342_1 (drop_goals INTEGER)
SELECT EMAIL, SALARY FROM employees ORDER BY SALARY DESC
Plot salary by grouped by email as a bar graph, and show y-axis in descending order.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TI...
SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 4
what is the rank when the player is henry shefflin and the matches is higher than 4?
CREATE TABLE table_name_9 (rank INTEGER, player VARCHAR, matches VARCHAR)
SELECT MIN(total_points) FROM table_20505342_1 WHERE drop_goals = 2
What is the point total for the season with 2 drop goals?
CREATE TABLE table_20505342_1 (total_points INTEGER, drop_goals VARCHAR)
SELECT name, year_join FROM artist WHERE country <> 'United States'
What are the names and year of joining for artists that do not have the country 'United States'?
CREATE TABLE exhibition_record ( exhibition_id number, date text, attendance number ) CREATE TABLE artist ( artist_id number, name text, country text, year_join number, age number ) CREATE TABLE exhibition ( exhibition_id number, year number, theme text, artist_id numbe...
SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4
what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
CREATE TABLE table_name_31 (rank INTEGER, matches VARCHAR, total VARCHAR, county VARCHAR)
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_percentage = "38.86%"
Name the most obama number for mccain being 38.86%
CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT "Candidates" FROM table_18104 WHERE "District" = 'Maryland 5'
Who were the candidates in the Maryland 5 district election?
CREATE TABLE table_18104 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT opponent FROM table_name_19 WHERE date = "november 12, 1972"
Who was the opponent on November 12, 1972?
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266
Name the most abama number for mccain being 29266
CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR)
SELECT SUM(opening_weekend_net_gross) FROM table_name_8 WHERE studio_s_ = "utv motion pictures"
What's the sum of Opening Weekend Net Gross at the Studio of UTV Motion Pictures?
CREATE TABLE table_name_8 ( opening_weekend_net_gross INTEGER, studio_s_ VARCHAR )
SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = "1966"
Who built the train in 1966 with over 40 produced?
CREATE TABLE table_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR)
SELECT county FROM table_20468206_1 WHERE mccain_percentage = "38.78%"
Name the county for mccain being 38.78%
CREATE TABLE table_20468206_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT programming FROM table_name_20 WHERE name = "kanal 5"
What is the programming for Kanal 5?
CREATE TABLE table_name_20 ( programming VARCHAR, name VARCHAR )
SELECT prr_class FROM table_name_4 WHERE wheel_arrangement = "b-b" AND service = "freight" AND build_date = "1967"
What is the PRR class of the freight train built in 1967 with a b-b wheel arrangement?
CREATE TABLE table_name_4 (prr_class VARCHAR, build_date VARCHAR, wheel_arrangement VARCHAR, service VARCHAR)
SELECT COUNT(county) FROM table_20524090_1 WHERE mccain_percentage = "41.62%"
In how many counties di McCain win 41.62% of the vote?
CREATE TABLE table_20524090_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT competition FROM table_name_47 WHERE score = "1-3"
What competition has a score of 1-3?
CREATE TABLE table_name_47 ( competition VARCHAR, score VARCHAR )
SELECT prr_class FROM table_name_33 WHERE wheel_arrangement = "a1a-a1a"
What PRR class has a Wheel arrangement of a1a-a1a?
CREATE TABLE table_name_33 (prr_class VARCHAR, wheel_arrangement VARCHAR)
SELECT mccain_percentage FROM table_20524090_1 WHERE county = "Waynesboro (city)"
What percentage of the vote did McCain win in Waynesboro (city)?
CREATE TABLE table_20524090_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT SUM(against) FROM table_name_31 WHERE club = "south warrnambool" AND draws < 0
What's the against of South Warrnambool when the draw is less than 0?
CREATE TABLE table_name_31 ( against INTEGER, club VARCHAR, draws VARCHAR )
SELECT MIN(zone) FROM table_name_88 WHERE managed_by = "southern" AND platforms < 2
Which Zone is the lowest when Managed By Southern and has Platforms under 2?
CREATE TABLE table_name_88 (zone INTEGER, managed_by VARCHAR, platforms VARCHAR)
SELECT obama_percentage FROM table_20524090_1 WHERE mccain_percentage = "55.46%"
What was Obama's percentage in those places where McCain's percentage was 55.46%?
CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
SELECT "Country" FROM table_72595 WHERE "Location" = 'Rome'
Rome is in which country?
CREATE TABLE table_72595 ( "Tournament" text, "Country" text, "Location" text, "Current Venue" text, "Began" real, "Court surface" text )
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop"
What would be the highest Platforms for the Centrale Tram Stop Stations?
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR)
SELECT obama_percentage FROM table_20524090_1 WHERE county = "Alleghany"
What was Obama's percentage in the county of Alleghany?
CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT SUM(seasons_in_league) FROM table_name_82 WHERE best_position = "5th (2007)"
Which sum of Seasons in league has a Best Position of 5th (2007)?
CREATE TABLE table_name_82 ( seasons_in_league INTEGER, best_position VARCHAR )
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61
How many grids had more than 61 laps?
CREATE TABLE table_name_9 (grid INTEGER, laps INTEGER)
SELECT obama_percentage FROM table_20524090_1 WHERE county = "Surry"
What was Obama's percentage in the county of Surry?
CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT party FROM table_1342249_5 WHERE incumbent = "Brooks Hays"
What party did incumbent Brooks Hays belong to?
CREATE TABLE table_1342249_5 ( party VARCHAR, incumbent VARCHAR )
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 7
When parnell dickinson was the player and the rounds were under 7, what's the highest pick?
CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT mccain_percentage FROM table_20539826_1 WHERE county = "DeBaca"
How many percent of the votes in Debaca did McCain get?
CREATE TABLE table_20539826_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT extroverted, _relationship_oriented FROM table_11256021_1 WHERE date = "c. 1928"
what's the extroverted, relationship-oriented where date is c. 1928
CREATE TABLE table_11256021_1 ( extroverted VARCHAR, _relationship_oriented VARCHAR, date VARCHAR )
SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state"
When the school picking is utah state for the position of linebacker, what's the sum of those rounds?
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, school VARCHAR)
SELECT obama_percentage FROM table_20539826_1 WHERE total = 3909
What percentage of the votes did Obama get in the county where 3909 people voted in total?
CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, total VARCHAR)
SELECT turbo FROM table_name_62 WHERE part_number_s_ = "cm8062300834302bx80623i72600bxc80623i72600"
what is the turbo when the part number is cm8062300834302bx80623i72600bxc80623i72600?
CREATE TABLE table_name_62 ( turbo VARCHAR, part_number_s_ VARCHAR )
SELECT laps FROM table_name_38 WHERE grid < 2
what is the laps when the grid is less than 2?
CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER)
SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)
SELECT runner_up FROM table_name_43 WHERE year < 2008 AND arena = "broadmoor arena"
Who was the runner-up at the Broadmoor Arena before 2008?
CREATE TABLE table_name_43 ( runner_up VARCHAR, year VARCHAR, arena VARCHAR )
SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani"
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU"
Who was the winner when the SEC team LSU played?
CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER'...
what are all flights from BOSTON to DENVER
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_stop ( flight_id int, stop_n...
SELECT MAX(year) FROM table_name_36 WHERE venue = "gothenburg, sweden"
When is the latest year the venue is in gothenburg, sweden?
CREATE TABLE table_name_36 (year INTEGER, venue VARCHAR)
SELECT MAX(attendance) FROM table_20540006_6 WHERE challenge_leader = "Big East (4-2)"
What was the attendance for the game when the challenge leader was at Big East (4-2)?
CREATE TABLE table_20540006_6 (attendance INTEGER, challenge_leader VARCHAR)
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY Carrier DESC
Bar chart x axis carrier y axis the number of carrier, display bar from high to low order.
CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Ranking int ) CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stoc...
SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, sweden"
When is the earliest year the venue is in gothenburg, sweden?
CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR)
SELECT summer_team FROM table_20589703_2 WHERE college = "St. John's" AND player = "James Lomangino"
What suumer team was James Lomangino from St. John's on?
CREATE TABLE table_20589703_2 (summer_team VARCHAR, college VARCHAR, player VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-8188')) AND intakeoutput.cellpath LIKE '%int...
what's the total amount of input of patient 028-8188?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodi...
SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974
What is the result of the european indoor championships after 1974?
CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT draft_round FROM table_20589703_2 WHERE college = "Rio Hondo" AND draft_year = 2012
In what draft round in 2012 did a player from Rio Hondo get drafted?
CREATE TABLE table_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR)
SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 32592)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'or ...
what is the total quantity of or out pacu urine output patient 32592 had until 09/25/2104?
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val...
SELECT away_team AS score FROM table_name_33 WHERE venue = "western oval"
In Western Oval, what was the away team score?
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
SELECT college FROM table_20589703_2 WHERE player = "Aaron Slegers"
What college did Aaron Slegers attend?
CREATE TABLE table_20589703_2 (college VARCHAR, player VARCHAR)
SELECT AVG(fylde) FROM table_name_57 WHERE burnley < 0
What is the average rating for a Flyde that has a Burnley less than 0?
CREATE TABLE table_name_57 ( fylde INTEGER, burnley INTEGER )
SELECT SUM(places) FROM table_name_14 WHERE name = "adrian vasile" AND points < 127.74
What is the place number for adrian vasile with less than 127.74 points?
CREATE TABLE table_name_14 (places INTEGER, name VARCHAR, points VARCHAR)
SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = "Unaffected" AND partial_thromboplastin_time = "Unaffected"
What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected?
CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT COUNT("Draws") FROM table_60689 WHERE "Losses" > '11' AND "Wins" < '4' AND "Golden Rivers" = 'wakool'
What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?
CREATE TABLE table_60689 ( "Golden Rivers" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 AND rank > 15
What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15?
CREATE TABLE table_name_84 (fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR)
SELECT partial_thromboplastin_time FROM table_20592988_1 WHERE platelet_count = "Decreased"
What is the status of partial thromboplastin times for conditions where the platelet count is decreased?
CREATE TABLE table_20592988_1 (partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
SELECT "Index" FROM table_70963 WHERE "Country" = 'singapore' AND "Name" = 'chen bangjun andie'
What is the Index number of Chen Bangjun Andie from Singapore?
CREATE TABLE table_70963 ( "Index" text, "Name" text, "Chinese Name" text, "Country" text, "Status" text )
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?
CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR)
SELECT condition FROM table_20592988_1 WHERE platelet_count = "Unaffected" AND prothrombin_time = "Unaffected"
In what conditions are both the platelet count and prothrombin time unaffected?
CREATE TABLE table_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT COUNT("Pitcher") FROM table_26720 WHERE "Overall Rank" = '9'
Name the total number of pitcher for 9 overall rank
CREATE TABLE table_26720 ( "Pitcher" text, "Strikeouts" real, "Season" real, "Team" text, "League" text, "Overall Rank" real )
SELECT SUM(average) FROM table_name_86 WHERE swimsuit < 9.32
What is the average of the contestant with a swimsuit less than 9.32?
CREATE TABLE table_name_86 (average INTEGER, swimsuit INTEGER)
SELECT bleeding_time FROM table_20592988_1 WHERE condition = "Thrombocytopenia"
What is the status of bleeding time for thrombocytopenia?
CREATE TABLE table_20592988_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT "Make" FROM table_74730 WHERE "Driver" = 'brian vickers'
What make of car did Brian Vickers drive?
CREATE TABLE table_74730 ( "Driver" text, "Car #" real, "Make" text, "Points" text, "Laps" real, "Winnings" text )
SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.67
What is the highest swimsuit score of the contestant with a higher than 9.55 interview score, and evening gown of 9.75, and an average higher than 9.67?
CREATE TABLE table_name_63 (swimsuit INTEGER, average VARCHAR, interview VARCHAR, evening_gown VARCHAR)
SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Unaffected"
What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected?
CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT "Date" FROM table_68492 WHERE "Circuit" = 'mallala motor sport park'
what date was mallala motor sport park the circuit?
CREATE TABLE table_68492 ( "Circuit" text, "Location / State" text, "Date" text, "Winning driver" text, "Team" text )
SELECT country FROM table_name_19 WHERE swimsuit = 9.46
What is the country of the contestant with a swimsuit of 9.46?
CREATE TABLE table_name_19 (country VARCHAR, swimsuit VARCHAR)
SELECT player FROM table_20590020_2 WHERE cuts_made = 8
Which players made exactly 8 cuts?
CREATE TABLE table_20590020_2 (player VARCHAR, cuts_made VARCHAR)
SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = "marketing" INTERSECT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.de...
What is the id and name of the department store that has both marketing and managing department?
CREATE TABLE department_stores ( dept_store_id VARCHAR, store_name VARCHAR ) CREATE TABLE departments ( dept_store_id VARCHAR, department_name VARCHAR )
SELECT date FROM table_name_76 WHERE goal = 24
On what date did Goal 24 take place?
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson"
What is the total number of entries for Leif Olson?
CREATE TABLE table_20590020_2 (starts VARCHAR, player VARCHAR)
SELECT "Rank" FROM table_63711 WHERE "Nationality" = 'japan'
What is the rank of Japan?
CREATE TABLE table_63711 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text )