answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT total_freshwater_withdrawal__km_3__yr_ FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1029(96%)" | In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)? | CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) |
SELECT (SELECT SUM(inputevents_cv.amount) 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 = 1489)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) >= '2102-07-28') - (SELE... | tell me the difference between the total output of patient 1489 and the total input since 07/28/2102. | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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,
... |
SELECT state FROM table_name_72 WHERE current_governor = "susana martinez" | What state is susana martinez from? | CREATE TABLE table_name_72 (state VARCHAR, current_governor VARCHAR) |
SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "794(86%)" | What was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)? | CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) |
SELECT "Total Apps" FROM table_65283 WHERE "League Apps" = '4 (2)' | what is the total apps when the league apps is 4 (2)? | CREATE TABLE table_65283 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"FLT Apps" text,
"FLT Goals" real,
"Total Apps" text,
"Total Goals" real
) |
SELECT home_team AS score FROM table_name_70 WHERE away_team = "hawthorn" | What is the Home team score when away team is hawthorn? | CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(country) FROM table_15909409_2 WHERE total_freshwater_withdrawal__km_3__yr_ = "169.39" | In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39? | CREATE TABLE table_15909409_2 (country VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR) |
SELECT mixed_doubles FROM table_14903627_1 WHERE womens_singles = "Kairi Viilup" | WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP? | CREATE TABLE table_14903627_1 (
mixed_doubles VARCHAR,
womens_singles VARCHAR
) |
SELECT league FROM table_name_64 WHERE team = "ordabasy-2" | What league is ordabasy-2 in? | CREATE TABLE table_name_64 (league VARCHAR, team VARCHAR) |
SELECT date FROM table_1590652_4 WHERE winning_score = 67 - 67 - 63 = 197 | Name the date of winning score being 67-67-63=197 | CREATE TABLE table_1590652_4 (date VARCHAR, winning_score VARCHAR) |
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = "207 (-9)" AND tournament = "gte northwest classic" | For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($) | CREATE TABLE table_name_71 (
score VARCHAR,
tournament VARCHAR
) |
SELECT date FROM table_name_50 WHERE away_team = "richmond" | On what date was Richmond hosted as the away team? | CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR) |
SELECT runner_s__up FROM table_1590652_4 WHERE tournament = "WGC-Accenture Match Play Championship" | Name the runners up for when tournament is wgc-accenture match play championship | CREATE TABLE table_1590652_4 (runner_s__up VARCHAR, tournament VARCHAR) |
SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = "12%" | Name the csa 4/16/09 for opinionway being 4/17/09 of 12% | CREATE TABLE table_name_17 (
csa_4_16_09 VARCHAR,
opinionway_4_17_09 VARCHAR
) |
SELECT hindu FROM table_name_87 WHERE jewish = "source: uk 2001 census" | Tell me the Hindu with Jewish of source: uk 2001 census | CREATE TABLE table_name_87 (hindu VARCHAR, jewish VARCHAR) |
SELECT COUNT(no) FROM table_1590652_4 WHERE date = "30 May 2010" | Name the total number when date is 30 may 2010 | CREATE TABLE table_1590652_4 (no VARCHAR, date VARCHAR) |
SELECT winning_team FROM table_18095719_2 WHERE circuit = "Zolder" | Who was the winning team on the circuit Zolder? | CREATE TABLE table_18095719_2 (
winning_team VARCHAR,
circuit VARCHAR
) |
SELECT ethnic_group FROM table_name_77 WHERE jewish = "0.47%" | Tell me the ethnic group for jewish of 0.47% | CREATE TABLE table_name_77 (ethnic_group VARCHAR, jewish VARCHAR) |
SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011" | Name th margin of victory when date is 10 jul 2011 | CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR) |
SELECT singapore_gross FROM table_name_74 WHERE title = "2000" | What is the Singapore Gross with a Title that is 2000? | CREATE TABLE table_name_74 (
singapore_gross VARCHAR,
title VARCHAR
) |
SELECT hindu FROM table_name_4 WHERE ethnic_group = "white irish" | Tell me the Hindu for ethnic group for white irish | CREATE TABLE table_name_4 (hindu VARCHAR, ethnic_group VARCHAR) |
SELECT MAX(no) FROM table_1590652_4 WHERE tournament = "Madrid Masters" | Name the most number when tournament is madrid masters | CREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR) |
SELECT MAX(blocks) FROM table_25342713_5 WHERE steals = 20 | If the Steals are 20, what are the blocks? | CREATE TABLE table_25342713_5 (
blocks INTEGER,
steals VARCHAR
) |
SELECT ethnic_group FROM table_name_94 WHERE buddhist = "0.19%" | Name the ethnic group with a buddhist of 0.19% | CREATE TABLE table_name_94 (ethnic_group VARCHAR, buddhist VARCHAR) |
SELECT MAX(episode_number) FROM table_1590967_2 WHERE air_date = "6 January 2006" | Name the most episode numbers of 6 january 2006 | CREATE TABLE table_1590967_2 (episode_number INTEGER, air_date VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-695... | how many days has it been since the first time ipratropium-albuterol 0.5 mg-3 mg(2.5 mg base)/3 ml inhl neb soln was prescribed during their current hospital encounter to patient 022-6959? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... |
SELECT attendance FROM table_name_24 WHERE week = 8 | What was the attendance of week 8? | CREATE TABLE table_name_24 (attendance VARCHAR, week VARCHAR) |
SELECT COUNT(validation) FROM table_15905399_1 WHERE iin_ranges = "36" | How many validations are listed for the iin range 36? | CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR) |
SELECT Name FROM WINE WHERE YEAR < (SELECT MIN(YEAR) FROM WINE WHERE Winery = "Brander") | What are the names of wines whose production year are before the year of all wines by Brander winery? | CREATE TABLE WINE (
Name VARCHAR,
YEAR INTEGER,
Winery VARCHAR
) |
SELECT away_team FROM table_name_95 WHERE home_team = "carlton" | Who was the opponent of carlton at their home game? | CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) |
SELECT validation FROM table_15905399_1 WHERE iin_ranges = "5610, 560221-560225" | What is the validation for iin ranges 5610, 560221-560225? | CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR) |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | i want to fly from BOSTON to ATLANTA i would like the cheapest fare please | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varcha... |
SELECT result FROM table_name_46 WHERE goal = 3 | Tell me the result for 3 goals | CREATE TABLE table_name_46 (result VARCHAR, goal VARCHAR) |
SELECT length FROM table_15905399_1 WHERE iin_ranges = "51-55" | What is the length for iin range 51-55? | CREATE TABLE table_15905399_1 (length VARCHAR, iin_ranges VARCHAR) |
SELECT nation FROM table_name_31 WHERE gold > 1 AND total = 62 | What is the nation that had more than 1 gold medal and a total of 62 medals? | CREATE TABLE table_name_31 (
nation VARCHAR,
gold VARCHAR,
total VARCHAR
) |
SELECT score FROM table_name_8 WHERE date = "november 16" | Name the score for november 16 | CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) |
SELECT active FROM table_15905399_1 WHERE iin_ranges = "4" | Is the iin range 4 active? | CREATE TABLE table_15905399_1 (active VARCHAR, iin_ranges VARCHAR) |
SELECT "Opposition" FROM table_75867 WHERE "Round" = 'quarter-final' | Who were the opposition in the quarter-final? | CREATE TABLE table_75867 (
"Round" text,
"Opposition" text,
"First leg" text,
"Second leg" text,
"Aggregate score" text
) |
SELECT away_team AS score FROM table_name_6 WHERE home_team = "hawthorn" | What is the Away Team Score of the Hawthorn Home Team? | CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(episode_number) FROM table_1590967_7 WHERE guest_host = "Pamela Anderson" | What episode did Pamela Anderson guest host. | CREATE TABLE table_1590967_7 (episode_number VARCHAR, guest_host VARCHAR) |
SELECT MIN(highest_position) FROM table_13805432_2 WHERE artist = "Paul Evans" | what is the minimum highest position with artbeingt being paul evans | CREATE TABLE table_13805432_2 (
highest_position INTEGER,
artist VARCHAR
) |
SELECT away_team AS score FROM table_name_26 WHERE away_team = "collingwood" | What is the Away Team Score of the Collingwood Home Team? | CREATE TABLE table_name_26 (away_team VARCHAR) |
SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = "Barbara Windsor" | What song was performed when Barbara Windsor was the guest host? | CREATE TABLE table_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR) |
SELECT type FROM table_name_28 WHERE country = "eng" AND name = "elding" | What type of move was Elding from ENG? | CREATE TABLE table_name_28 (
type VARCHAR,
country VARCHAR,
name VARCHAR
) |
SELECT away_team FROM table_name_45 WHERE venue = "arden street oval" | What Away Team's venue is Arden Street Oval? | CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR) |
SELECT weight__kg_ FROM table_15926991_1 WHERE jockey = "D. Nikolic" | What is the entry for weight in kilograms of jockey D. Nikolic? | CREATE TABLE table_15926991_1 (weight__kg_ VARCHAR, jockey VARCHAR) |
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson" | When Tom Watson placed t6, what was the 2 par? | CREATE TABLE table_name_35 (
to_par VARCHAR,
place VARCHAR,
player VARCHAR
) |
SELECT MIN(laps) FROM table_name_41 WHERE time_retired = "accident" AND grid > 13 | Name the least Laps for accident and gird more than 13 | CREATE TABLE table_name_41 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) |
SELECT group FROM table_15926991_1 WHERE time = "1:11.65" | Which group had the time 1:11.65? | CREATE TABLE table_15926991_1 (group VARCHAR, time VARCHAR) |
SELECT COUNT(*) FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE population > 20000) | Show the number of cities in counties that have a population more than 20000. | CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
)
CREATE TABLE city (
city_id number,
county_id number,
name ... |
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70 | Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70 | CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR) |
SELECT winner_2nd FROM table_15926991_1 WHERE time = "1:35.98" | Which horse won with a time of 1:35.98 and what was their position? | CREATE TABLE table_15926991_1 (winner_2nd VARCHAR, time VARCHAR) |
SELECT word_form FROM table_name_55 WHERE ala_lc = "muay s″ain" | What is the word form for the ALA-LC transliteration of muay s ain? | CREATE TABLE table_name_55 (
word_form VARCHAR,
ala_lc VARCHAR
) |
SELECT venue FROM table_name_62 WHERE away_team = "south melbourne" | In what venue was the away team South Melbourne? | CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR) |
SELECT engine_type FROM table_15944_5 WHERE scenario = "Space shuttle vacuum" | What engine type is used in a Space Shuttle Vacuum scenario? | CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR) |
SELECT "model" FROM table_203_42 ORDER BY "starting price" DESC LIMIT 1 | which model had the highest starting price | CREATE TABLE table_203_42 (
id number,
"model" text,
"class" text,
"length" text,
"fuel" text,
"starting price" text
) |
SELECT venue FROM table_name_2 WHERE away_team = "carlton" | Where did the away team Carlton play? | CREATE TABLE table_name_2 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(effective_exhaust_velocity__m_s_) FROM table_15944_5 WHERE scenario = "Space shuttle vacuum" | What is the effective exhaust velocity in a Space Shuttle Vacuum? | CREATE TABLE table_15944_5 (effective_exhaust_velocity__m_s_ VARCHAR, scenario VARCHAR) |
SELECT MIN("Points") FROM table_69425 WHERE "Engine" = 'climax v8' AND "Year" < '1963' | Before the year 1963 what was the fewest points the climax v8 engine had? | CREATE TABLE table_69425 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) |
SELECT home_team FROM table_name_73 WHERE away_team = "richmond" | What home team played against Richmond? | CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) |
SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423 | What is the maximum specific impulse with a 4423 m/s effective exhaust velocity? | CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR) |
SELECT Id, Tags FROM Posts AS p1 WHERE p1.Tags LIKE '%' + @tag + '%' AND p1.PostTypeId = 1 EXCEPT (SELECT ParentId, Tags FROM Posts AS p2 WHERE p2.PostTypeId = 2 AND p2.OwnerUserId = 6309 AND p2.Tags LIKE '%' + @tag + '%') | Questions for tag and term. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... |
SELECT MIN(crowd) FROM table_name_68 WHERE venue = "punt road oval" | What is the smallest crowd size for punt road oval? | CREATE TABLE table_name_68 (crowd INTEGER, venue VARCHAR) |
SELECT sfc_in_g__kn·s_ FROM table_15944_5 WHERE specific_impulse__s_ = 453 | What is the SFC when the specific impulse is 453? | CREATE TABLE table_15944_5 (sfc_in_g__kn·s_ VARCHAR, specific_impulse__s_ VARCHAR) |
SELECT "Place" FROM table_45709 WHERE "Player" = 'jay hebert' | What place is Jay Hebert? | CREATE TABLE table_45709 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT MAX(number_of_people_1991) FROM table_name_67 WHERE percent_of_slovenes_1991 = "14.4%" | Which Number of people 1991 has a Percent of Slovenes 1991 of 14.4%? | CREATE TABLE table_name_67 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR) |
SELECT start_date__1st_night_ FROM table_159359_2 WHERE season = "1966" | When are start dates (1st night) for the season of 1966? | CREATE TABLE table_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND CIT... | list the flights from PHILADELPHIA to SAN FRANCISCO which have a layover in DALLAS | CREATE TABLE code_description (
code varchar,
description text
)
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,
fligh... |
SELECT percent_of_slovenes_1951 FROM table_name_60 WHERE number_of_people_1991 > 8 AND village__german_ = "plöschenberg" | Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg? | CREATE TABLE table_name_60 (percent_of_slovenes_1951 VARCHAR, number_of_people_1991 VARCHAR, village__german_ VARCHAR) |
SELECT end_date__last_night_ FROM table_159359_2 WHERE season = "1918" | When are end dates (last night) for the season of 1918? | CREATE TABLE table_159359_2 (end_date__last_night_ VARCHAR, season VARCHAR) |
SELECT * FROM table_train_278 WHERE hemoglobin_a1c_hba1c >= 7 AND hemoglobin_a1c_hba1c <= 9 | hemoglobin a1c between 7 % and 9 % ( inclusive ) | CREATE TABLE table_train_278 (
"id" int,
"gender" string,
"supine" bool,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"estimated_glomerular_filtration_rate_egfr" int,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"bilirubin" float,
"NOUSE" floa... |
SELECT venue FROM table_name_3 WHERE away_team = "collingwood" | Where was Collingwood's away game played? | CREATE TABLE table_name_3 (venue VARCHAR, away_team VARCHAR) |
SELECT harris FROM table_159614_2 WHERE party = "Labour" | What is the percentage of the Labour Party on the Harris Poll | CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR) |
SELECT COUNT(Id) AS QuestionAnswered FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN '2017-07-01' AND '2017-07-31' | Question Count answered in month of July, 2017. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
... |
SELECT away_team AS score FROM table_name_74 WHERE venue = "western oval" | What was the away team's score at Western Oval? | CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR) |
SELECT opinion_research_centre__opc_ FROM table_159614_2 WHERE national_opinion_polls__nop_ = "1.3%" | On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? | CREATE TABLE table_159614_2 (opinion_research_centre__opc_ VARCHAR, national_opinion_polls__nop_ VARCHAR) |
SELECT u.Id, u.DisplayName, LENGTH(p.Body) AS Size, p.Id AS "post_link" FROM Users AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 2 AND LENGTH(p.Body) < 140 AND u.Id = '##UserID:int##' ORDER BY LENGTH(p.Body) | High rep users with Farquaad Syndrome. | CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... |
SELECT date FROM table_name_53 WHERE away_team = "collingwood" | When did Collingwood play an away game? | CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) |
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "1988" | Name the del pueblo for centennial 1988 | CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "GENT60PM" | how many patients have the drug code gent60pm? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 t... |
SELECT home_team FROM table_name_66 WHERE venue = "junction oval" | What team is based at junction oval? | CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR) |
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992" | Name the centennial for 1992 akimel | CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR) |
SELECT directed_by FROM table_11694832_1 WHERE us_viewers__millions_ = "2.06" | Who directed the show that was viewed by 2.06 million U.S. people? | CREATE TABLE table_11694832_1 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
) |
SELECT home_team FROM table_name_68 WHERE venue = "junction oval" | What is the team set at junction oval? | CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR) |
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "Red/black" | Name the del pueblo for red/black | CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR) |
SELECT MAX("Silver") FROM table_51646 WHERE "Total" = '4' AND "Nation" = 'poland' AND "Gold" < '1' | I want to know the highest silver for total of 4 for poland and gold less than 1 | CREATE TABLE table_51646 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps" | What driver has a grid under 12 with a Time/Retired of + 3 laps? | CREATE TABLE table_name_87 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) |
SELECT centennial FROM table_15977768_1 WHERE information = "Location" | Name the centennial for location | CREATE TABLE table_15977768_1 (centennial VARCHAR, information VARCHAR) |
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2 | What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals? | CREATE TABLE table_name_23 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR
) |
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61 | What is the high grid for osella - alfa romeo, and a Laps larger than 61? | CREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR) |
SELECT host FROM table_1597866_3 WHERE first_premiere = "August 3, 2007" | Name the host when first premiere is august 3, 2007 | CREATE TABLE table_1597866_3 (host VARCHAR, first_premiere VARCHAR) |
SELECT MIN("Production Num.") FROM table_65237 WHERE "Title" = 'bosko''s fox hunt' | The film titled Bosko's fox hunt had what as the smallest production number? | CREATE TABLE table_65237 (
"Title" text,
"Series" text,
"Characters" text,
"Production Num." real,
"Release date" text
) |
SELECT COUNT(pick) FROM table_name_72 WHERE name = "matt moran" AND round > 6 | How many picks does Matt Moran have altogether after round 6? | CREATE TABLE table_name_72 (pick VARCHAR, name VARCHAR, round VARCHAR) |
SELECT regular_judge FROM table_1597866_3 WHERE host = "Anja Rubik" | Name the regular judge when host is anja rubik | CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR) |
SELECT time_retired FROM table_name_89 WHERE constructor = "source:" | What's the time/retired for constructor source:? | CREATE TABLE table_name_89 (
time_retired VARCHAR,
constructor VARCHAR
) |
SELECT position FROM table_name_67 WHERE round > 8 AND pick < 270 | What position after round 8 has a pick less than 270? | CREATE TABLE table_name_67 (position VARCHAR, round VARCHAR, pick VARCHAR) |
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan" | Name the number of regular judge when host is bernie chan | CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR) |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID) | For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday, could you list the average of manager id in asc order? | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... |
SELECT COUNT(round) FROM table_name_41 WHERE school = "ucla" | What is the total number of rounds that UCLA has? | CREATE TABLE table_name_41 (round VARCHAR, school VARCHAR) |
SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = "74 runs" | Name the most number for 74 runs margins | CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.