answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(v.PostId) AS "Vote count", v.PostId AS "post_link", p.Body FROM Votes AS v INNER JOIN Posts AS p ON p.Id = v.PostId WHERE p.Tags LIKE '%tensorflow%' GROUP BY v.PostId, p.Body ORDER BY 'Vote count' DESC LIMIT 100 | Most upvoted questions tagged with 'tensorflow'. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... |
SELECT goals_conceded__gc_ FROM table_name_32 WHERE lost__pp_ = 7 AND team__equipo_ = "chepo f.c." | How many goals were conceded against the Chepo F.C. team where they lost 7 games? | CREATE TABLE table_name_32 (goals_conceded__gc_ VARCHAR, lost__pp_ VARCHAR, team__equipo_ VARCHAR) |
SELECT length FROM table_17839_1 WHERE map_colour = "Turquoise" | When turquoise is the map colour what is the length? | CREATE TABLE table_17839_1 (length VARCHAR, map_colour VARCHAR) |
SELECT MAX("to") - MIN("from") FROM table_203_69 | how many years has does this table cover ? | CREATE TABLE table_203_69 (
id number,
"representative" text,
"title" text,
"from" number,
"to" number,
"appointed by" text
) |
SELECT MIN(crowd) FROM table_name_61 WHERE venue = "junction oval" | What was the smallest crowd at junction oval? | CREATE TABLE table_name_61 (crowd INTEGER, venue VARCHAR) |
SELECT MAX(year_established) FROM table_1784514_1 | What is the latest year a division was established? | CREATE TABLE table_1784514_1 (year_established INTEGER) |
SELECT LAST_NAME, COUNT(LAST_NAME) FROM employees WHERE SALARY > (SELECT SALARY FROM employees WHERE EMPLOYEE_ID = 163) GROUP BY LAST_NAME ORDER BY COUNT(LAST_NAME) | Provide the frequency of the last names of employees earning more than the employee with id 163 using a bar chart, and order Y in asc order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... |
SELECT state FROM table_name_49 WHERE member = "richard foster" | What state has Richard Foster as a member? | CREATE TABLE table_name_49 (state VARCHAR, member VARCHAR) |
SELECT number_of_powiats FROM table_1784514_1 WHERE capital = "Mstsislaw" | How many powiats have mstsislaw as a capital? | CREATE TABLE table_1784514_1 (number_of_powiats VARCHAR, capital VARCHAR) |
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | For those records from the products and each product's manufacturer, show me about the distribution of name and the average of manufacturer , and group by attribute name in a bar chart. | 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 member FROM table_name_16 WHERE electorate = "cook" | Which member has Cook as the electorate? | CREATE TABLE table_name_16 (member VARCHAR, electorate VARCHAR) |
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship" | How many capitals had brest litovsk voivodeship as voivodeship after 1569? | CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.days_stay = "69" | what is minimum age of patients whose ethnicity is white - russian and days of hospital stay is 69? | CREATE TABLE procedures (
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 driver FROM table_name_72 WHERE chassis = "625 553 500" | Who was the driver with chassis 625 553 500? | CREATE TABLE table_name_72 (driver VARCHAR, chassis VARCHAR) |
SELECT MAX(year_established) FROM table_1784514_1 WHERE number_of_powiats = "5 powiats" | What is the latest year established that had 5 powiats? | CREATE TABLE table_1784514_1 (year_established INTEGER, number_of_powiats VARCHAR) |
SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations ORDER BY COUNT(Date_in_Locaton_To) | Create a bar chart showing the number of date in locaton to across date in locaton to, could you display by the y axis from low to high? | CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Na... |
SELECT tyre FROM table_name_77 WHERE constructor = "cooper - bristol" AND driver = "bob gerard" | What was tyre that was made by cooper - bristol that was driven by bob gerard? | CREATE TABLE table_name_77 (tyre VARCHAR, constructor VARCHAR, driver VARCHAR) |
SELECT parish__prestegjeld_ FROM table_178398_1 WHERE sub_parish__sogn_ = "Fortun" | In what parish is the sub-parish fortun? | CREATE TABLE table_178398_1 (parish__prestegjeld_ VARCHAR, sub_parish__sogn_ VARCHAR) |
SELECT "Score" FROM table_47930 WHERE "Surface" = 'hard' AND "Opponent in the final" = 'irena pavlovic' | What was the score when the opponent was irena pavlovic and the surface was hard? | CREATE TABLE table_47930 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) |
SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani" | Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani? | CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = "Fortun" | What is the sub-parish of the church located in Fortun? | CREATE TABLE table_178398_1 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR) |
SELECT "camp" FROM table_204_217 ORDER BY "30 mar" LIMIT 1 | which camp is the least amount on mar. 30 | CREATE TABLE table_204_217 (
id number,
"camp" text,
"div sec\ndivision" text,
"admin\ndistrict" text,
"9 feb" number,
"11 feb" number,
"16 feb" number,
"25 feb" number,
"27 feb" number,
"2 mar" number,
"4 mar" number,
"6 mar" number,
"11 mar" number,
"13 mar" num... |
SELECT tyre FROM table_name_91 WHERE driver = "sergio mantovani" | What tyre had Sergio Mantovani as a driver? | CREATE TABLE table_name_91 (tyre VARCHAR, driver VARCHAR) |
SELECT MIN(year_built) FROM table_178398_1 WHERE location_of_the_church = "Jostedal" | What is the year that the oldest church was built in Jostedal? | CREATE TABLE table_178398_1 (year_built INTEGER, location_of_the_church VARCHAR) |
SELECT * FROM table_train_249 WHERE allergy_to_dapagliflozin = 1 | known or suspected allergy to dapagliflozin | CREATE TABLE table_train_249 (
"id" int,
"gender" string,
"allergy_to_dapagliflozin" bool,
"body_weight" float,
"estimated_glomerular_filtration_rate_egfr" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) |
SELECT entrant FROM table_name_86 WHERE constructor = "maserati" AND tyre = "p" AND chassis = "250f a6gcm" AND driver = "luigi villoresi" | Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi? | CREATE TABLE table_name_86 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR, constructor VARCHAR, tyre VARCHAR) |
SELECT parish__prestegjeld_ FROM table_178398_1 WHERE location_of_the_church = "Solvorn" | What parishes are in Solvorn? | CREATE TABLE table_178398_1 (parish__prestegjeld_ VARCHAR, location_of_the_church VARCHAR) |
SELECT "Written by" FROM table_16276 WHERE "No. in series" = '94' | Who wrote episode 94? | CREATE TABLE table_16276 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) |
SELECT dutch FROM table_name_18 WHERE english = "one" | What is the dutch word for one? | CREATE TABLE table_name_18 (dutch VARCHAR, english VARCHAR) |
SELECT COUNT(parish__prestegjeld_) FROM table_178399_1 WHERE church_name = "Vilnes kyrkje" | Name the number of parish for vilnes kyrkje | CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR) |
SELECT "m/v ft/s" FROM table_20825 WHERE "Time to ft (m) at 25\u00b0 (seconds)" = '9.2' | What is the foot per second speed where time to feet ratio is 9.2 at 25 degrees? | CREATE TABLE table_20825 (
"Gun" text,
"m/v ft/s" real,
"Shell (lb)" text,
"Time to ft (m) at 25\u00b0 (seconds)" text,
"Time to ft (m) at 40\u00b0 (seconds)" text,
"Time to ft (m) at 55\u00b0 (seconds)" text,
"Max. height (ft)" real
) |
SELECT middle_german___luxemburgish__ FROM table_name_20 WHERE DUTCH(Limburgish) = ein | What is the Middle German (Luxemburgish) word for ein? | CREATE TABLE table_name_20 (middle_german___luxemburgish__ VARCHAR, ein VARCHAR, Limburgish VARCHAR) |
SELECT parish__prestegjeld_ FROM table_178399_1 WHERE year_built = 1908 | Name the parish for 1908 | CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, year_built VARCHAR) |
SELECT losing_hand FROM table_12454156_1 WHERE winning_hand = "7h 7s" | What was the losing hand where the winning hand was 7h 7s? | CREATE TABLE table_12454156_1 (
losing_hand VARCHAR,
winning_hand VARCHAR
) |
SELECT middle_german___luxemburgish__ FROM table_name_58 WHERE english = "stone" | What is the Middle German (Luxemburgish) word for stone? | CREATE TABLE table_name_58 (middle_german___luxemburgish__ VARCHAR, english VARCHAR) |
SELECT MAX(year_built) FROM table_178399_1 WHERE church_name = "Holmedal kyrkje" | Name the maximum year built for holmedal kyrkje | CREATE TABLE table_178399_1 (year_built INTEGER, church_name VARCHAR) |
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_... | Ben Craig took EARTH 586 , taught by which professor ? | CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text 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... |
SELECT dutch FROM table_name_68 WHERE LOW_GERMAN(Groningen) = høvd / høvur | What is the Dutch waord for høvd / høvur? | CREATE TABLE table_name_68 (dutch VARCHAR, Groningen VARCHAR, høvd VARCHAR, høvur VARCHAR) |
SELECT MIN(week) FROM table_17861179_1 WHERE game_site = "Shea Stadium" | What is the week where the game site is Shea Stadium? | CREATE TABLE table_17861179_1 (week INTEGER, game_site VARCHAR) |
SELECT MIN(game) FROM table_23186738_9 WHERE date = "March 20" | Name the least game for march 20 | CREATE TABLE table_23186738_9 (
game INTEGER,
date VARCHAR
) |
SELECT english FROM table_name_43 WHERE DUTCH(Limburgish) = twie | What is the English word for twie? | CREATE TABLE table_name_43 (english VARCHAR, twie VARCHAR, Limburgish VARCHAR) |
SELECT result FROM table_17861179_1 WHERE week = 6 | For week 6, what were the results? | CREATE TABLE table_17861179_1 (result VARCHAR, week VARCHAR) |
SELECT winner FROM table_name_34 WHERE fis_nordic_world_ski_championships = "1980" | Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980? | CREATE TABLE table_name_34 (
winner VARCHAR,
fis_nordic_world_ski_championships VARCHAR
) |
SELECT constructor FROM table_name_54 WHERE rounds = "8" AND chassis = "156 158 1512" | What is the constructor on the team with 8 rounds and a chassis of 156 158 1512? | CREATE TABLE table_name_54 (constructor VARCHAR, rounds VARCHAR, chassis VARCHAR) |
SELECT COUNT(week) FROM table_17869717_1 WHERE date = "November 3" | In how many weeks was the game played on November 3 played? | CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR) |
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25050) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-105 month') ORDER BY labevents.charttime D... | what was the name of the last lab test that patient 25050 had since 105 months ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number... |
SELECT driver FROM table_name_92 WHERE tyre = "d" AND chassis = "bt11" AND rounds = "8" | Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds? | CREATE TABLE table_name_92 (driver VARCHAR, rounds VARCHAR, tyre VARCHAR, chassis VARCHAR) |
SELECT broadcast_date FROM table_1785117_1 WHERE viewers__in_millions_ = "8.3" | What is the broadcast date when 8.3 million viewers watched? | CREATE TABLE table_1785117_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR) |
SELECT * FROM body_builder | Show all information about each body builder. | CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
) |
SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0 | What is the number of bronze that silver is smaller than 1 and gold bigger than 0? | CREATE TABLE table_name_51 (bronze INTEGER, silver VARCHAR, gold VARCHAR) |
SELECT broadcast_date FROM table_1785117_1 WHERE run_time = "25:12" | What is the broadcast date of the episode with run time 25:12? | CREATE TABLE table_1785117_1 (broadcast_date VARCHAR, run_time VARCHAR) |
SELECT Id AS "comment_link", CreationDate, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') ORDER BY CreationDate DESC | search in comments / all. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE... |
SELECT name FROM table_name_55 WHERE nation = "france" AND pts_game > 3 AND points < 33 | what is the name when the nation is France, the pts/game is more than 3 and points is less than 33? | CREATE TABLE table_name_55 (name VARCHAR, points VARCHAR, nation VARCHAR, pts_game VARCHAR) |
SELECT viewers__in_millions_ FROM table_1785117_1 WHERE run_time = "25:55" | How many million viewers watched the episode that runs 25:55 minutes? | CREATE TABLE table_1785117_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) |
SELECT "College" FROM table_4929 WHERE "Pick" > '101' AND "Position" = 'punter' | What school did the punter picked after 101 attend? | CREATE TABLE table_4929 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"College" text
) |
SELECT pts_game FROM table_name_78 WHERE games = 5 AND name = "charlotte barras" | what is the pts/game for Charlotte barras and the games is 5? | CREATE TABLE table_name_78 (pts_game VARCHAR, games VARCHAR, name VARCHAR) |
SELECT number_of_dances FROM table_17862135_3 WHERE couple = "Warren & Kym" | How many dances did Warren & Kym have? | CREATE TABLE table_17862135_3 (number_of_dances VARCHAR, couple VARCHAR) |
SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters | Bar chart of how many headquarters from each headquarters | CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
... |
SELECT AVG(points) FROM table_name_97 WHERE nation = "wales" AND pts_game > 5 | what is the average points when the nation is wales and the pts/game is more than 5? | CREATE TABLE table_name_97 (points INTEGER, nation VARCHAR, pts_game VARCHAR) |
SELECT total_points FROM table_17862135_3 WHERE average = "17.8" | What are the total points for the team that averages 17.8? | CREATE TABLE table_17862135_3 (total_points VARCHAR, average VARCHAR) |
SELECT MIN("Lost") FROM table_39866 WHERE "Position" > '2' AND "Points" = '4' AND "Drawn" > '2' | What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws? | CREATE TABLE table_39866 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) |
SELECT MIN(year) FROM table_name_35 WHERE venue = "barcelona, spain" | When is the earliest year for it is in barcelona, spain? | CREATE TABLE table_name_35 (year INTEGER, venue VARCHAR) |
SELECT average FROM table_17862135_3 WHERE couple = "Cody & Julianne" | What is average for Cody & Julianne? | CREATE TABLE table_17862135_3 (average VARCHAR, couple VARCHAR) |
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY COUNT(*) DESC | Show the party and the number of drivers in each party with a bar chart, and I want to order in desc by the the total number please. | CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time... |
SELECT AVG(year) FROM table_name_57 WHERE position = "5th" AND venue = "santiago, chile" | What is the average year they finished 5th in santiago, chile? | CREATE TABLE table_name_57 (year INTEGER, position VARCHAR, venue VARCHAR) |
SELECT division_southwest FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_east = "Osogovo" | what is the division southwest when division south was kožuf and division east was osogovo | CREATE TABLE table_17881033_1 (division_southwest VARCHAR, division_south VARCHAR, division_east VARCHAR) |
SELECT "illustrator" FROM table_203_788 ORDER BY "year" DESC LIMIT 1 | which illustrator was responsible for the last award winner ? | CREATE TABLE table_203_788 (
id number,
"year" number,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
) |
SELECT MIN(pick) FROM table_name_42 WHERE player = "michael holper" | Which pick was MIchael Holper? | CREATE TABLE table_name_42 (pick INTEGER, player VARCHAR) |
SELECT division_north FROM table_17881033_1 WHERE season = "2007–08" | what is the division north in 2007–08 | CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR) |
SELECT MIN("Total") FROM table_68253 WHERE "Year(s) won" = '1978' | Name the least total for 1978 years won | CREATE TABLE table_68253 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) |
SELECT AVG(gold) FROM table_name_99 WHERE nation = "russia (rus)" AND silver < 2 | What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2? | CREATE TABLE table_name_99 (gold INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT division_north FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_southwest = "Ilinden Velmej" | what is the division north when division south was kožuf and division southwest was ilinden velmej | CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR) |
SELECT "Position" FROM table_56335 WHERE "School/Club Team/Country" = 'valparaiso' | Name the position for the player that is from valparaiso | CREATE TABLE table_56335 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"School/Club Team/Country" text
) |
SELECT SUM(total) FROM table_name_45 WHERE nation = "south africa (rsa)" AND bronze < 1 | What is the total where the nation is South Africa (rsa) and bronze is less than 1? | CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT COUNT(division_southwest) FROM table_17881033_1 WHERE division_east = "Babi" | how many division southwest was there when division east was babi | CREATE TABLE table_17881033_1 (division_southwest VARCHAR, division_east VARCHAR) |
SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details ORDER BY T2.organisation_details DESC | Find the organisation ids and details of the organisations which are involved i Visualize by bar chart, list by the x axis in descending. | CREATE TABLE Organisations (
organisation_id INTEGER,
organisation_type VARCHAR(10),
organisation_details VARCHAR(255)
)
CREATE TABLE Staff_Roles (
role_code VARCHAR(10),
role_description VARCHAR(255)
)
CREATE TABLE Document_Types (
document_type_code VARCHAR(10),
document_description VARC... |
SELECT nation FROM table_name_10 WHERE gold = 0 AND rank > 14 AND total = 1 AND silver < 1 | Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1? | CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) |
SELECT division_east FROM table_17881033_1 WHERE division_north = "Milano" | what is the division east when division north was milano | CREATE TABLE table_17881033_1 (division_east VARCHAR, division_north VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.itemid = "50935" | Give me the number of patients whose admission location is transfer from hosp/extram lab test item id is 50935. | 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 home_team FROM table_name_21 WHERE venue = "vfl park" | Tell me the home team for vfl park venue | CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR) |
SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3 | who co-wrote Season 2, Episode 3? | CREATE TABLE table_17901155_3 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id | Show cinema name, film title, date, and price for each record in schedule. | CREATE TABLE film (
film_id number,
rank_in_series number,
number_in_season number,
title text,
directed_by text,
original_air_date text,
production_code text
)
CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
CRE... |
SELECT home_team FROM table_name_70 WHERE venue = "mcg" | Tell me the home team for venue of mcg | CREATE TABLE table_name_70 (home_team VARCHAR, venue VARCHAR) |
SELECT MAX(no_in_series) FROM table_17901155_3 WHERE directed_by = "Kelly Sandefur" | what is the series # for the episode directed by Kelly Sandefur? | CREATE TABLE table_17901155_3 (no_in_series INTEGER, directed_by VARCHAR) |
SELECT year FROM table_181892_4 WHERE race_status = "Piston" | What year(s) was the race status piston? | CREATE TABLE table_181892_4 (
year VARCHAR,
race_status VARCHAR
) |
SELECT MAX(crowd) FROM table_name_39 WHERE venue = "arden street oval" | Tell me the most crowd for arden street oval venue | CREATE TABLE table_name_39 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(prod_code) FROM table_17901155_3 WHERE no_in_series = 32 | how many production codes were there for the episode that was 32 in the series? | CREATE TABLE table_17901155_3 (prod_code VARCHAR, no_in_series VARCHAR) |
SELECT MIN("Points") FROM table_76502 WHERE "Home" = 'toronto' | What is the lowest amount of points of the game with toronto as the home team? | CREATE TABLE table_76502 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) |
SELECT away_team AS score FROM table_name_51 WHERE home_team = "south melbourne" | What was the away team's score when South Melbourne was the home team? | CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR) |
SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros" | What year was the film Milagros submitted? | CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT "Pick" FROM table_62830 WHERE "College" = 'purdue' | Who is the pick from the Purdue College? | CREATE TABLE table_62830 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT COUNT(placings) FROM table_name_92 WHERE nation = "east germany" | What was the placing of the nation of East Germany? | CREATE TABLE table_name_92 (placings VARCHAR, nation VARCHAR) |
SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = "The Blossoming of Maximo Oliveros" | How many years was the film The Blossoming of Maximo Oliveros entered? | CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT "Ship" FROM table_67045 WHERE "Pennant number" = 'h.69' | Which ship has a Pennant number of h.69? | CREATE TABLE table_67045 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
) |
SELECT MAX(level) FROM table_name_96 WHERE team = "astana" AND season > 2007 | What's the highest level of team Astana since 2007? | CREATE TABLE table_name_96 (level INTEGER, team VARCHAR, season VARCHAR) |
SELECT COUNT(director) FROM table_17919342_1 WHERE original_title = "The Moises Padilla Story" | How many directors were there for the film with the original title of The Moises Padilla Story? | CREATE TABLE table_17919342_1 (director VARCHAR, original_title VARCHAR) |
SELECT land___sqmi__ FROM table_18600760_12 WHERE township = "Lansing" | What is the land (sqmi) in lansing township? | CREATE TABLE table_18600760_12 (
land___sqmi__ VARCHAR,
township VARCHAR
) |
SELECT away_team FROM table_name_52 WHERE venue = "western oval" | Who was the away team at Western Oval? | CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR) |
SELECT spacecraft FROM table_179174_2 WHERE launch_complex = "LC34" | What spacecraft was launched from the LC34 launch complex? | CREATE TABLE table_179174_2 (spacecraft VARCHAR, launch_complex VARCHAR) |
SELECT "Score" FROM table_36598 WHERE "Home Team" = 'saskatoon accelerators' AND "Date" = 'january 6, 2008' | What was Saskatoon Accelerators score on January 6, 2008? | CREATE TABLE table_36598 (
"Date" text,
"Home Team" text,
"Score" text,
"Visiting Team" text,
"Stadium" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.