answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT direction FROM table_100518_1 WHERE weapon = "Khaḍga (sword)" | What are the directions for the guardian whose weapon is kha ga (sword)? | CREATE TABLE table_100518_1 (
direction VARCHAR,
weapon VARCHAR
) |
SELECT song FROM table_name_86 WHERE picturization = "vijay" | Which song has a Picturization of Vijay? | CREATE TABLE table_name_86 (song VARCHAR, picturization VARCHAR) |
SELECT arrival FROM table_18365784_3 WHERE departure = "18.16" | What was the arrival time of the train that departed at 18.16? | CREATE TABLE table_18365784_3 (arrival VARCHAR, departure VARCHAR) |
SELECT COUNT(*) FROM Posts WHERE Body LIKE '%<code>%' AND ParentId IN (1109022, 151777, 541966, 1016896, 6343166, 477572, 2591036, 3145089, 2201917, 5033012, 600207, 3035692, 1560788, 2091465, 531427, 2139134, 6495898, 3166501, 4605527, 2736389, 2150078, 6200533, 867518, 2471935, 3624280, 2459916, 1667278, 2795833, 231... | Good and Bad code examples. | CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... |
SELECT original_air_date FROM table_name_64 WHERE production_code = "ad1c13" | What is the air date for the episode with production code ad1c13? | CREATE TABLE table_name_64 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT departure FROM table_18365784_3 WHERE arrival = "21.26" | What was the departure time of the train that arrived at 21.26? | CREATE TABLE table_18365784_3 (departure VARCHAR, arrival VARCHAR) |
SELECT "Runner-up" FROM table_36303 WHERE "Finals MVP" = 'tanel sokk' AND "Champion's Coach" = 'alar varrak' | Who is the runner-up of the season with Tanel Sokk as the finals MVP and Alar Varrak as the champion's coach? | CREATE TABLE table_36303 (
"Season" text,
"Winner" text,
"Result" text,
"Runner-up" text,
"1st of Regular Season" text,
"Record" text,
"Champion's Coach" text,
"Finals MVP" text
) |
SELECT written_by FROM table_name_4 WHERE production_code = "ad1c05" | Who wrote the episode that has the production code ad1c05? | CREATE TABLE table_name_4 (written_by VARCHAR, production_code VARCHAR) |
SELECT calling_at FROM table_18365784_3 WHERE departure = "18.16" | What was the 'calling at' station of the train that departed on 18.16? | CREATE TABLE table_18365784_3 (calling_at VARCHAR, departure VARCHAR) |
SELECT "Playoffs" FROM table_17672 WHERE "Year" = '2002' | What was the playoff result in 2002? | CREATE TABLE table_17672 (
"Year" text,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) |
SELECT title FROM table_name_99 WHERE production_code = "ad1c07" | What is the title of the episode with production code ad1c07? | CREATE TABLE table_name_99 (title VARCHAR, production_code VARCHAR) |
SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin" | Name the original air date for barnaby southcomb for charlie martin | CREATE TABLE table_18335117_5 (original_air_date VARCHAR, director VARCHAR, writer VARCHAR) |
SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9294)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit... | how much is the daily minimum weight of patient 9294 since 2105? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit ... |
SELECT MIN(draws) FROM table_name_98 WHERE wins > 3 AND mid_gippsland_fl = "yarragon" AND against < 966 | What is the low draw total for yarragon teams with over 3 wins, and under 966 against? | CREATE TABLE table_name_98 (draws INTEGER, against VARCHAR, wins VARCHAR, mid_gippsland_fl VARCHAR) |
SELECT MIN(no_in_series) FROM table_18335117_5 WHERE no_overall = 38 | Name the number in series for number 38 | CREATE TABLE table_18335117_5 (no_in_series INTEGER, no_overall VARCHAR) |
SELECT Comment, COUNT(*) AS "Count" FROM PostHistory WHERE PostHistoryTypeId IN (33, 34) GROUP BY Comment HAVING COUNT(*) > 2 ORDER BY 'Count' DESC | Repeated `Comment` for `PostHistoryTypeId IN (33, 34)`. | CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
... |
SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins" | What is the General classification for a points classification leader of Bradley Wiggins? | CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR) |
SELECT original_air_date FROM table_18367694_2 WHERE production_code = 1115 | What is the original air date of the episode with the production code 1115? | CREATE TABLE table_18367694_2 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT Statement_Details, SUM(Account_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details ORDER BY SUM(Account_Details) | Show the sum of account details for different statement details in a bar chart, and sort in ascending by the y-axis. | CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHA... |
SELECT general_classification FROM table_name_94 WHERE mountains_classification = "christophe moreau" AND team_classification = "team csc" | What is the general classification for a mountains value of Christophe Moreau and a Team winner of Team CSC? | CREATE TABLE table_name_94 (general_classification VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR) |
SELECT directed_by FROM table_18367694_2 WHERE original_air_date = "November 22, 1989" | who directed the episode with the original air date of November 22, 1989? | CREATE TABLE table_18367694_2 (directed_by VARCHAR, original_air_date VARCHAR) |
SELECT demographic.age, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | mention the age and procedure long title of patient with patient id 2560. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... |
SELECT frequency FROM table_name_76 WHERE call_sign = "kqlx" | What is the frequency of KQLX? | CREATE TABLE table_name_76 (frequency VARCHAR, call_sign VARCHAR) |
SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" | when deland is the fcsl team and 2008 is the year played who is the mlb team? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR) |
SELECT music FROM table_name_35 WHERE team = "anna guzik & rafał kamiński" AND points_jury = "24 (7,5,6,6)" | What is the Music for Team anna guzik & rafa kami ski that has a Points Jury of 24 (7,5,6,6)? | CREATE TABLE table_name_35 (
music VARCHAR,
team VARCHAR,
points_jury VARCHAR
) |
SELECT call_sign FROM table_name_9 WHERE frequency = "1200 am" | What is the call sign of 1200 am? | CREATE TABLE table_name_9 (call_sign VARCHAR, frequency VARCHAR) |
SELECT fcsl_team FROM table_18373863_2 WHERE mlb_team = "Toronto Blue Jays" | When toronto blue jays are the mlb team who are the fscl team? | CREATE TABLE table_18373863_2 (fcsl_team VARCHAR, mlb_team VARCHAR) |
SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) | A bar chart for what are the number of the names of all products?, and sort by the Y-axis in asc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT frequency FROM table_name_67 WHERE format = "talk" | What is the frequency of the talk station? | CREATE TABLE table_name_67 (frequency VARCHAR, format VARCHAR) |
SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = "2005" | When 2005 is the year played what is the lowest year drafted? | CREATE TABLE table_18373863_2 (year_drafted INTEGER, years_played VARCHAR) |
SELECT year FROM table_15409403_1 WHERE playoffs = "Conference Finals" | When did the playoffs reached Conference Finals? | CREATE TABLE table_15409403_1 (
year VARCHAR,
playoffs VARCHAR
) |
SELECT frequency FROM table_name_36 WHERE call_sign = "kfnw" | What is the frequency of KFNW? | CREATE TABLE table_name_36 (frequency VARCHAR, call_sign VARCHAR) |
SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines" | When winter pines is the fcsl team how many mlb teams are there? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) |
SELECT MIN("Population (2011)") FROM table_22727 WHERE "Name" = 'Beauval' | When beauval is the name what is the lowest population of 2011? | CREATE TABLE table_22727 (
"Name" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Land area (km\u00b2)" text,
"Population density (per km\u00b2)" text
) |
SELECT constructor FROM table_name_34 WHERE race_name = "vii race of champions" | What is the constructor for the VII Race of Champions? | CREATE TABLE table_name_34 (constructor VARCHAR, race_name VARCHAR) |
SELECT player FROM table_18373863_2 WHERE fcsl_team = "Winter Park" AND years_played = "2006" | When 2006 is the year played and winter park is the fcsl team who is the player? | CREATE TABLE table_18373863_2 (player VARCHAR, fcsl_team VARCHAR, years_played VARCHAR) |
SELECT park FROM roller_coaster ORDER BY speed DESC LIMIT 1 | Show the park of the roller coaster with the highest speed. | CREATE TABLE roller_coaster (
roller_coaster_id number,
name text,
park text,
country_id number,
length number,
height number,
speed text,
opened text,
status text
)
CREATE TABLE country (
country_id number,
name text,
population number,
area number,
languages te... |
SELECT race_name FROM table_name_72 WHERE winning_driver = "carlos reutemann" | What is the name of the race won by driver Carlos Reutemann? | CREATE TABLE table_name_72 (race_name VARCHAR, winning_driver VARCHAR) |
SELECT operator FROM table_1837570_1 WHERE genre = "music" | Which operators offer a genre of music? | CREATE TABLE table_1837570_1 (operator VARCHAR, genre VARCHAR) |
SELECT MIN(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-34108')) AND NOT vitalperiodic.heartrate IS NULL... | indicate the yearly minimum amount of heartrate for patient 016-34108. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... |
SELECT date FROM table_name_30 WHERE home = "st. louis" | what is the date when the home is st. louis? | CREATE TABLE table_name_30 (date VARCHAR, home VARCHAR) |
SELECT language FROM table_1837570_1 WHERE coverage_area = "Klang Petaling Jaya Shah Alam" | Which languages are offered in the coverage area of klang petaling jaya shah alam? | CREATE TABLE table_1837570_1 (language VARCHAR, coverage_area VARCHAR) |
SELECT COUNT(*) FROM medication WHERE medication.drugname = 'metoprolol tartrate 25 mg tab' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year') | how many metoprolol tartrate 25 mg tab prescriptions since 4 years ago have been prescribed? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... |
SELECT home FROM table_name_34 WHERE date = "march 12" | Where is the home on march 12? | CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR) |
SELECT macedonian FROM table_1841901_1 WHERE french = "il/elle avait entendu" | Name the macedonian for il/elle avait entendu | CREATE TABLE table_1841901_1 (macedonian VARCHAR, french VARCHAR) |
SELECT "Portrayed by" FROM table_16572 WHERE "First appearance" = 'Blink" 1, 2, 3' | Which actors first appeared in episode 'Blink' 1, 2, 3? | CREATE TABLE table_16572 (
"Character" text,
"Portrayed by" text,
"First appearance" text,
"Last appearance" text,
"Duration" text,
"Episodes" text
) |
SELECT decision FROM table_name_8 WHERE date = "march 18" | what is the decision on the date march 18? | CREATE TABLE table_name_8 (decision VARCHAR, date VARCHAR) |
SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była" | Name the greek modern for słyszałeś był / słyszałaś była | CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR) |
SELECT date FROM table_name_3 WHERE venue = "bucharest" | Which Date has a Venue of bucharest? | CREATE TABLE table_name_3 (
date VARCHAR,
venue VARCHAR
) |
SELECT COUNT(tckl) FROM table_name_9 WHERE year = "2000" AND p_ko_ret < 14 | What is the total of TCKL in 2000 with a P/KO RET less than 14? | CREATE TABLE table_name_9 (tckl VARCHAR, year VARCHAR, p_ko_ret VARCHAR) |
SELECT bulgarian FROM table_1841901_1 WHERE dutch = "jullie hadden gehoord" | Name the bulgarian for jullie hadden gehoord | CREATE TABLE table_1841901_1 (bulgarian VARCHAR, dutch VARCHAR) |
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname ORDER BY COUNT(*) DESC LIMIT 1 | What is the last name of the author that has published the most papers? | CREATE TABLE authorship (
authid VARCHAR,
paperid VARCHAR
)
CREATE TABLE papers (
paperid VARCHAR
)
CREATE TABLE authors (
lname VARCHAR,
fname VARCHAR,
authid VARCHAR
) |
SELECT MAX(yards) FROM table_name_61 WHERE tckl > 51 AND sack < 2 | What is the highest YARDS with a TCKL more than 51 and less than 2 SACK? | CREATE TABLE table_name_61 (yards INTEGER, tckl VARCHAR, sack VARCHAR) |
SELECT english FROM table_1841901_1 WHERE french = "j'avais entendu" | Name the english for j'avais entendu | CREATE TABLE table_1841901_1 (english VARCHAR, french VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DEAD/EXPIRED" AND procedures.short_title = "Contrast aortogram" | how many patients whose discharge location is dead/expired and procedure short title is contrast aortogram? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT COUNT(yards) FROM table_name_31 WHERE sack = 0 AND p_ko_ret < 14 | What is the total of all YARDS with 0 SACK and less than 14 P/KO RET? | CREATE TABLE table_name_31 (yards VARCHAR, sack VARCHAR, p_ko_ret VARCHAR) |
SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452" | What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? | CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR) |
SELECT "Venue" FROM table_75461 WHERE "Competition" = 'pl group b' AND "Score" = '2-2' | Which Venue has a Competition of pl group b, and a Score of 2-2? | CREATE TABLE table_75461 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text
) |
SELECT pick FROM table_name_91 WHERE college = "west virginia" | What is the pick for West Virginia college? | CREATE TABLE table_name_91 (pick VARCHAR, college VARCHAR) |
SELECT no FROM table_18424435_4 WHERE directed_by = "Kelly Makin" AND written_by = "Mark Ellis & Stephanie Morgenstern" | What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern? | CREATE TABLE table_18424435_4 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT COUNT(grid) FROM table_name_83 WHERE time = "+34.121" AND laps > 10 | How many grids were there races with more than 10 laps and a time of +34.121? | CREATE TABLE table_name_83 (
grid VARCHAR,
time VARCHAR,
laps VARCHAR
) |
SELECT round FROM table_name_56 WHERE position = "f/c" AND college = "iowa" | What round has a position of F/C from Iowa College? | CREATE TABLE table_name_56 (round VARCHAR, position VARCHAR, college VARCHAR) |
SELECT MAX(no) FROM table_18424435_4 | What is the maximum number of episodes in the series listed? | CREATE TABLE table_18424435_4 (no INTEGER) |
SELECT COUNT("LinkedIn") FROM table_34026 WHERE "Site" = 'facebook' AND "MySpace" < '64' | How many linkedin have Facebook as the site, with a myspace less than 64? | CREATE TABLE table_34026 (
"Site" text,
"Bebo" real,
"Facebook" real,
"Friendster" real,
"LinkedIn" real,
"MySpace" real,
"Ning" real,
"Orkut" real,
"Plaxo" real
) |
SELECT nationality FROM table_name_49 WHERE pick = "1" | What nationality has a pick of 1? | CREATE TABLE table_name_49 (nationality VARCHAR, pick VARCHAR) |
SELECT COUNT(_number) FROM table_18424435_4 WHERE production_code = 306 | What is the total number of episodes listed with a production code of 306? | CREATE TABLE table_18424435_4 (_number VARCHAR, production_code VARCHAR) |
SELECT SUM(attendance) FROM table_name_22 WHERE report = "sd.hr" AND score = "3–1" AND date = "14 apr 2001" | What is the total attendance with a Report of sd.hr, and a Score of 3 1, and a Date of 14 apr 2001? | CREATE TABLE table_name_22 (
attendance INTEGER,
date VARCHAR,
report VARCHAR,
score VARCHAR
) |
SELECT nationality FROM table_name_15 WHERE round = "1" AND position = "f" AND college = "louisville" | Which nationality has a round of 1, and F position from Louisville? | CREATE TABLE table_name_15 (nationality VARCHAR, college VARCHAR, round VARCHAR, position VARCHAR) |
SELECT directed_by FROM table_18424435_4 WHERE production_code = 301 | Who directed the episode with a production code of 301? | CREATE TABLE table_18424435_4 (directed_by VARCHAR, production_code VARCHAR) |
SELECT "Away team score" FROM table_50492 WHERE "Away team" = 'hawthorn' | When Hawthorn is the away team, what is their score? | CREATE TABLE table_50492 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) |
SELECT away_team FROM table_name_97 WHERE venue = "arden street oval" | Which team plays at the Arden Street Oval? | CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR) |
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.816" | Who wrote the episodes watched by 1.816 million people in Canada? | CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR) |
SELECT name FROM airports WHERE city = 'Goroka' | Find the name of the airport in the city of Goroka. | CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE ... |
SELECT venue FROM table_name_82 WHERE home_team = "carlton" | Where does Carlton play? | CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR) |
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.575" | Who wrote the episodes watched by 1.575 million people in Canada? | CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR) |
SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING COUNT(*) > 2 | Which types of policy are chosen by more than 2 customers? Give me the policy type codes. | CREATE TABLE staff (
staff_id number,
staff_details text
)
CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time,
date_of_settlement time,
amount_claimed number,
amount_piad number
)
CREATE TABLE ... |
SELECT date FROM table_name_7 WHERE home = "grizzlies" AND visitor = "timberwolves" | What was the date of the game in which the home team was the Grizzlies and the visiting team was the Timberwolves? | CREATE TABLE table_name_7 (date VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT directed_by FROM table_18424435_3 WHERE us_air_date = "February 27, 2009" | Who directed the episode aired on February 27, 2009? | CREATE TABLE table_18424435_3 (directed_by VARCHAR, us_air_date VARCHAR) |
SELECT disposals FROM table_name_84 WHERE marks = "134" | What is the number of disposals when marks is 134? | CREATE TABLE table_name_84 (
disposals VARCHAR,
marks VARCHAR
) |
SELECT airing_date FROM table_name_91 WHERE number_of_episodes = 20 AND genre = "costume comedy" | What is the airing date for costume comedy that has 20 episodes? | CREATE TABLE table_name_91 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR) |
SELECT title FROM table_18424435_3 WHERE production_code = 217 | Which episodes had production code 217? | CREATE TABLE table_18424435_3 (title VARCHAR, production_code VARCHAR) |
SELECT MIN("To par") FROM table_60242 WHERE "Player" = 'bob charles' | What is the lowest to par for Bob Charles? | CREATE TABLE table_60242 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) |
SELECT year FROM table_name_24 WHERE film = "7th heaven" | What year was 7th heaven made? | CREATE TABLE table_name_24 (year VARCHAR, film VARCHAR) |
SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington" | For upper Arlington, what was the median household income? | CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR) |
SELECT "Call sign" FROM table_37353 WHERE "ERP W" = '19' | What is the Call sign for the ERP W 19? | CREATE TABLE table_37353 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) |
SELECT film FROM table_name_27 WHERE year = "1999" | What film was made in 1999? | CREATE TABLE table_name_27 (film VARCHAR, year VARCHAR) |
SELECT COUNT(number_of_households) FROM table_1840495_2 WHERE per_capita_income = "$30,298" | With a per capita income of $30,298, what was the total number of households? | CREATE TABLE table_1840495_2 (number_of_households VARCHAR, per_capita_income VARCHAR) |
SELECT Time_of_day, COUNT(*) FROM broadcast GROUP BY Time_of_day | I want to know the proportion of the total number for each time of day. | CREATE TABLE broadcast_share (
Channel_ID int,
Program_ID int,
Date text,
Share_in_percent real
)
CREATE TABLE broadcast (
Channel_ID int,
Program_ID int,
Time_of_day text
)
CREATE TABLE program (
Program_ID int,
Name text,
Origin text,
Launch real,
Owner text
)
CREATE... |
SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28 | what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28? | CREATE TABLE table_name_14 (city VARCHAR, floors VARCHAR, height__m_ VARCHAR, height__ft_ VARCHAR, rank VARCHAR) |
SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188 | If the population is 2188, what was the median household income? | CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population 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(floors) FROM table_name_10 WHERE name = "kölntriangle" AND rank < 63 | what is the total of floors when the name is kölntriangle and rank is less thank 63? | CREATE TABLE table_name_10 (floors INTEGER, name VARCHAR, rank VARCHAR) |
SELECT per_capita_income FROM table_1840495_2 WHERE place = "Pigeon Creek" | For Pigeon Creek what is the per capita income? | CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, place VARCHAR) |
SELECT date FROM table_name_10 WHERE away_team = "north melbourne" | What was the date of the game when North Melbourne was the away team? | CREATE TABLE table_name_10 (
date VARCHAR,
away_team VARCHAR
) |
SELECT MIN(height__ft_) FROM table_name_55 WHERE name = "messeturm" AND floors > 55 | what is the lowest height (ft) for messeturm and more than 55 floors? | CREATE TABLE table_name_55 (height__ft_ INTEGER, name VARCHAR, floors VARCHAR) |
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407" | If the median income is $57,407, what is the per capita income? | CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time > 1200 AND flight.to_airport = AIRPORT_SERVICE_... | is there a flight from DENVER to SAN FRANCISCO on CO leaving after 1200 o'clock in the afternoon | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CR... |
SELECT COUNT(rank) FROM table_name_90 WHERE city = "cologne" AND floors = 34 AND height__ft_ > 452.8 | what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8? | CREATE TABLE table_name_90 (rank VARCHAR, height__ft_ VARCHAR, city VARCHAR, floors VARCHAR) |
SELECT directed_by FROM table_18424435_5 WHERE us_air_date = "July 29, 2011" | Who directed the episode that aired on July 29, 2011? | CREATE TABLE table_18424435_5 (directed_by VARCHAR, us_air_date VARCHAR) |
SELECT DISTINCT t1.c1 FROM (SELECT labevents.valuenum, PERCENT_RANK() OVER (ORDER BY labevents.valuenum) AS c1 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'mcv') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age = (SE... | tell me the percentile of mcv 97.0 in patients of the same age as patient 2127 during the last hospital visit? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.