answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT location FROM table_251272_4 WHERE title_at_the_time = "Prime Minister of Sri Lanka"
Where was the attempt on the Prime Minister of Sri Lanka's life made?
CREATE TABLE table_251272_4 (location VARCHAR, title_at_the_time VARCHAR)
SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria"
What was the stadium in Moorabbin, Victoria built for?
CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
SELECT "Club" FROM table_14454 WHERE "Goals against" < '60' AND "Goal Difference" < '1' AND "Position" = '8'
What club has less than 60 goals against, a goal difference smaller than 1, and a position of 8?
CREATE TABLE table_14454 ( "Position" real, "Club" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Points" real, "Goal Difference" real )
SELECT original_language FROM table_2512935_8 WHERE book_series = "Little House on the Prairie"
What is every original language for book series Little House on the Prairie?
CREATE TABLE table_2512935_8 (original_language VARCHAR, book_series VARCHAR)
SELECT capacity_at_construction FROM table_28885977_1 WHERE location = "Gold Coast, Queensland"
What was the capacity at construction of the stadium in Gold Coast, Queensland?
CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR)
SELECT "location" FROM table_204_164 ORDER BY id DESC LIMIT 1
what is the last location on this chart ?
CREATE TABLE table_204_164 ( id number, "branding" text, "callsign" text, "frequency" text, "power (kw)" text, "location" text )
SELECT approximate_sales FROM table_2512935_8 WHERE author = "Laura Ingalls Wilder"
What are all approximate sales for the author Laura Ingalls Wilder?
CREATE TABLE table_2512935_8 (approximate_sales VARCHAR, author VARCHAR)
SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = "United States"
how many total number of moto2/250cc when country is united states
CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR)
SELECT "Year" FROM table_45631 WHERE "Pick" = '15'
What year was the player pick number 15 picked?
CREATE TABLE table_45631 ( "Year" real, "Pick" text, "Player" text, "Position" text, "College" text )
SELECT MAX(_number) FROM table_25118909_3 WHERE former_school = "Notre Dame Prep"
Name the most number for notre dame prep
CREATE TABLE table_25118909_3 (_number INTEGER, former_school VARCHAR)
SELECT MIN(350 AS cc) FROM table_2889810_2
how many minimum 350cc has
CREATE TABLE table_2889810_2 (Id VARCHAR)
SELECT MAX(population) FROM table_name_17 WHERE location = "scalloway islands" AND island = "trondra"
What is the highest population of Trondra Island in the Scalloway Islands?
CREATE TABLE table_name_17 ( population INTEGER, location VARCHAR, island VARCHAR )
SELECT Ends AS won FROM table_25107064_2 WHERE blank_ends = 0
Name the ends won for blank ends for 0
CREATE TABLE table_25107064_2 (Ends VARCHAR, blank_ends VARCHAR)
SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
how many country has moto3/125cc with 15
CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
SELECT game_site FROM table_name_93 WHERE attendance = "63,336"
What is the location of the game with attendance of 63,336?
CREATE TABLE table_name_93 ( game_site VARCHAR, attendance VARCHAR )
SELECT MIN(stolen_ends) FROM table_25107064_2 WHERE country = Germany
Name the stolen ends for germany
CREATE TABLE table_25107064_2 (stolen_ends INTEGER, country VARCHAR, Germany VARCHAR)
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins"
When arthur collins is the winner what is the reason?
CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)
SELECT date FROM table_name_76 WHERE circuit = "pescara"
Name the date for pescara
CREATE TABLE table_name_76 ( date VARCHAR, circuit VARCHAR )
SELECT MIN(Ends) AS won FROM table_25107064_2 WHERE pf = 78
Name the least ends won for pf being 78
CREATE TABLE table_25107064_2 (Ends INTEGER, pf VARCHAR)
SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui"
When ihaia tainui is the incumbent what is the date?
CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR)
SELECT MAX("Population") FROM table_42260 WHERE "Municipality" = 'porsgrunn'
What is the highest population within the municipality of Porsgrunn?
CREATE TABLE table_42260 ( "City" text, "Municipality" text, "County" text, "Town status" text, "Population" real )
SELECT stadium FROM table_25129482_1 WHERE location = "Kuopio"
What is the stadium in Kuopio?
CREATE TABLE table_25129482_1 (stadium VARCHAR, location VARCHAR)
SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei"
When rangitikei is the electorate who is the winner?
CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR)
SELECT COUNT("player") FROM table_204_783 WHERE "date signed" = 3
total number of players that signed in march ?
CREATE TABLE table_204_783 ( id number, "position" text, "player" text, "free agency\ntag" text, "date signed" text, "2013 team" text )
SELECT kitmaker FROM table_25129482_1 WHERE club = "TPS"
Who is the kitmaker for TPS?
CREATE TABLE table_25129482_1 (kitmaker VARCHAR, club VARCHAR)
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
When waikaia is the electorate what is the highest by-election?
CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)
SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
Show the movie titles and book titles for all companies in China.
CREATE TABLE book_club ( book_club_id number, year number, author_or_editor text, book_title text, publisher text, category text, result text ) CREATE TABLE movie ( movie_id number, title text, year number, director text, budget_million number, gross_worldwide number ) CREATE TABLE culture_company ( company_name text, type text, incorporated_in text, group_equity_shareholding number, book_club_id text, movie_id text )
SELECT MAX(capacity) FROM table_25129482_1
What is the largest capacity for a stadium?
CREATE TABLE table_25129482_1 (capacity INTEGER)
SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881
When 1881 is the by-election and death is the reason who is the incumbent?
CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR)
SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of revenue , and group by attribute headquarter, list in asc by the x-axis.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT stadium FROM table_25129482_1 WHERE manager = "Kari Martonen"
Which stadium is managed by Kari Martonen?
CREATE TABLE table_25129482_1 (stadium VARCHAR, manager VARCHAR)
SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard"
What is the name of the partner that has a winner outcome and a hard surface?
CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'lmb/lmbsac fus post/post') AND STRFTIME('%y', procedures_icd.charttime) >= '2103')
the number of patients who received lmb/lmbsac fus post/post since 2103.
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE 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, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number )
SELECT COUNT(capacity) FROM table_25129482_1 WHERE club = "FF Jaro"
How many capacities are given for FF Jaro club?
CREATE TABLE table_25129482_1 (capacity VARCHAR, club VARCHAR)
SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80
How many week 2 scores have a week 7 score of 40 + 40 = 80?
CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR)
SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366
Which December 4, 1976 week has an attendance less than 57,366?
CREATE TABLE table_name_46 ( week INTEGER, date VARCHAR, attendance VARCHAR )
SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku"
How many managers for club in Turku where kitmaker is Puma?
CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR)
SELECT MIN(week_3) FROM table_28946565_2
What is the smallest week 3 score?
CREATE TABLE table_28946565_2 (week_3 INTEGER)
SELECT COUNT(played) FROM table_13018116_1 WHERE pts_agst = 645
What is the number of played when points against 645?
CREATE TABLE table_13018116_1 ( played VARCHAR, pts_agst VARCHAR )
SELECT COUNT(fox_int_channels_air_date) FROM table_25131572_2 WHERE series__number = 5
How many times was episode 5 in the series aired on Fox int.?
CREATE TABLE table_25131572_2 (fox_int_channels_air_date VARCHAR, series__number VARCHAR)
SELECT couple FROM table_28946565_2 WHERE week_2 = 23
Which couple had a week 2 score of exactly 23?
CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)
SELECT home_team FROM table_name_56 WHERE venue = "windy hill"
Who is the home team based at windy hill?
CREATE TABLE table_name_56 ( home_team VARCHAR, venue VARCHAR )
SELECT score_qualifying FROM table_25143284_1 WHERE score_final = "12.200"
What was the qualifying score of the competition whose final score was 12.200?
CREATE TABLE table_25143284_1 (score_qualifying VARCHAR, score_final VARCHAR)
SELECT series__number FROM table_28967275_3 WHERE episode__number = 68
when 68 is the episode number what is the series number?
CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR)
SELECT chartevents.charttime 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 = 4092)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m-%d', chartevents.charttime) = '07-01' ORDER BY chartevents.charttime LIMIT 1
on 07/01/last year, when was the first time that patient 4092 had a arterial bp mean measured?
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time )
SELECT location FROM table_25143284_1 WHERE score_qualifying = "58.425"
Where was the competition with a qualifying score of 58.425?
CREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR)
SELECT original_air_date FROM table_28967275_3 WHERE episode__number = 69
when 69 is the episode number what is the air date?
CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number 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 (((flight.arrival_time <= 2230 AND flight.arrival_time >= 2130) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CLEVELAND' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ORLANDO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'US'
what are the flights from ORLANDO to CLEVELAND on US that arrive around 10pm
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int )
SELECT COUNT(competition_description) FROM table_25143284_1 WHERE score_final = "15.650"
How many competitions had a final score of 15.650?
CREATE TABLE table_25143284_1 (competition_description VARCHAR, score_final VARCHAR)
SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender"
What draft pick is a goaltender?
CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)
SELECT MIN("Pick") FROM table_52479 WHERE "Team" = 'boston celtics'
What was the lowest pick number for the Boston Celtics?
CREATE TABLE table_52479 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Team" text, "College" text )
SELECT year FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–5)"
In what year was the score 7–5, 7–6 (7–5)?
CREATE TABLE table_2516282_3 (year VARCHAR, score VARCHAR)
SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig"
What position does Olaf Kolzig play?
CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR)
SELECT "School/Club Team" FROM table_9417 WHERE "Round" < '4' AND "Player" = 'jan van breda kolff'
Which team has fewer than 4 rounds for Jan Van Breda Kolff?
CREATE TABLE table_9417 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "School/Club Team" text )
SELECT outcome FROM table_2516282_3 WHERE opponents = "Yan Zi Jie Zheng"
When the opponent was Yan Zi Jie Zheng, what was the outcome?
CREATE TABLE table_2516282_3 (outcome VARCHAR, opponents VARCHAR)
SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden"
What team drafted a player from Sweden?
CREATE TABLE table_2897457_1 (nhl_team VARCHAR, nationality VARCHAR)
SELECT T1.apt_number FROM apartments AS T1 JOIN view_unit_status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM apartments AS T1 JOIN view_unit_status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1
Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.
CREATE TABLE view_unit_status ( apt_id number, apt_booking_id number, status_date time, available_yn others ) CREATE TABLE apartment_buildings ( building_id number, building_short_name text, building_full_name text, building_description text, building_address text, building_manager text, building_phone text ) CREATE TABLE apartment_bookings ( apt_booking_id number, apt_id number, guest_id number, booking_status_code text, booking_start_date time, booking_end_date time ) CREATE TABLE guests ( guest_id number, gender_code text, guest_first_name text, guest_last_name text, date_of_birth time ) CREATE TABLE apartment_facilities ( apt_id number, facility_code text ) CREATE TABLE apartments ( apt_id number, building_id number, apt_type_code text, apt_number text, bathroom_count number, bedroom_count number, room_count text )
SELECT outcome FROM table_2516282_3 WHERE year = 2013
In the year 2013, what was the outcome?
CREATE TABLE table_2516282_3 (outcome VARCHAR, year VARCHAR)
SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = "November 12, 1861"
How many company commanders were commissioned or elected on November 12, 1861?
CREATE TABLE table_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR)
SELECT "Date" FROM table_51562 WHERE "Country" = 'japan'
Which date was for Japan?
CREATE TABLE table_51562 ( "Country" text, "Date" text, "Label" text, "Format" text, "Catalogue #" text )
SELECT partner FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–5)"
Who was the partner when the score was 7–5, 7–6 (7–5)?
CREATE TABLE table_2516282_3 (partner VARCHAR, score VARCHAR)
SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"
In the 250 series on clay what were the scores?
CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR)
SELECT "Wrestler" FROM table_59184 WHERE "Elimination" = '5'
Which Wrestler has an Elimination of 5?
CREATE TABLE table_59184 ( "Elimination" text, "Wrestler" text, "Eliminated by" text, "Elimination Move" text, "Time" text )
SELECT score FROM table_2516282_3 WHERE surface = "Hard (i)"
When the surface was Hard (i), what was the score?
CREATE TABLE table_2516282_3 (score VARCHAR, surface VARCHAR)
SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia"
what is the most amount of cattle where they live in british columbia
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'remov ext immobilization'))
how much does remov ext immobilization cost.
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT championship FROM table_2516282_3 WHERE partner = "Jie Zheng"
In which championship was the partner Jie Zheng?
CREATE TABLE table_2516282_3 (championship VARCHAR, partner VARCHAR)
SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000
what is the most number where cattle is 13000
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR)
SELECT "Streak" FROM table_12895 WHERE "Record" = '21–22'
Which Streak has a Record of 21 22?
CREATE TABLE table_12895 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text )
SELECT COUNT(pf) FROM table_25176088_2 WHERE stolen_ends = 3
What are the number of points for associated with exactly 3 stolen ends?
CREATE TABLE table_25176088_2 (pf VARCHAR, stolen_ends VARCHAR)
SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick"
what is the amount where the area is new brunswick
CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR)
SELECT "Median House- hold Income" FROM table_72554 WHERE "Place" = 'Woodside'
What is the median household income for Woodside?
CREATE TABLE table_72554 ( "Rank" real, "Place" text, "County" text, "Per Capita Income" text, "Median House- hold Income" text, "Population" real, "Number of Households" real )
SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 170
How many position did a player took while weighing 170?
CREATE TABLE table_25177625_1 (position VARCHAR, weight VARCHAR)
SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200
what is the location where there are over 200 cattle businesses
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR)
SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone) DESC
What are the number of the phone numbers for each employee?, rank by the Y from high to low.
CREATE TABLE Artist ( ArtistId integer, Name varchar(120) ) CREATE TABLE Employee ( EmployeeId integer, LastName varchar(20), FirstName varchar(20), Title varchar(30), ReportsTo integer, BirthDate datetime, HireDate datetime, Address varchar(70), City varchar(40), State varchar(40), Country varchar(40), PostalCode varchar(10), Phone varchar(24), Fax varchar(24), Email varchar(60) ) CREATE TABLE Track ( TrackId integer, Name varchar(200), AlbumId integer, MediaTypeId integer, GenreId integer, Composer varchar(220), Milliseconds integer, Bytes integer, UnitPrice decimal(10,2) ) CREATE TABLE PlaylistTrack ( PlaylistId integer, TrackId integer ) CREATE TABLE Customer ( CustomerId integer, FirstName varchar(40), LastName varchar(20), Company varchar(80), Address varchar(70), City varchar(40), State varchar(40), Country varchar(40), PostalCode varchar(10), Phone varchar(24), Fax varchar(24), Email varchar(60), SupportRepId integer ) CREATE TABLE Genre ( GenreId integer, Name varchar(120) ) CREATE TABLE InvoiceLine ( InvoiceLineId integer, InvoiceId integer, TrackId integer, UnitPrice decimal(10,2), Quantity integer ) CREATE TABLE Album ( AlbumId integer, Title varchar(160), ArtistId integer ) CREATE TABLE Playlist ( PlaylistId integer, Name varchar(120) ) CREATE TABLE Invoice ( InvoiceId integer, CustomerId integer, InvoiceDate datetime, BillingAddress varchar(70), BillingCity varchar(40), BillingState varchar(40), BillingCountry varchar(40), BillingPostalCode varchar(10), Total decimal(10,2) ) CREATE TABLE MediaType ( MediaTypeId integer, Name varchar(120) )
SELECT former_school FROM table_25177625_1 WHERE hometown = "East Brunswick, NJ"
What were the former schools of the player from East Brunswick, NJ?
CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1
what is the least amount of cattle head
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)
SELECT country FROM table_name_97 WHERE network = "channel 1"
Which Country has a Network of channel 1?
CREATE TABLE table_name_97 ( country VARCHAR, network VARCHAR )
SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman"
What was the height of this Freshman with a forward position?
CREATE TABLE table_25177625_1 (height VARCHAR, position VARCHAR, year VARCHAR)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario"
what is the least amount of milk cattle in ontario
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 549
How small is 549 ?
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) 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 )
SELECT start_date_of__first__term FROM table_25182437_1 WHERE date_of_birth = "1961-08-09 9 August 1961"
If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term?
CREATE TABLE table_25182437_1 (start_date_of__first__term VARCHAR, date_of_birth VARCHAR)
SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81"
What is the production code of the episode that was watched by 3.81 million U.S. viewers?
CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT date, AVG(cloud_cover) FROM weather ORDER BY AVG(cloud_cover) DESC
For those dates that have the 5 highest cloud cover rates, please bin the date into Year interval and compute their average cloud cover, rank by the y axis from high to low.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pressure_inches NUMERIC, mean_sea_level_pressure_inches NUMERIC, min_sea_level_pressure_inches NUMERIC, max_visibility_miles INTEGER, mean_visibility_miles INTEGER, min_visibility_miles INTEGER, max_wind_Speed_mph INTEGER, mean_wind_speed_mph INTEGER, max_gust_speed_mph INTEGER, precipitation_inches INTEGER, cloud_cover INTEGER, events TEXT, wind_dir_degrees INTEGER, zip_code INTEGER ) CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE trip ( id INTEGER, duration INTEGER, start_date TEXT, start_station_name TEXT, start_station_id INTEGER, end_date TEXT, end_station_name TEXT, end_station_id INTEGER, bike_id INTEGER, subscription_type TEXT, zip_code INTEGER ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT )
SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer"
If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?
CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR)
SELECT written_by FROM table_29087004_2 WHERE production_code = 116
Who wrote the episode with a production code of 116?
CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR)
SELECT name FROM sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb', 'Data.StackExchange')
All questions and answers by user, rendered as HTML.
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) 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 PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) 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, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text )
SELECT population FROM table_25200461_9 WHERE city = "Gilroy"
What is the population if the city is Gilroy?
CREATE TABLE table_25200461_9 (population VARCHAR, city VARCHAR)
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
What number episode in the series had and original United States air date of December 24, 2010?
CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
CREATE TABLE table_name_43 ( bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR )
SELECT city FROM table_25200461_9 WHERE democratic = "42.5%"
If Democratic is 42.5%, what is the city?
CREATE TABLE table_25200461_9 (city VARCHAR, democratic VARCHAR)
SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?
CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.days_stay > "34"
how many patients transferred within this facility have stayed in the hospital for more than 34 days?
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 ) 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear 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 ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT MIN(population) FROM table_25200461_9 WHERE registered_voters = "66.8%"
If the registered voters is 66.8%, what is the minimum population?
CREATE TABLE table_25200461_9 (population INTEGER, registered_voters VARCHAR)
SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris"
What is the original United States air date of the episode written by Mike Ferris?
CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR)
SELECT "Away team" FROM table_74685 WHERE "Venue" = 'punt road oval'
Which team was the away team when the game was at punt road oval?
CREATE TABLE table_74685 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT other FROM table_25200461_9 WHERE city = "Los Gatos"
What is the other is the city is Los Gatos?
CREATE TABLE table_25200461_9 (other VARCHAR, city VARCHAR)
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe"
Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe?
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
What place has a To par of +4 and a score of 74-70-74-74=292?
CREATE TABLE table_name_77 ( place VARCHAR, to_par VARCHAR, score VARCHAR )
SELECT d_r_spread FROM table_25200461_9 WHERE no_party_preference = "31.8%"
What is the d-r spread if the no party preference is 31.8%?
CREATE TABLE table_25200461_9 (d_r_spread VARCHAR, no_party_preference VARCHAR)