answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT _number FROM table_15781170_2 WHERE poll_winner = "YouTube" | Name the # for youtube | CREATE TABLE table_15781170_2 (_number VARCHAR, poll_winner VARCHAR) |
SELECT COUNT("Score") FROM table_47057 WHERE "Country" = 'fiji' | What was the score for the golfer from the country of fiji? | CREATE TABLE table_47057 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT driver FROM table_name_84 WHERE grid = 13 | who is the driver with the grid of 13? | CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR) |
SELECT original_air_date FROM table_15781170_3 WHERE poll_winner = "Scientology" | What are the original air dates when scientology isthe poll winner? | CREATE TABLE table_15781170_3 (original_air_date VARCHAR, poll_winner VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "ROSI8" | provide the number of patients whose drug code is rosi8. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976 | How many championships did the team or teams established in 1976 win? | CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR) |
SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers" | When bloggers was the poll winner, who was the root of all evil? | CREATE TABLE table_15781170_3 (root_of_all_evil VARCHAR, poll_winner VARCHAR) |
SELECT "Country" FROM table_12327 WHERE "Player" = 'eduardo romero' | Where is Eduardo Romero from? | CREATE TABLE table_12327 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT MAX(established) FROM table_name_54 WHERE league = "wnba" AND championships > 2 | Which WNBA team that won at least 2 championships was established most recently? | CREATE TABLE table_name_54 (established INTEGER, league VARCHAR, championships VARCHAR) |
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games" | How many times did drinking games win the poll? | CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR) |
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 GROUP BY date ORDER BY date | A line chart for what are the number of the dates with a maximum temperature higher than 85?, rank by the X from low to high. | CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
... |
SELECT venue FROM table_name_39 WHERE league = "wnba" | What are the venues that host WNBA games? | CREATE TABLE table_name_39 (venue VARCHAR, league VARCHAR) |
SELECT broadcast_date FROM table_1579922_1 WHERE run_time = "24:30" | What date was an episode with a run time of 24:30 broadcasted? | CREATE TABLE table_1579922_1 (broadcast_date VARCHAR, run_time VARCHAR) |
SELECT school_club_team FROM table_name_93 WHERE player = "michael stewart" | What is Michael Stewart's school or club team? | CREATE TABLE table_name_93 (
school_club_team VARCHAR,
player VARCHAR
) |
SELECT bowling_style FROM table_name_10 WHERE date_of_birth = "16 march 1974" | Name the bowling style of the player born 16 march 1974 | CREATE TABLE table_name_10 (bowling_style VARCHAR, date_of_birth VARCHAR) |
SELECT episode FROM table_1579922_1 WHERE run_time = "24:25" | What episode had a run time of 24:25? | CREATE TABLE table_1579922_1 (episode VARCHAR, run_time VARCHAR) |
SELECT title FROM table_29273182_1 WHERE no_in_series = 29 | What is the name of episode number 29 in the series? | CREATE TABLE table_29273182_1 (
title VARCHAR,
no_in_series VARCHAR
) |
SELECT batting_style FROM table_name_57 WHERE player = "heath streak" | Name the batting style for heath streak | CREATE TABLE table_name_57 (batting_style VARCHAR, player VARCHAR) |
SELECT original_artist FROM table_15796072_1 WHERE week__number = "Top 16 (8 Women)" | Who was the original artist for week number Top 16 (8 women)? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.fluid = "Pleural" | give me the number of patients whose admission location is phys referral/normal deli and lab test fluid is pleural? | 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 name FROM table_name_87 WHERE floors = 52 | What is the name of a building that has 52 floors? | CREATE TABLE table_name_87 (name VARCHAR, floors VARCHAR) |
SELECT order__number FROM table_15796072_1 WHERE original_artist = "The Doors" | What was the order number where the original artist is The Doors? | CREATE TABLE table_15796072_1 (order__number VARCHAR, original_artist VARCHAR) |
SELECT MIN(attendance) FROM table_name_26 WHERE home_team = "welling united" | What is the lowest Attendance, when Home Team is 'Welling United'? | CREATE TABLE table_name_26 (
attendance INTEGER,
home_team VARCHAR
) |
SELECT COUNT(floors) FROM table_name_95 WHERE name = "custom house tower" | How many floors does the Custom House Tower have? | CREATE TABLE table_name_95 (floors VARCHAR, name VARCHAR) |
SELECT theme FROM table_15796072_1 WHERE original_artist = "The Beatles" | What was the theme when the original artist was The Beatles? | CREATE TABLE table_15796072_1 (theme VARCHAR, original_artist VARCHAR) |
SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = "United Nations Observer Mission Uganda-Rwanda" | What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active? | CREATE TABLE table_15652027_1 (
extortion_theft_3 VARCHAR,
united_nations_mission VARCHAR
) |
SELECT MAX(floors) FROM table_name_52 WHERE street_address = "800 boylston street" | How many floors does the building on 800 Boylston Street have? | CREATE TABLE table_name_52 (floors INTEGER, street_address VARCHAR) |
SELECT original_artist FROM table_15796072_1 WHERE theme = "1980s" | Who was the original artist when the theme was 1980s? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, theme VARCHAR) |
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '012-39576' AND STRFTIME('%y', patient.hospitaldischargetime) = '2102' ORDER BY patient.hospitaldischargetime LIMIT 1 | when did patient 012-39576 get discharged from the hospital in 2102 for the first time? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
... |
SELECT street_address FROM table_name_17 WHERE name = "prudential tower" | What is the street address for the Prudential Tower building? | CREATE TABLE table_name_17 (street_address VARCHAR, name VARCHAR) |
SELECT original_artist FROM table_15796072_1 WHERE order__number = "9" | Who was the original artist when the order number is 9? | CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Maalox/Diphenhydramine/Lidocaine" AND prescriptions.route = "PO" | to how many patients was the drug maalox/diphenhydramine/lidocaine administered via po route? | 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 demographic ... |
SELECT SUM(floors) FROM table_name_81 WHERE street_address = "800 boylston street" | There is a building at 800 Boylston Street, how many floors does it have? | CREATE TABLE table_name_81 (floors INTEGER, street_address VARCHAR) |
SELECT episodes FROM table_15823956_1 WHERE region_1 = "N/A" | Which episode was N/A in region 1 | CREATE TABLE table_15823956_1 (episodes VARCHAR, region_1 VARCHAR) |
SELECT "Arena" FROM table_55106 WHERE "Capacity" = '1,100' | Which arena has a capactiy of 1,100? | CREATE TABLE table_55106 (
"Team" text,
"City/Area" text,
"Arena" text,
"Capacity" text,
"Last season" text
) |
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8 | What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8? | CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR) |
SELECT series AS premiere FROM table_15823956_1 WHERE series = "Pilot" | When was series premiere on the pilot episode | CREATE TABLE table_15823956_1 (series VARCHAR) |
SELECT Service_Type_Description, COUNT(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 GROUP BY Service_Type_Description ORDER BY COUNT(Service_Type_Description) DESC | Give me the number of the descriptions of the service types that cost more than 100, I want to sort in desc by the Y-axis. | CREATE TABLE Stores (
Store_ID VARCHAR(100),
Address_ID INTEGER,
Marketing_Region_Code CHAR(15),
Store_Name VARCHAR(255),
Store_Phone VARCHAR(255),
Store_Email_Address VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Products (
Product_ID VARCHAR(100),
Product_Name VARCHAR(25... |
SELECT number_of_jews__wjc_ FROM table_name_96 WHERE rank___wjc__ = 6 | What was the number of WJC Jews with a WJC rank of 6? | CREATE TABLE table_name_96 (number_of_jews__wjc_ VARCHAR, rank___wjc__ VARCHAR) |
SELECT region_1 FROM table_15823956_1 WHERE series = "4" | What is the region 1 date for series 4 | CREATE TABLE table_15823956_1 (region_1 VARCHAR, series VARCHAR) |
SELECT replaced_by FROM table_22297198_3 WHERE date_of_vacancy = "12 Dec 2009" | Who was the replacement manager for the vacancy of 12 Dec 2009? | CREATE TABLE table_22297198_3 (
replaced_by VARCHAR,
date_of_vacancy VARCHAR
) |
SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = "los angeles" AND rank__arda_ > 2 | How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2? | CREATE TABLE table_name_73 (number_of_jews__wjc_ INTEGER, metro_area VARCHAR, rank__arda_ VARCHAR) |
SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date = "December 5, 1953" | What season began on december 5, 1953? | CREATE TABLE table_15824796_3 (season__number INTEGER, original_air_date VARCHAR) |
SELECT home_team FROM table_name_89 WHERE away_team = "collingwood" | Who did Collingwood play at home? | CREATE TABLE table_name_89 (
home_team VARCHAR,
away_team VARCHAR
) |
SELECT driver FROM table_name_55 WHERE laps < 19 AND time_retired = "ignition" | Who drove during the race with less than 19 laps and a time listed as ignition? | CREATE TABLE table_name_55 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) |
SELECT title FROM table_15824796_3 WHERE original_air_date = "February 27, 1954" | What is the title of the first episode of the season that begin on february 27, 1954? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = "#56 Blue Thunder Racing" AND gto_winning_team = "#38 Mandeville Auto Tech" | What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team? | CREATE TABLE table_13643320_2 (
rnd VARCHAR,
gtp_winning_team VARCHAR,
gto_winning_team VARCHAR
) |
SELECT record FROM table_name_90 WHERE round > 2 AND event = "raging wolf 6: mayhem in the mist" | What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist? | CREATE TABLE table_name_90 (record VARCHAR, round VARCHAR, event VARCHAR) |
SELECT title FROM table_15824796_3 WHERE original_air_date = "December 12, 1953" | What is the title of the episode that aired on december 12, 1953? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1" | What is the 1st leg of the team with a 2-1 agg.? | CREATE TABLE table_name_13 (
agg VARCHAR
) |
SELECT MAX(crowd) FROM table_name_54 WHERE venue = "moorabbin oval" | What is the highest number of people that attended a game at Moorabbin Oval? | CREATE TABLE table_name_54 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(title) FROM table_15824796_3 WHERE original_air_date = "February 13, 1954" | How many episodes aired on february 13, 1954? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT "Driver(s)" FROM table_3202 WHERE "Engine" = 'Chevrolet' AND "Car Sponsor(s)" = 'GoDaddy.com' | Who is the driver of the Chevrolet engine that is sponsored by godaddy.com? | CREATE TABLE table_3202 (
"Team" text,
"#" real,
"Car Sponsor(s)" text,
"Driver(s)" text,
"Listed Owner(s)" text,
"Engine" text,
"Chassis" text
) |
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "essendon" | What is the least amount of people that attended a game when Essendon was the away team? | CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR) |
SELECT cfl_team FROM table_15817998_5 WHERE pick__number = 36 | What are all the CFL teams where the pick number is 36? | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, pick__number VARCHAR) |
SELECT "Time/Retired" FROM table_58776 WHERE "Laps" < '14' AND "Rider" = 'darren barton' | Which Time/Retired has Laps smaller than 14, and a Rider of darren barton? | CREATE TABLE table_58776 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT date FROM table_name_74 WHERE away_team = "south melbourne" | Which date did South Melbourne play as the away team? | CREATE TABLE table_name_74 (date VARCHAR, away_team VARCHAR) |
SELECT position FROM table_15817998_5 WHERE college = "Alberta" | What are the positions in the college of Alberta? | CREATE TABLE table_15817998_5 (position VARCHAR, college VARCHAR) |
SELECT "Opponent" FROM table_43835 WHERE "Site" = 'legion field • birmingham, al' | Who was the opponent when they played at the legion field birmingham, al site? | CREATE TABLE table_43835 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
) |
SELECT constructor FROM table_name_3 WHERE driver = "jackie stewart" | What is the constructor for Jackie Stewart's car? | CREATE TABLE table_name_3 (constructor VARCHAR, driver VARCHAR) |
SELECT COUNT(cfl_team) FROM table_15817998_5 WHERE college = "Wilfrid Laurier" | What is the total number of CFL teams in the college Wilfrid Laurier | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, college VARCHAR) |
SELECT "Copa Libertadores 1999" FROM table_39175 WHERE "Copa Mercosur 1999" = 'group stage' AND "Team" = 'vasco' | What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999? | CREATE TABLE table_39175 (
"Team" text,
"Copa Libertadores 1999" text,
"Copa Mercosur 1999" text,
"Copa CONMEBOL 1999" text,
"Intercontinental Cup 1999" text
) |
SELECT location FROM table_name_54 WHERE driver = "denny hulme" | What is the location where Denny Hulme was the driver? | CREATE TABLE table_name_54 (location VARCHAR, driver VARCHAR) |
SELECT college FROM table_15817998_5 WHERE player = "Jeffrey Simmer" | What is the college that Jeffrey Simmer plays for? | CREATE TABLE table_15817998_5 (college VARCHAR, player VARCHAR) |
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | what are the four most frequent procedures for patients with an age 40s? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... |
SELECT train_no FROM table_name_87 WHERE origin = "secunderabad junction" | What is number of the train that originated in Secunderabad Junction? | CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR) |
SELECT MIN(matches) FROM table_15829930_5 WHERE year = 2008 | Name the least matches for year 2008 | CREATE TABLE table_15829930_5 (matches INTEGER, year VARCHAR) |
SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 6 | What is the sum of Total ranking 9 and a Gold more than 6 | CREATE TABLE table_name_74 (
total INTEGER,
rank VARCHAR,
gold VARCHAR
) |
SELECT origin FROM table_name_29 WHERE destination = "anand vihar terminal" | From where did the train that arrived in the Anand Vihar Terminal originate? | CREATE TABLE table_name_29 (origin VARCHAR, destination VARCHAR) |
SELECT MAX(wins) FROM table_15829930_5 WHERE success_rate = "68.75%" | Name the maximum wins for 68.75% | CREATE TABLE table_15829930_5 (wins INTEGER, success_rate VARCHAR) |
SELECT "English country name" FROM table_7047 WHERE "English capital name" = 'ramallah' | What is the English name of the country that has Ramallah as its capital? | CREATE TABLE table_7047 (
"English country name" text,
"Arabic romanised country name" text,
"Arabic country name" text,
"English capital name" text,
"Arabic romanised capital name" text,
"Arabic capital name" text
) |
SELECT origin FROM table_name_15 WHERE train_no = "15929/30" | From where did Train No. 15929/30 originate? | CREATE TABLE table_name_15 (origin VARCHAR, train_no VARCHAR) |
SELECT summary FROM table_15829930_5 WHERE success_rate = "68.75%" | Name the summary for the success rate for 68.75% | CREATE TABLE table_15829930_5 (summary VARCHAR, success_rate VARCHAR) |
SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = "arizona" AND round > 11 | How many times was Arizona the team and the round was bigger than 11? | CREATE TABLE table_name_86 (
overall VARCHAR,
school_club_team VARCHAR,
round VARCHAR
) |
SELECT frequency FROM table_name_82 WHERE destination = "bangalore" | What is the frequency of the train to Bangalore? | CREATE TABLE table_name_82 (frequency VARCHAR, destination VARCHAR) |
SELECT MIN(tied) FROM table_15829930_5 | Name the least tied | CREATE TABLE table_15829930_5 (tied INTEGER) |
SELECT year, COUNT(year) FROM home_game | How many home games by each weekday (bin the year attr into weekdays interval)? Give me a bar chart. | CREATE TABLE batting (
player_id TEXT,
year INTEGER,
stint INTEGER,
team_id TEXT,
league_id TEXT,
g INTEGER,
ab NUMERIC,
r NUMERIC,
h NUMERIC,
double NUMERIC,
triple NUMERIC,
hr NUMERIC,
rbi NUMERIC,
sb NUMERIC,
cs NUMERIC,
bb NUMERIC,
so NUMERIC,
... |
SELECT COUNT(norwegian_americans__2009_) FROM table_name_72 WHERE norwegian_americans__2000_ = 109 OFFSET 744 | How many Norwegian Americans have Norwegian Americans (2000) of 109,744? | CREATE TABLE table_name_72 (norwegian_americans__2009_ VARCHAR, norwegian_americans__2000_ VARCHAR) |
SELECT MIN(wins) FROM table_15829930_5 WHERE success_rate = "56.25%" | Name the least wins of 56.25% | CREATE TABLE table_15829930_5 (wins INTEGER, success_rate VARCHAR) |
SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 88409 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | what is patient 88409's insurance on their last hospital encounter? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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,
insurance text,
lan... |
SELECT state FROM table_name_95 WHERE percent__2009_ = "6.2%" | Which state has a Percent (2009) of 6.2%? | CREATE TABLE table_name_95 (state VARCHAR, percent__2009_ VARCHAR) |
SELECT COUNT(no) FROM table_15827397_1 WHERE name = "City of Birmingham" | How many locomotives have a name of City of Birmingham | CREATE TABLE table_15827397_1 (no VARCHAR, name VARCHAR) |
SELECT COUNT(*) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16572)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tpn' AND d_i... | count the number of times that patient 16572 has taken tpn. | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
... |
SELECT holding FROM table_name_56 WHERE component = "customers" | What is the holding of the customers? | CREATE TABLE table_name_56 (holding VARCHAR, component VARCHAR) |
SELECT COUNT(name) FROM table_15827397_1 WHERE livery = "Highland Railway green" | How many locomotives have a livery that is highland railway green | CREATE TABLE table_15827397_1 (name VARCHAR, livery VARCHAR) |
SELECT rally_hq FROM table_name_62 WHERE rally_name = "adac rally deutschland" | Where was adac rally deutschland's rally HQ? | CREATE TABLE table_name_62 (
rally_hq VARCHAR,
rally_name VARCHAR
) |
SELECT allied_unrelated FROM table_name_61 WHERE allied_related = "common" | What Allied-Unrelated is labeled as "common"? | CREATE TABLE table_name_61 (allied_unrelated VARCHAR, allied_related VARCHAR) |
SELECT locomotive_type FROM table_15827397_1 WHERE status = "Static display" | Which locomotive type has a status in static display | CREATE TABLE table_15827397_1 (locomotive_type VARCHAR, status VARCHAR) |
SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 | What is the total number of bronze medals for teams with less than 0 silver? | CREATE TABLE table_name_98 (
bronze VARCHAR,
silver INTEGER
) |
SELECT integrated FROM table_name_40 WHERE allied_related = "some shared" | Which integrated has an allied-related of some shared? | CREATE TABLE table_name_40 (integrated VARCHAR, allied_related VARCHAR) |
SELECT MAX(points_against) FROM table_15847691_2 WHERE attendance = 47678 | What is the maximum number of points against when the attendance was 47678? | CREATE TABLE table_15847691_2 (points_against INTEGER, attendance VARCHAR) |
SELECT headquarters FROM companies GROUP BY headquarters HAVING COUNT(*) > 2 | Which headquarter locations are used by more than 2 companies? | CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
)
CREATE TABLE buildings (
id number,
name text,
city text,
height number,
stories number,
... |
SELECT integrated FROM table_name_11 WHERE allied_related = "centralized" | What integrated has an allied-related of centralized? | CREATE TABLE table_name_11 (integrated VARCHAR, allied_related VARCHAR) |
SELECT COUNT(first_downs) FROM table_15847691_2 WHERE date = "October 23" | What was the total number of first down on October 23? | CREATE TABLE table_15847691_2 (first_downs VARCHAR, date VARCHAR) |
SELECT author_id, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | Show me about the correlation between author_id and author_tutor_ATB in a scatter chart. | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subje... |
SELECT component FROM table_name_21 WHERE integrated = "one" | What component has an integrated of one? | CREATE TABLE table_name_21 (component VARCHAR, integrated VARCHAR) |
SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = "Giula Sandler" | Name the most series number for giula sandler | CREATE TABLE table_15838081_3 (series__number INTEGER, writer_s_ VARCHAR) |
SELECT "Original air dates" FROM table_25747 WHERE "Prod. code" = '201' | Name the original air date for prod code 201 | CREATE TABLE table_25747 (
"#" text,
"Original title" text,
"Directed by" text,
"Written by" text,
"Original air dates" text,
"Prod. code" real
) |
SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0 | How many candidates had 0 percent of the vote in 1999? | CREATE TABLE table_name_71 (candidates VARCHAR, seats_won VARCHAR, _percentage_of_vote VARCHAR, election VARCHAR) |
SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = "Jeff Truman" | Name the number of season number for jeff truman | CREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.