answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = "Maryland" OR T2.College = "Duke" | What are the official languages of the countries of players from Maryland or Duke college? | CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, College VARCHAR) |
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-181433' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1)... | what is the variation of patient 006-181433's weight second measured on the current hospital visit compared to the first value measured on the current hospital visit? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime... |
SELECT income_poverty_f FROM table_13618358_1 WHERE services_ & _cons_truction_b = "72.5" | How low was the income where services is 72.5? | CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, services_ VARCHAR, _cons_truction_b VARCHAR) |
SELECT COUNT(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender" | How many distinct official languages are there among countries of players whose positions are defenders. | CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, Position VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "5011" | how many patients with death status 0 had procedure icd9 code as 5011? | 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,
... |
SELECT income_poverty_f FROM table_13618358_1 WHERE district = "San Juan" | How low was the San Juan income? | CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, district VARCHAR) |
SELECT T1.Season, T1.Player, T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id | Show the season, the player, and the name of the team that players belong to. | CREATE TABLE team (Name VARCHAR, Team_id VARCHAR); CREATE TABLE match_season (Season VARCHAR, Player VARCHAR, Team VARCHAR) |
SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | For those records from the products and each product's manufacturer, find headquarter and the amount of headquarter , and group by attribute headquarter, and visualize them by a bar chart, and I want to display x axis in descending order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT high_assists FROM table_13619027_7 WHERE date = "January 22" | who is the player with high assists on january 22? | CREATE TABLE table_13619027_7 (high_assists VARCHAR, date VARCHAR) |
SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner" | Show the positions of the players from the team with name "Ryley Goldner". | CREATE TABLE match_season (Position VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) |
SELECT to_par FROM table_name_43 WHERE place = "3" | What is To Par, when Place is 3? | CREATE TABLE table_name_43 (
to_par VARCHAR,
place VARCHAR
) |
SELECT COUNT(score) FROM table_13619027_7 WHERE date = "January 3" | what is the total score for the date of january 3? | CREATE TABLE table_13619027_7 (score VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" | How many distinct colleges are associated with players from the team with name "Columbus Crew". | CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) |
SELECT admissions.age FROM admissions WHERE admissions.subject_id = 71192 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | what age does patient 71192 have on the last hospital encounter? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
... |
SELECT team FROM table_13619053_9 WHERE record = "15-63" | Which team was in a game with a record of 15-63? | CREATE TABLE table_13619053_9 (team VARCHAR, record VARCHAR) |
SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" | Show the players and years played for players from team "Columbus Crew". | CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) |
SELECT date_of_release FROM table_name_15 WHERE title = "god & guns" | On what date was god & guns released? | CREATE TABLE table_name_15 (
date_of_release VARCHAR,
title VARCHAR
) |
SELECT team FROM table_13619053_9 WHERE date = "April 1" | Which team played on April 1? | CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR) |
SELECT POSITION, COUNT(*) FROM match_season GROUP BY POSITION | Show the position of players and the corresponding number of players. | CREATE TABLE match_season (POSITION VARCHAR) |
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '4:00' AND course_offering.start_time >= '11:00' AND course.course_id = course_offering.course_id AND course.department = 'ECON' AND course.number... | From 11:00 to 4:00 , are there ECON 442 sections ? | CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total... |
SELECT COUNT(high_points) FROM table_13619053_8 WHERE game = 66 | How many players led Game #66 in scoring? | CREATE TABLE table_13619053_8 (high_points VARCHAR, game VARCHAR) |
SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name | Show the country names and the corresponding number of players. | CREATE TABLE match_season (Country VARCHAR); CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR) |
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | What's the 2nd leg result in the round where team #1 is Iraklis? | CREATE TABLE table_19130829_4 (
team__number1 VARCHAR
) |
SELECT high_points FROM table_13619053_8 WHERE record = "13-49" | Who scored the most points in the game where the Raptors became 13-49? | CREATE TABLE table_13619053_8 (high_points VARCHAR, record VARCHAR) |
SELECT player FROM match_season ORDER BY College | Return all players sorted by college in ascending alphabetical order. | CREATE TABLE match_season (player VARCHAR, College VARCHAR) |
SELECT COUNT("publication") FROM table_204_692 WHERE "review" = 'print' | what number of publications are indicated as being in print ? | CREATE TABLE table_204_692 (
id number,
"publication" text,
"score" text,
"review" text
) |
SELECT team FROM table_13619053_8 WHERE record = "13-48" | Who did the Raptors play against when their record was 13-48? | CREATE TABLE table_13619053_8 (team VARCHAR, record VARCHAR) |
SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common position of players in match seasons. | CREATE TABLE match_season (POSITION VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-80291')) AND medication.drugname IN ('30 ml cup : alum & mag hydroxide... | had patient 005-80291 been prescribed 30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp, potassium chloride 2 meq/ml iv soln or ondansetron hcl 4 mg/2ml ij soln since 2105? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
... |
SELECT high_points FROM table_13619105_3 WHERE record = "1-4" | Who was the high scorer in the game when the team was 1-4? | CREATE TABLE table_13619105_3 (high_points VARCHAR, record VARCHAR) |
SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3 | Show the top 3 most common colleges of players in match seasons. | CREATE TABLE match_season (College VARCHAR) |
SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID | Give me the comparison about School_ID over the ACC_Road , and group by attribute All_Home, and sort from low to high by the y axis. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT location_attendance FROM table_13619105_3 WHERE team = "Minnesota" | Where did they play and how many attended in the game against minnesota? | CREATE TABLE table_13619105_3 (location_attendance VARCHAR, team VARCHAR) |
SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 | Show the name of colleges that have at least two players. | CREATE TABLE match_season (College VARCHAR) |
SELECT "Race Time" FROM table_21885 WHERE "Team" = 'Chip Ganassi Racing' AND "Laps" = '228' | When 228 is the lap and chip ganassi racing is the team what is the race time? | CREATE TABLE table_21885 (
"Season" text,
"Date" text,
"Driver" text,
"Team" text,
"Chassis" text,
"Engine" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) |
SELECT high_points FROM table_13619105_4 WHERE high_assists = "Dee Brown (5)" | Who had the high point total when dee brown (5) had the high assist total? | CREATE TABLE table_13619105_4 (high_points VARCHAR, high_assists VARCHAR) |
SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC | Show the name of colleges that have at least two players in descending alphabetical order. | CREATE TABLE match_season (College VARCHAR) |
SELECT "Song Choice" FROM table_29668 WHERE "Original Artist" = 'Marisa Monte' | Which song was picked that was originally performed by Marisa Monte? | CREATE TABLE table_29668 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" text,
"Result" text
) |
SELECT COUNT(record) FROM table_13619135_5 WHERE date = "January 14" | How many records are there for the games that took place on January 14. | CREATE TABLE table_13619135_5 (record VARCHAR, date VARCHAR) |
SELECT Name FROM team WHERE NOT Team_id IN (SELECT Team FROM match_season) | What are the names of teams that do no have match season record? | CREATE TABLE match_season (Name VARCHAR, Team_id VARCHAR, Team VARCHAR); CREATE TABLE team (Name VARCHAR, Team_id VARCHAR, Team VARCHAR) |
WITH scorestags_cte AS (SELECT pt.TagId AS TagId, p.OwnerUserId AS uid, p.OwnerDisplayName AS udn, SUM(p.Score) AS sco, COUNT(p.Id) AS num FROM Posts AS p INNER JOIN Posts AS q ON q.Id = p.ParentId INNER JOIN PostTags AS pt ON q.Id = pt.PostId WHERE (p.CommunityOwnedDate IS NULL) GROUP BY pt.TagId, p.OwnerUserId, p.Own... | Scores of users in specific tag. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... |
SELECT high_points FROM table_13619135_5 WHERE team = "Seattle" | Which players scored the most points when the opposing team was Seattle and how many points did they score? | CREATE TABLE table_13619135_5 (high_points VARCHAR, team VARCHAR) |
SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Forward" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = "Defender" | What are the names of countries that have both players with position forward and players with position defender? | CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, Position VARCHAR) |
SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886 | What is the population where the median household income is $87,832 and there are fewer than 64,886 households? | CREATE TABLE table_name_83 (
population INTEGER,
median_household_income VARCHAR,
number_of_households VARCHAR
) |
SELECT location_attendance FROM table_13619135_5 WHERE team = "Portland" | What was the location and attendance of the game against Portland? | CREATE TABLE table_13619135_5 (location_attendance VARCHAR, team VARCHAR) |
SELECT College FROM match_season WHERE POSITION = "Midfielder" INTERSECT SELECT College FROM match_season WHERE POSITION = "Defender" | Which college have both players with position midfielder and players with position defender? | CREATE TABLE match_season (College VARCHAR, POSITION VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5771" AND prescriptions.drug_type = "MAIN" | provide the number of patients whose procedure icd9 code is 5771 and drug type is main? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... |
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)" | What was the record when the score was w 108–93 (ot)? | CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR) |
SELECT COUNT(*) FROM climber | How many climbers are there? | CREATE TABLE climber (Id VARCHAR) |
SELECT rank FROM table_18686317_1 WHERE yardage = 58179 | What is the rank of the player who got 58179 in yardage? | CREATE TABLE table_18686317_1 (
rank VARCHAR,
yardage VARCHAR
) |
SELECT COUNT(total_population) FROM table_1364343_2 WHERE catholic < 31370649.1405057 AND region = "North Africa" | how many total population with catholic being smaller than 31370649.1405057 and region being north africa | CREATE TABLE table_1364343_2 (total_population VARCHAR, catholic VARCHAR, region VARCHAR) |
SELECT Name FROM climber ORDER BY Points DESC | List the names of climbers in descending order of points. | CREATE TABLE climber (Name VARCHAR, Points VARCHAR) |
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the course that has the most student enrollment? | CREATE TABLE Courses (
course_name VARCHAR,
course_id VARCHAR
)
CREATE TABLE Student_Course_Enrolment (
course_id VARCHAR
) |
SELECT wii_points FROM table_13663434_1 WHERE title_and_source = "Tsūshin Taikyoku: Igo Dōjō 2700-Mon" | what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon | CREATE TABLE table_13663434_1 (wii_points VARCHAR, title_and_source VARCHAR) |
SELECT Name FROM climber WHERE Country <> "Switzerland" | List the names of climbers whose country is not Switzerland. | CREATE TABLE climber (Name VARCHAR, Country VARCHAR) |
SELECT MAX("Wins") FROM table_39196 WHERE "Season" < '2007' AND "Team" = 'silverstone motorsport academy' | What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy? | CREATE TABLE table_39196 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real
) |
SELECT na__350_ FROM table_13663434_1 WHERE title_and_source = "Paper Wars: Cannon Fodder" | what's the na -350- with title and source being paper wars: cannon fodder | CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR) |
SELECT MAX(Points) FROM climber WHERE Country = "United Kingdom" | What is the maximum point for climbers whose country is United Kingdom? | CREATE TABLE climber (Points INTEGER, Country VARCHAR) |
SELECT away_team FROM table_name_38 WHERE tie_no = "7" | What away team has 7 as the tie no.? | CREATE TABLE table_name_38 (
away_team VARCHAR,
tie_no VARCHAR
) |
SELECT COUNT(title_and_source) FROM table_13663434_1 WHERE pal__295_ = "Yes" AND jp__210_ = "Yes" | how many title and source with pal -295- being yes and jp -210- being yes | CREATE TABLE table_13663434_1 (title_and_source VARCHAR, pal__295_ VARCHAR, jp__210_ VARCHAR) |
SELECT COUNT(DISTINCT Country) FROM climber | How many distinct countries are the climbers from? | CREATE TABLE climber (Country VARCHAR) |
SELECT * FROM table_train_71 WHERE (gender = 'male' OR gender = 'female') AND (age >= 3.5 AND age <= 18) AND sepsis = 1 | male or female ages >= 3.5 years and <= 18 years on day of sepsis recognition | CREATE TABLE table_train_71 (
"id" int,
"gender" string,
"language" string,
"intention_to_arterial_catheter" bool,
"renal_disease" bool,
"sepsis" bool,
"allergy_to_hydroxyethyl_starch" bool,
"age" float,
"NOUSE" float
) |
SELECT jp__210_ FROM table_13663434_1 WHERE title_and_source = "Fun! Fun! Minigolf" | what's the jp -210- with title and source being fun! fun! minigolf | CREATE TABLE table_13663434_1 (jp__210_ VARCHAR, title_and_source VARCHAR) |
SELECT Name FROM mountain ORDER BY Name | What are the names of mountains in ascending alphabetical order? | CREATE TABLE mountain (Name VARCHAR) |
SELECT "Year" FROM table_67049 WHERE "Round" = '17' | Which year has a Round of 17? | CREATE TABLE table_67049 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
) |
SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = "Bokumo Sekai wo Sukuitai: Battle Tournament" | how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament | CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR) |
SELECT Country FROM mountain WHERE Height > 5000 | What are the countries of mountains with height bigger than 5000? | CREATE TABLE mountain (Country VARCHAR, Height INTEGER) |
SELECT COUNT(*) FROM table_203_379 WHERE "first issued" < 1960 | how many license plates were issued before 1960 ? | CREATE TABLE table_203_379 (
id number,
"first issued" text,
"design" text,
"slogan" text,
"serial format" text,
"serials issued" text,
"notes" text
) |
SELECT gtu_winning_team FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing" | What was the gtu winning team when the gto winning team was #48 greenwood racing? | CREATE TABLE table_13657883_2 (gtu_winning_team VARCHAR, gto_winning_team VARCHAR) |
SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 | What is the name of the highest mountain? | CREATE TABLE mountain (Name VARCHAR, Height VARCHAR) |
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-24054') AND patient.unitdischargetime IS NULL) AN... | when was patient 035-24054's ventric #1 output for the last time on the current intensive care unit visit? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... |
SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = "#16 2002" | What was the to winnning team when the tu winning team was #16 2002? | CREATE TABLE table_13657883_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR) |
SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3 | List the distinct ranges of the mountains with the top 3 prominence. | CREATE TABLE mountain (Range VARCHAR, Prominence VARCHAR) |
SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon" | Which runner-up placed in a year prior to 2006 and whose Champion was Elon? | CREATE TABLE table_name_66 (
runner_up VARCHAR,
year VARCHAR,
champion VARCHAR
) |
SELECT rnd FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing" | What round was the gto winning team #48 greenwood racing? | CREATE TABLE table_13657883_2 (rnd VARCHAR, gto_winning_team VARCHAR) |
SELECT T1.Name, T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID | Show names of climbers and the names of mountains they climb. | CREATE TABLE mountain (Name VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR) |
SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 0 | Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0? | CREATE TABLE table_name_81 (
touchdowns INTEGER,
points VARCHAR,
field_goals VARCHAR
) |
SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = "Joe Amato Carson Baird" | What was the to winning team when the tu winning team was joe amato carson baird? | CREATE TABLE table_13657883_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR) |
SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID | Show the names of climbers and the heights of mountains they climb. | CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.icd9_code = "5781" | give me the number of patients whose admission location is transfer from hosp/extram and procedure icd9 code is 5781? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... |
SELECT to_winning_team FROM table_13657749_2 WHERE gtu_winning_team = "#27 Don Lindley" | Who is GTU Winning Team's #27 Don Lindley's TO Winning Team? | CREATE TABLE table_13657749_2 (to_winning_team VARCHAR, gtu_winning_team VARCHAR) |
SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 | Show the height of the mountain climbed by the climber with the maximum points. | CREATE TABLE climber (Mountain_ID VARCHAR, Points VARCHAR); CREATE TABLE mountain (Height VARCHAR, Mountain_ID 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 WHERE ((flight.to_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND... | i'm interested in a flight from DALLAS to WASHINGTON and i'm also interested in going to BALTIMORE | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_cod... |
SELECT rnd FROM table_13657749_2 WHERE gto_winning_team = "Mike Keyser" | What is GTO Winning Team Mike Keyser's RND number? | CREATE TABLE table_13657749_2 (rnd VARCHAR, gto_winning_team VARCHAR) |
SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = "West Germany" | Show the distinct names of mountains climbed by climbers from country "West Germany". | CREATE TABLE mountain (Name VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Mountain_ID VARCHAR, Country VARCHAR) |
SELECT demographic.religion FROM demographic WHERE demographic.subject_id = "26746" | what is religion of subject id 26746? | 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 to_winning_team FROM table_13657749_2 WHERE gto_winning_team = "Gene Felton" | Who is Gene Felton's TO Winning Team? | CREATE TABLE table_13657749_2 (to_winning_team VARCHAR, gto_winning_team VARCHAR) |
SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda" | Show the times used by climbers to climb mountains in Country Uganda. | CREATE TABLE mountain (Mountain_ID VARCHAR, Country VARCHAR); CREATE TABLE climber (Time VARCHAR, Mountain_ID VARCHAR) |
SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" | who is the constructor when the laps is more than 72 and the driver is eddie irvine? | CREATE TABLE table_name_33 (
constructor VARCHAR,
laps VARCHAR,
driver VARCHAR
) |
SELECT results FROM table_13657749_2 WHERE gto_winning_team = "Peter Gregg Hurley Haywood" | What is Peter Gregg Hurley Haywood's results? | CREATE TABLE table_13657749_2 (results VARCHAR, gto_winning_team VARCHAR) |
SELECT Country, COUNT(*) FROM climber GROUP BY Country | Please show the countries and the number of climbers from each country. | CREATE TABLE climber (Country VARCHAR) |
SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0 | What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold? | CREATE TABLE table_name_88 (
total INTEGER,
silver VARCHAR,
bronze VARCHAR,
gold VARCHAR
) |
SELECT MIN(goals_olimpia) FROM table_13688489_1 | What was the least amount for Goals Olimpia? | CREATE TABLE table_13688489_1 (goals_olimpia INTEGER) |
SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1 | List the countries that have more than one mountain. | CREATE TABLE mountain (Country VARCHAR) |
SELECT MAX("Points") FROM table_15405 WHERE "Chassis" = 'gordini t16' AND "Year" < '1954' | What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954? | CREATE TABLE table_15405 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Points" real
) |
SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 32 | How many goals Olimpia recorded for 32 matches? | CREATE TABLE table_13688489_1 (goals_olimpia VARCHAR, matches VARCHAR) |
SELECT Name FROM mountain WHERE NOT Mountain_ID IN (SELECT Mountain_ID FROM climber) | List the names of mountains that do not have any climber. | CREATE TABLE mountain (Name VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR) |
SELECT "Written by" FROM table_29318 WHERE "U.S. viewers (million)" = '7.70' | Who wrote the episodes with 7.70 u.s. viewers (million) ? | CREATE TABLE table_29318 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) |
SELECT matches FROM table_13688489_1 WHERE goals_olimpia = 149 | What was the number of matches when the Goals Olimpia was 149? | CREATE TABLE table_13688489_1 (matches VARCHAR, goals_olimpia VARCHAR) |
SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 | Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200. | CREATE TABLE mountain (Country VARCHAR, Height INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.