answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196 | How many first downs were there when the attendance was 13196? | CREATE TABLE table_14877831_2 (first_downs INTEGER, attendance VARCHAR) |
SELECT SUM("Year") FROM table_8741 WHERE "Championship" = 'australian open' AND "Outcome" = 'runner-up' AND "Score in final" = '3-6, 6-3, 6-2' | What is the sum of Year(s), when Championship is 'Australian Open', when Outcome is 'Runner-Up', and when Score in Final is 3-6, 6-3, 6-2? | CREATE TABLE table_8741 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
) |
SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary" | What's the sum of the attendance for the calgary home team? | CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR) |
SELECT game_site FROM table_14875671_1 WHERE opponent = "Buffalo Bills" | What was the site of the game against Buffalo Bills ? | CREATE TABLE table_14875671_1 (game_site VARCHAR, opponent VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-47232')) AND medication.drugname = 'ecotrin ec' AND DATETIME(medicatio... | has patient 022-47232 been prescribed ecotrin ec in 01/this year. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid numb... |
SELECT record FROM table_name_98 WHERE visitor = "chicago" | What was the record when chicago was the visiting team? | CREATE TABLE table_name_98 (record VARCHAR, visitor VARCHAR) |
SELECT MAX(attendance) FROM table_14875671_1 WHERE week = 8 | What was the attendance in week 8? | CREATE TABLE table_14875671_1 (attendance INTEGER, week VARCHAR) |
SELECT COUNT(*), DAY(CreationDate), MONTH(CreationDate), YEAR(CreationDate) FROM Posts GROUP BY DAY(CreationDate), MONTH(CreationDate), YEAR(CreationDate) ORDER BY YEAR(CreationDate) DESC, MONTH(CreationDate) DESC, DAY(CreationDate) DESC | select count(*), Date(CreationDate) from posts group by Date(CreationDate) order by CreationDate. | CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... |
SELECT date FROM table_name_10 WHERE series = "0–1" | What was the date of the game when the record of the series was 0–1? | CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR) |
SELECT date FROM table_14875671_1 WHERE attendance = 63995 | What was the date when the attendance was 63995 | CREATE TABLE table_14875671_1 (date VARCHAR, attendance VARCHAR) |
SELECT MAX(overall) FROM table_name_35 WHERE name = "george nicula" AND pick < 9 | What is the highest overall pick number for george nicula who had a pick smaller than 9? | CREATE TABLE table_name_35 (
overall INTEGER,
name VARCHAR,
pick VARCHAR
) |
SELECT away_team AS score FROM table_name_58 WHERE home_team = "south melbourne" | What is the score for the away team when South Melbourne was the home team? | CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) |
SELECT opponent FROM table_14875671_1 WHERE week = 4 | Who was the opponent in week 4? | CREATE TABLE table_14875671_1 (opponent VARCHAR, week VARCHAR) |
SELECT year FROM table_name_50 WHERE publisher = "argonaut games sierra entertainment" | Name the year when the publisher was argonaut games sierra entertainment | CREATE TABLE table_name_50 (
year VARCHAR,
publisher VARCHAR
) |
SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum" | What was the score of the 2001 game held at Network Associates Coliseum? | CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR) |
SELECT COUNT(skipper) FROM table_14882588_2 WHERE yacht = "City Index Leopard" | How many different skippers of the yacht City Index Leopard? | CREATE TABLE table_14882588_2 (skipper VARCHAR, yacht VARCHAR) |
SELECT "Mon 24 Aug" FROM table_2889 WHERE "Fri 28 Aug" = '26'' 04.60 86.814mph' | What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph? | CREATE TABLE table_2889 (
"Rank" real,
"Rider" text,
"Mon 24 Aug" text,
"Tues 25 Aug" text,
"Wed 26 Aug" text,
"Thurs 27 Aug" text,
"Fri 28 Aug" text
) |
SELECT region FROM table_name_52 WHERE home_venue = "giuseppe sivori" | What region has giuseppe sivori as a home venue? | CREATE TABLE table_name_52 (region VARCHAR, home_venue VARCHAR) |
SELECT race_number FROM table_14882588_2 WHERE sail_number = "AUS 03" | If sail number is AUS 03, what are all associated race numbers? | CREATE TABLE table_14882588_2 (race_number VARCHAR, sail_number VARCHAR) |
SELECT "Time" FROM table_63788 WHERE "Athlete" = 'law hiu fung' | What was Law Hiu Fung's time? | CREATE TABLE table_63788 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) |
SELECT city FROM table_name_67 WHERE short_name = "pontisola" | What city has the nickname of pontisola? | CREATE TABLE table_name_67 (city VARCHAR, short_name VARCHAR) |
SELECT location FROM table_14884844_2 WHERE record = "1:37.071s" | In what location was the fastest time 1:37.071s? | CREATE TABLE table_14884844_2 (location VARCHAR, record VARCHAR) |
SELECT season FROM table_name_79 WHERE losses = "16" AND team = "hampshire" | Which season had 16 losses for the Hampshire team? | CREATE TABLE table_name_79 (
season VARCHAR,
losses VARCHAR,
team VARCHAR
) |
SELECT name FROM table_name_40 WHERE home_venue = "comunale" AND city = "darfo boario terme" | What squad plays at comunale in darfo boario terme? | CREATE TABLE table_name_40 (name VARCHAR, home_venue VARCHAR, city VARCHAR) |
SELECT location FROM table_14884844_2 WHERE athletes = "Birgit Fischer" | What are all the places where Birgit Fischer competed? | CREATE TABLE table_14884844_2 (location VARCHAR, athletes VARCHAR) |
SELECT COUNT("Player") FROM table_68470 WHERE "Event" > '2011' AND "!Aces" < '9' | How many players were in the event after 2011 with less than 9 aces? | CREATE TABLE table_68470 (
"!Aces" real,
"Player" real,
"Opponent" text,
"Round" text,
"Year" text,
"Event" real,
"Surface" text,
"Sets" text
) |
SELECT pick__number FROM table_name_62 WHERE league_from = "western hockey league" AND player = "scott glennie" | What pick was Scott Glennie from the Western hockey league | CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR) |
SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik" | What are the records when Elzbieta Urbanczik competed? | CREATE TABLE table_14884844_2 (record VARCHAR, athletes VARCHAR) |
SELECT gershausen FROM table_name_46 WHERE willingshain = "243" AND reckerode_ * * * * = "224" | What Gershausen has a Willingshain of 243 and Reckerode of 224? | CREATE TABLE table_name_46 (
gershausen VARCHAR,
willingshain VARCHAR,
reckerode_ VARCHAR
) |
SELECT player FROM table_name_40 WHERE nationality = "united states" AND league_from = "western collegiate hockey association" | What player from the United States played in the western collegiate hockey association? | CREATE TABLE table_name_40 (player VARCHAR, nationality VARCHAR, league_from VARCHAR) |
SELECT COUNT(wins) FROM table_14889048_1 WHERE points = 17 | Name the number of wins for when points is 17 | CREATE TABLE table_14889048_1 (wins VARCHAR, points VARCHAR) |
SELECT SUM(top_10) FROM table_name_82 WHERE avg_start = 18.9 | How many times did the team with an average start of 18.9 make the top 10? | CREATE TABLE table_name_82 (
top_10 INTEGER,
avg_start VARCHAR
) |
SELECT MAX(laps) FROM table_name_25 WHERE time_retired = "+1 lap" AND constructor = "brm" AND grid > 1 | Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded? | CREATE TABLE table_name_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR) |
SELECT COUNT(draws) FROM table_14889048_1 WHERE conceded = 25 | Name the number of draws for when conceded is 25 | CREATE TABLE table_14889048_1 (draws VARCHAR, conceded VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "1850" AND diagnoses.short_title = "Intestinal obstruct NOS" | count the number of patients born before 1850 who have been diagnosed with unspecified intestinal obstruction. | CREATE TABLE diagnoses (
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 procedures (
... |
SELECT COUNT(grid) FROM table_name_69 WHERE laps < 9 AND time_retired = "engine" | When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values? | CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR) |
SELECT MAX(conceded) FROM table_14889048_1 WHERE draws = 5 AND position = 1 | Name the most conceded when draws is 5 and position is 1 | CREATE TABLE table_14889048_1 (conceded INTEGER, draws VARCHAR, position VARCHAR) |
SELECT conference.name FROM conference, keyword, publication, publication_keyword WHERE keyword.keyword = 'Relational Database' AND publication_keyword.kid = keyword.kid AND publication.cid = conference.cid AND publication.pid = publication_keyword.pid GROUP BY conference.name HAVING COUNT(DISTINCT (publication.title))... | return me the conferences, which have more than 60 papers containing keyword ' Relational Database ' . | CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE key... |
SELECT driver FROM table_name_59 WHERE grid = 3 | Which driver has a grid of 3? | CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR) |
SELECT original_air_date FROM table_14889988_1 WHERE production_code = 176265 | What date was the episode with production code 176265 aired? | CREATE TABLE table_14889988_1 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 14467 AND STRFTIME('%y', admissions.admittime) >= '2105' ORDER BY admissions.admittime DESC LIMIT 1 | when did patient 14467 enter the hospital for the last time since 2105? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insuranc... |
SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31 | When the laps are 31 and the constructor was honda, what's the sum of all grid values? | CREATE TABLE table_name_58 (grid INTEGER, constructor VARCHAR, laps VARCHAR) |
SELECT original_air_date FROM table_14889988_1 WHERE written_by = "Robert Carlock" | On what dates were episodes written by Robert Carlock aired? | CREATE TABLE table_14889988_1 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT crimeid FROM greatermanchestercrime WHERE type = "Violence and sexual offences" ORDER BY crimets DESC LIMIT 1 | When was the last instance of a violent or sexual offense in Manchester? | CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) |
SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill" | What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? | CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR) |
SELECT MAX(production_code) FROM table_14889988_1 WHERE no_in_series = 229 | What is the production code for episode 229? | CREATE TABLE table_14889988_1 (production_code INTEGER, no_in_series VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "SC" | how many patients whose drug route is sc? | 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 constructor FROM table_name_84 WHERE driver = "alexander wurz" | What is the constructor of driver Alexander Wurz? | CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR) |
SELECT title FROM table_14889988_1 WHERE written_by = "Robert Carlock & Dana Klein Borkow" | What is the title for the episode written by Robert Carlock & Dana Klein Borkow? | CREATE TABLE table_14889988_1 (title VARCHAR, written_by VARCHAR) |
SELECT SUM("Bronze") FROM table_32848 WHERE "Silver" > '3' | What is the sum of bronze when silver is greater than 3? | CREATE TABLE table_32848 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT driver FROM table_name_53 WHERE rounds = "all" AND chassis = "f399" | Who was the driver that had all rounds and a f399 chassis? | CREATE TABLE table_name_53 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR) |
SELECT directed_by FROM table_14889988_1 WHERE production_code = 176252 | Who directed the episode with the production code 176252? | CREATE TABLE table_14889988_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | What easy class can I take that will fulfill the ULCS requirement ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar... |
SELECT rounds FROM table_name_33 WHERE engine_† = "ferrari 048" | What were the rounds on the Engine † of the Ferrari 048? | CREATE TABLE table_name_33 (rounds VARCHAR, engine_† VARCHAR) |
SELECT MIN(points) FROM table_14889048_2 WHERE scored = 15 | How many points when 15 is scored is considered the minimum? | CREATE TABLE table_14889048_2 (points INTEGER, scored VARCHAR) |
SELECT AVG("Total") FROM table_64177 WHERE "Gymnast" = 'danny pinheiro rodrigues ( fra )' AND "Position" < '7' | What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7? | CREATE TABLE table_64177 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
) |
SELECT semifinal FROM table_name_47 WHERE event = "team" | Which Semifinal has an Event of team? | CREATE TABLE table_name_47 (semifinal VARCHAR, event VARCHAR) |
SELECT MAX(points) FROM table_14889048_2 WHERE wins = 4 | When a team wins 4, how much is the Maximum amount of points? | CREATE TABLE table_14889048_2 (points INTEGER, wins VARCHAR) |
SELECT writer_s_ FROM table_name_57 WHERE recipient = "parkville pictures ltd" | Who was the writer when Parkville Pictures Ltd was the recipient? | CREATE TABLE table_name_57 (
writer_s_ VARCHAR,
recipient VARCHAR
) |
SELECT quarterfinal FROM table_name_28 WHERE rank > 9 | Which Quarterfinal has a Rank larger than 9? | CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER) |
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad" | How may draws did libertad have? | CREATE TABLE table_14889048_2 (draws VARCHAR, team VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%JUDAIC%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | What classes are required to declare JUDAIC as a major ? | CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE instructor (
... |
SELECT COUNT(pick__number) FROM table_name_46 WHERE position = "db" | What is the pick number of the DB? | CREATE TABLE table_name_46 (pick__number VARCHAR, position VARCHAR) |
SELECT men_doubles FROM table_14903355_2 WHERE womens_singles = "Els Baert" | Name the men doubles for els baert | CREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_singles VARCHAR) |
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-22988')) AND microlab.culturesite = 'other' AND STRFTIME('%y', microlab.cu... | has there been any organism found until 2103 during the first other microbiology test of patient 031-22988? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... |
SELECT college FROM "t" AS able_name_20 WHERE pick__number > 13 AND position = "t" | What college did the T who was pick after 13 go to? | CREATE TABLE t (Id VARCHAR) |
SELECT men_doubles FROM table_14903355_2 WHERE womens_doubles = "Caroline Persyn Smids" | Name the men doubles for caroline persyn smids | CREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_doubles VARCHAR) |
SELECT "Result" FROM table_18431 WHERE "District" = 'Massachusetts 3' | Name the result for massachusetts 3 | CREATE TABLE table_18431 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT cfl_team FROM table_name_5 WHERE college = "boston college" | Which CFL team drafted a pick from Boston College? | CREATE TABLE table_name_5 (cfl_team VARCHAR, college VARCHAR) |
SELECT COUNT(men_doubles) FROM table_14903355_2 WHERE year = 2007 | Name the number of men doubles for 2007 | CREATE TABLE table_14903355_2 (men_doubles VARCHAR, year VARCHAR) |
SELECT 'QGIS Tags' AS Software, Count AS PostCount FROM Tags WHERE TagName LIKE 'qgis%' | Post Count Comparison Between Esri and Qgis tags.. | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
... |
SELECT position FROM table_name_51 WHERE college = "saskatchewan" | What position did the Saskatchewan player get drafted as? | CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR) |
SELECT womens_singles FROM table_14903491_1 WHERE womens_doubles = "Raina Tzvetkova Petya Nedelcheva" | Name the womens singles for raina tzvetkova petya nedelcheva | CREATE TABLE table_14903491_1 (womens_singles VARCHAR, womens_doubles VARCHAR) |
SELECT COUNT("Sales") FROM table_5520 WHERE "Album title" = 'scouting for girls' | How many copies of scouting for girls were sold? | CREATE TABLE table_5520 (
"Position" real,
"Album title" text,
"Artist" text,
"Sales" real,
"Peak" text
) |
SELECT AVG(grid) FROM table_name_32 WHERE laps > 53 | When the laps are over 53, what's the average grid? | CREATE TABLE table_name_32 (grid INTEGER, laps INTEGER) |
SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = "Diana Koleva Emilia Dimitrova" AND mens_singles = "Jeliazko Valkov" | Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov | CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR, mens_singles 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, date_day, days, flight WHERE (((flight.departure_time BETWEEN 1000 AND 0) AND date_day.day_number = 20 AND date_day.month_number = 1 AND date_day.year = 1991 AND days.day_nam... | i'd like an early flight tomorrow from COLUMBUS to NASHVILLE | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,... |
SELECT AVG(laps) FROM table_name_75 WHERE driver = "david coulthard" | What's the average laps driven by david coulthard? | CREATE TABLE table_name_75 (laps INTEGER, driver VARCHAR) |
SELECT mens_singles FROM table_14903491_1 WHERE mixed_doubles = "Jeliazko Valkov Dobrinka Peneva" | Name the mens singles for jeliazko valkov dobrinka peneva | CREATE TABLE table_14903491_1 (mens_singles VARCHAR, mixed_doubles VARCHAR) |
SELECT dob FROM table_name_5 WHERE surname = "biddle" | When is Biddle's DOB? | CREATE TABLE table_name_5 (
dob VARCHAR,
surname VARCHAR
) |
SELECT opponent_in_the_final FROM table_name_8 WHERE year < 1883 | who is the opponent in the final when the year is before 1883? | CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, year INTEGER) |
SELECT mens_singles FROM table_14903491_1 WHERE year = 1989 | Name the mens singles for 1989 | CREATE TABLE table_14903491_1 (mens_singles VARCHAR, year VARCHAR) |
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY Carrier | Can you show a bar chart to visualize the number of carriers?, and I want to display in ascending by the x-axis. | CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... |
SELECT outcome FROM table_name_4 WHERE year = 1887 | what is the outcome for the 1887? | CREATE TABLE table_name_4 (outcome VARCHAR, year VARCHAR) |
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova" | Name the year for victoria hristova neli nedialkova | CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR) |
SELECT "Source" FROM table_49573 WHERE "Race winners" = 'ben adriaenssen / ben van den bogaart' AND "GP winner" = 'ben adriaenssen / ben van den bogaart' AND "Date" = '1 april' | What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april? | CREATE TABLE table_49573 (
"Date" text,
"Place" text,
"Race winners" text,
"GP winner" text,
"Source" text
) |
SELECT outcome FROM table_name_24 WHERE year > 1882 AND opponent_in_the_final = "william renshaw" | what is the outcome when the opponent in the final is william renshaw after year 1882? | CREATE TABLE table_name_24 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR) |
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Raina Tzvetkova Emilia Dimitrova" | Name the year for womens doubles being raina tzvetkova emilia dimitrova | CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR) |
SELECT MAX("Rank") FROM table_64480 WHERE "Total" < '10' AND "3rd run" = '36.457 (2)' | Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)? | CREATE TABLE table_64480 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
) |
SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford" | what is the score when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? | CREATE TABLE table_name_39 (score VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR, outcome VARCHAR) |
SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = "Piret Hamer Helen Reino" | WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO? | CREATE TABLE table_14903627_1 (mens_doubles VARCHAR, womens_doubles VARCHAR) |
SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5801' AND NOT patient.hospitaldischargetime IS NULL ORDER BY ... | what was the name of procedure, that patient 009-5801 was last received during the last hospital encounter? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... |
SELECT artist FROM table_name_29 WHERE mintage > 34 OFFSET 135 | What artist has a mintage of greater than 34,135? | CREATE TABLE table_name_29 (artist VARCHAR, mintage INTEGER) |
SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = "Helen Reino Kai-Riin Saluste" | WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE? | CREATE TABLE table_14903627_1 (mens_doubles VARCHAR, womens_doubles VARCHAR) |
SELECT "Builder" FROM table_39515 WHERE "Works number" > '199' AND "Date" = '4/1906' | Name the builder for 4/1906 and works number more than 199 | CREATE TABLE table_39515 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" real
) |
SELECT artist FROM table_name_71 WHERE year = 2005 | What artist was released in 2005? | CREATE TABLE table_name_71 (artist VARCHAR, year VARCHAR) |
SELECT mixed_doubles FROM table_14903627_1 WHERE womens_singles = "Kairi Viilup" | WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP? | CREATE TABLE table_14903627_1 (mixed_doubles VARCHAR, womens_singles VARCHAR) |
SELECT apt_number, room_count FROM Apartments ORDER BY room_count DESC | Return the apartment number and the number of rooms for each apartment by a bar chart, and show by the y-axis from high to low. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Buildin... |
SELECT AVG(year) FROM table_name_35 WHERE team = "melbourne" | What's melbourne's average year? | CREATE TABLE table_name_35 (year INTEGER, team VARCHAR) |
SELECT COUNT(year) FROM table_14903627_1 WHERE mens_doubles = "Heiki Sorge Meelis Maiste" | HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY? | CREATE TABLE table_14903627_1 (year VARCHAR, mens_doubles VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.