answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(b_shares) FROM table_206359_1 WHERE shareholder_name = "Handelsbanken fonder" | How many different numbers of B shares does Handelsbanken fonder have? | CREATE TABLE table_206359_1 (b_shares VARCHAR, shareholder_name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CATHOLIC" AND lab.label = "Monocytes" | count the number of patients whose religion is catholic and lab test name is monocytes? | 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 recent_bmi FROM table_name_49 WHERE start_bmi < 46.3 AND season = "season 8" | What is the recent BMI on season 8 for the person who's BMI started under 46.3? | CREATE TABLE table_name_49 (recent_bmi VARCHAR, start_bmi VARCHAR, season VARCHAR) |
SELECT MIN(green__sw_) FROM table_2066296_5 WHERE interior_roof = "Charcoal/white" | What's the green (SW) of the model with charcoal/white interior/roof? | CREATE TABLE table_2066296_5 (green__sw_ INTEGER, interior_roof VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%pakistan%' ORDER BY Reputation DESC LIMIT 100 | Top 100 users list in UAE. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejecti... |
SELECT college FROM table_name_11 WHERE pick < 6 AND pba_team = "shell turbo chargers" | Which college has a pick below 6 for the PBA team the Shell Turbo Chargers? | CREATE TABLE table_name_11 (college VARCHAR, pick VARCHAR, pba_team VARCHAR) |
SELECT COUNT(red__e8_) FROM table_2066296_5 WHERE interior_roof = "Parchment/saddle" | How many different results for red (e8) does the model with parchment/saddle interior/roof have? | CREATE TABLE table_2066296_5 (red__e8_ VARCHAR, interior_roof VARCHAR) |
SELECT "Population (2010 Census)" FROM table_19774 WHERE "Population 2000 Census" = '920599' | Name the population 2010 census for population 2000 census of 920599 | CREATE TABLE table_19774 (
"Administrative division" text,
"Area (km\u00b2)" text,
"Population 2000 Census" real,
"Population (2010 Census)" real,
"Population density 2010 (/km\u00b2)" real
) |
SELECT SUM(crowd) FROM table_name_5 WHERE home_team = "richmond" | What's the crowd population of the home team located in Richmond? | CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) |
SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = "Parchment/black" | How many different total results are there for the model with parchment/black interior/roof? | CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR) |
SELECT COUNT(candidates) FROM table_1342426_18 WHERE incumbent = "John N. Sandlin" | How many candidates won the election of john n. sandlin? | CREATE TABLE table_1342426_18 (
candidates VARCHAR,
incumbent VARCHAR
) |
SELECT away_team FROM table_name_24 WHERE home_team = "footscray" | What is the visiting team that has a home team related to footscray? | CREATE TABLE table_name_24 (away_team VARCHAR, home_team VARCHAR) |
SELECT college FROM table_20649850_1 WHERE player = "Aaron Wagner" | Where did aaron wagner go to college | CREATE TABLE table_20649850_1 (college VARCHAR, player VARCHAR) |
SELECT position_in_table FROM table_27374004_4 WHERE outgoing_manager = "Danny Ost" | What was the team's position in table when Danny OST was the outgoing manager? | CREATE TABLE table_27374004_4 (
position_in_table VARCHAR,
outgoing_manager VARCHAR
) |
SELECT home_team FROM table_name_62 WHERE away_team = "fitzroy" | Which Home team has an Away team of fitzroy? | CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR) |
SELECT college FROM table_20649850_1 WHERE position = "OL" | Where did the ol go to college? | CREATE TABLE table_20649850_1 (college VARCHAR, position VARCHAR) |
SELECT AVG(enr) FROM college | How many students, on average, does each college have enrolled? | CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) |
SELECT home_team AS score FROM table_name_31 WHERE away_team = "south melbourne" | What did the home team score when the away team was South Melbourne? | CREATE TABLE table_name_31 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(pick__number) FROM table_20649850_1 WHERE college = "New Mexico" | Name the number for new mexico | CREATE TABLE table_20649850_1 (pick__number INTEGER, college VARCHAR) |
SELECT MIN(2007 AS __usd_) FROM table_24364690_1 WHERE federal_subjects = "Kabardino-Balkaria" | What is the minimum 2007 USD in Kabardino-Balkaria? | CREATE TABLE table_24364690_1 (
federal_subjects VARCHAR
) |
SELECT venue FROM table_name_46 WHERE home_team = "richmond" | What venue is the home field of Richmond? | CREATE TABLE table_name_46 (venue VARCHAR, home_team VARCHAR) |
SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB" | Name the number for db | CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) |
SELECT MIN("Wins") FROM table_43336 WHERE "Top-10" > '9' | What is the lowest Wins with a Top-10 that is larger than 9? | CREATE TABLE table_43336 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT away_team AS score FROM table_name_59 WHERE venue = "princes park" | What was the score of the away team in the match at Princes Park? | CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR) |
SELECT player FROM table_20649850_1 WHERE position = "OL" | Name the player for ol | CREATE TABLE table_20649850_1 (player VARCHAR, position VARCHAR) |
SELECT MAX("Laps") FROM table_11594 WHERE "Time" = '+31.982' | What is the largest lap number when the time was +31.982? | CREATE TABLE table_11594 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) |
SELECT home_team AS score FROM table_name_3 WHERE venue = "western oval" | What was the score of the home team in the match at Western Oval? | CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR) |
SELECT pick__number FROM table_20649850_1 WHERE position = "DL" | Name the number for dl | CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) |
SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the customer who has the most policies listed? | CREATE TABLE customers_policies (
customer_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
) |
SELECT party FROM table_name_55 WHERE ifop_5_30_09 = "2.5%" | Who had an Iflop of 2.5%? | CREATE TABLE table_name_55 (party VARCHAR, ifop_5_30_09 VARCHAR) |
SELECT company FROM table_20667854_1 WHERE free_float = "0.2726" | Which companies have a free float of 0.2726? | CREATE TABLE table_20667854_1 (company VARCHAR, free_float VARCHAR) |
SELECT "Music Director" FROM table_65394 WHERE "Year" = '1971' AND "Movie (in Kannada )" = 'kalyani' | Who was the music director in 1971 for the movie Kalyani? | CREATE TABLE table_65394 (
"Year" real,
"Movie (in Kannada )" text,
"Director" text,
"Cast" text,
"Music Director" text
) |
SELECT ipsos_5_30_09 FROM table_name_16 WHERE bva_6_1_09 = "3%" | When BVA was 3%, what was the Ipsos? | CREATE TABLE table_name_16 (ipsos_5_30_09 VARCHAR, bva_6_1_09 VARCHAR) |
SELECT bse_code FROM table_20667854_1 WHERE free_float = "0.2726" | What is every BSE code for a free float of 0.2726? | CREATE TABLE table_20667854_1 (bse_code VARCHAR, free_float VARCHAR) |
SELECT host FROM table_name_78 WHERE city = "nashville" | What was the host for the round in Nashville? | CREATE TABLE table_name_78 (
host VARCHAR,
city VARCHAR
) |
SELECT party FROM table_name_69 WHERE ipsos_6_3_09 = "27%" | Who had an Ipsos of 27%? | CREATE TABLE table_name_69 (party VARCHAR, ipsos_6_3_09 VARCHAR) |
SELECT gics_sector FROM table_20667854_1 WHERE free_float = "0.3180" | What is every GICS sector for free float of 0.3180? | CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float 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, date_day, days, flight WHERE (((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_tim... | list all nonstop flights on wednesday from BALTIMORE to NEWARK before 1200 | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
res... |
SELECT tns_sofres_6_2_09 FROM table_name_2 WHERE ifop_5_30_09 = "5%" | What was the TNS-Sofres when the Iflop was 5%? | CREATE TABLE table_name_2 (tns_sofres_6_2_09 VARCHAR, ifop_5_30_09 VARCHAR) |
SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad" | What is every company with an index weighting % of 1 and the city of Dimitrovgrad? | CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR) |
SELECT COUNT("No.") FROM table_3512 WHERE "Score in the final" = '6–3, 6–4, 7–6 (13–11)' | How many numbers correspond to the score in the final of 6 3, 6 4, 7 6 (13 11)? | CREATE TABLE table_3512 (
"Outcome" text,
"No." text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) |
SELECT party FROM table_name_71 WHERE results_2004 = "0.00%" | Who had 0.00% in 2004? | CREATE TABLE table_name_71 (party VARCHAR, results_2004 VARCHAR) |
SELECT COUNT(gics_sector) FROM table_20667854_1 WHERE free_float = "0.2391" | How many GICS sectors have a free float of 0.2391? | CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR) |
SELECT "Date" FROM table_46494 WHERE "Week" > '16' | What was the date of a week larger than 16? | CREATE TABLE table_46494 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text
) |
SELECT tns_sofres_6_2_09 FROM table_name_51 WHERE ipsos_6_3_09 = "27%" | What's the TNS-Sofres when Ipsos was 27%? | CREATE TABLE table_name_51 (tns_sofres_6_2_09 VARCHAR, ipsos_6_3_09 VARCHAR) |
SELECT COUNT(free_float) FROM table_20667854_1 WHERE bse_code = "4EH" | How many values of free float for the BSE code of 4EH? | CREATE TABLE table_20667854_1 (free_float VARCHAR, bse_code VARCHAR) |
SELECT COUNT(T1.ssn) FROM patient AS T1 JOIN prescribes AS T2 ON T1.ssn = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian" | How many patients' prescriptions are made by physician John Dorian? | CREATE TABLE affiliated_with (
physician number,
department number,
primaryaffiliation boolean
)
CREATE TABLE patient (
ssn number,
name text,
address text,
phone text,
insuranceid number,
pcp number
)
CREATE TABLE appointment (
appointmentid number,
patient number,
pre... |
SELECT venue FROM table_name_47 WHERE away_team = "fitzroy" | In the match where fitzroy was the away team, where was the venue? | CREATE TABLE table_name_47 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "25%" | How many polls taken on different dates show an undecided percentage of 25%? | CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR) |
SELECT score FROM table_name_75 WHERE location = "northampton" | The competition located in Northampton had a resulting score of what? | CREATE TABLE table_name_75 (
score VARCHAR,
location VARCHAR
) |
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov" | Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov? | CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR) |
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research" | When was Quantum Research's poll conducted? | CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR) |
SELECT "Home team score" FROM table_58010 WHERE "Home team" = 'st kilda' | How much did the home team st kilda score? | CREATE TABLE table_58010 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT team_classification FROM table_name_88 WHERE general_classification = "vladimir karpets" AND mountains_classification = "no award" | Which Team classification has a General classification of Vladimir Karpets and a Mountains classification of No Award? | CREATE TABLE table_name_88 (team_classification VARCHAR, general_classification VARCHAR, mountains_classification VARCHAR) |
SELECT conductor FROM table_20683381_2 WHERE undecided = "18%" AND sample_size = 2000 | Who conducted the poll with sample size of 2000 that shows 18% undecided? | CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR) |
SELECT MAX(capacity) FROM table_name_30 WHERE club = "f.c. igea virtus barcellona" | What was the largest capacity when the club was F.C. Igea Virtus Barcellona? | CREATE TABLE table_name_30 (
capacity INTEGER,
club VARCHAR
) |
SELECT sprints_classification FROM table_name_18 WHERE points_classification = "mark cavendish" AND team_classification = "caisse d'epargne" | What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne? | CREATE TABLE table_name_18 (sprints_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR) |
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Ecuador" | How tall is the contestant from Ecuador? | CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR) |
SELECT "Worldwide Gross" FROM table_76241 WHERE "Rank" = '16' | What is the Worldwide Gross of the Film with a Rank of 16? | CREATE TABLE table_76241 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
) |
SELECT SUM(until) FROM table_name_80 WHERE titles = "5" | What is the total Until when the Titles was 5? | CREATE TABLE table_name_80 (until INTEGER, titles VARCHAR) |
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba" | How tall is the contestant from Aruba? | CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR) |
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id | Scatter chart. what is the total amount of grant money given to each organization and what is its id? | CREATE TABLE Research_Outcomes (
outcome_code VARCHAR(10),
outcome_description VARCHAR(255)
)
CREATE TABLE Project_Staff (
staff_id DOUBLE,
project_id INTEGER,
role_code VARCHAR(10),
date_from DATETIME,
date_to DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Projects (
project_... |
SELECT 1 AS st_leg FROM table_name_53 WHERE team_1 = "aalborg bk" | When Team 1 is Aalborg BK, what is the 1st Leg? | CREATE TABLE table_name_53 (team_1 VARCHAR) |
SELECT country FROM table_20669355_2 WHERE hometown = "San Francisco de Yojoa" | What country is the contestant from San Francisco de Yojoa from? | CREATE TABLE table_20669355_2 (country VARCHAR, hometown VARCHAR) |
SELECT MIN("L") FROM table_26695 | What is the lowest amount of L in any season? | CREATE TABLE table_26695 (
"Season" real,
"Pl" real,
"W" real,
"L" real,
"D" real,
"Captain" text,
"Most runs" text,
"Most Wkts" text,
"Wkt Keeper" text
) |
SELECT agg FROM table_name_47 WHERE team_2 = "partizan" | When Partizan is Team 2, what is the Agg? | CREATE TABLE table_name_47 (agg VARCHAR, team_2 VARCHAR) |
SELECT COUNT(height__ft_) FROM table_20669355_2 WHERE hometown = "Warsaw" | How many different heights are there for the contestants from Warsaw? | CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR) |
SELECT "Constructor" FROM table_67304 WHERE "Grid" = '1' | What is the name of the constructor for Grid 1? | CREATE TABLE table_67304 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) |
SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk" | When Aalborg BK is Team 1, what is the 1st leg? | CREATE TABLE table_name_32 (team_1 VARCHAR) |
SELECT COUNT(county) FROM table_20688030_1 WHERE obama_percentage = "35.44%" | What is the total of countys where Obama is popular by 35.44%? | CREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.long_title = "Percutaneous aspiration of liver" | how many patients whose discharge location is home and procedure long title is percutaneous aspiration of liver? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... |
SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first" | What is the story timeline that was published first prior to 1984? | CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR) |
SELECT mccain_percentage FROM table_20688030_1 WHERE obama_percentage = "36.47%" | What are McCain's Percent when Obama has 36.47%? | CREATE TABLE table_20688030_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR) |
SELECT state, enr FROM College ORDER BY enr | Give me a pie chart to reflect the proportion of state and enr. | CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
) |
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first" | How many total publications were the first of the series? | CREATE TABLE table_name_86 (published VARCHAR, in_order_of_publication VARCHAR) |
SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.13%" | What is McCains percent when Obamas is 39.13% | CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR) |
SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = cite.citedpaperid AND paper.paperid = paperkeyphrase.paperid GROUP BY cite.citedpaperid ORDER BY CO... | Most cited papers on Parsing | CREATE TABLE field (
fieldid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int... |
SELECT play_by_play FROM table_name_56 WHERE year < 1998 AND network = "fox" | Who did the play-by-play before 1998 on Fox network? | CREATE TABLE table_name_56 (play_by_play VARCHAR, year VARCHAR, network VARCHAR) |
SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne" | What is the maximum Obama supporters in Wayne county? | CREATE TABLE table_20688030_1 (obama_number INTEGER, county 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 = 'INDIANAPOLIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1... | how much is a round trip fare from INDIANAPOLIS to SEATTLE | CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
... |
SELECT play_by_play FROM table_name_15 WHERE year < 1992 AND ice_level_reporters = "mike emrick" | Who did the play-by-play before 1992 with the Ice level reporter Mike Emrick? | CREATE TABLE table_name_15 (play_by_play VARCHAR, year VARCHAR, ice_level_reporters VARCHAR) |
SELECT population__may_1, _2000_ FROM table_2068761_1 WHERE barangay = "General Terrero" | Name th epopulation may for general terrero | CREATE TABLE table_2068761_1 (population__may_1 VARCHAR, _2000_ VARCHAR, barangay VARCHAR) |
SELECT MIN("Viewers (m)") FROM table_57528 WHERE "Air Date" = 'january 24, 2008' AND "Rating" > '3.6' | What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions? | CREATE TABLE table_57528 (
"Episode" text,
"Air Date" text,
"Time slot (EST)" text,
"Rating" real,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" real,
"Rank (Overall)" text
) |
SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = "john davidson" AND play_by_play = "marv albert" AND year > 1992 | Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert? | CREATE TABLE table_name_58 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR) |
SELECT season__number FROM table_20704243_3 WHERE series__number = 23 | What is the season number for Series #23, the Runway Job? | CREATE TABLE table_20704243_3 (season__number VARCHAR, series__number VARCHAR) |
SELECT height_m___feet FROM table_name_97 WHERE name = "shanghai x-1 financial building" | What is the height for shanghai x-1 financial building? | CREATE TABLE table_name_97 (
height_m___feet VARCHAR,
name VARCHAR
) |
SELECT network FROM table_name_66 WHERE play_by_play = "marv albert" AND year < 1994 | What is the network with the play-by-play Marv Albert before 1994? | CREATE TABLE table_name_66 (network VARCHAR, play_by_play VARCHAR, year VARCHAR) |
SELECT MIN(series__number) FROM table_20704243_3 WHERE directed_by = "Mark Roskin" | What series was directed by Mark Roskin? | CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR) |
SELECT COUNT(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' | How many sections does course ACCT-211 has? | CREATE TABLE CLASS (
class_section VARCHAR,
crs_code VARCHAR
) |
SELECT COUNT(crowd) FROM table_name_45 WHERE home_team = "carlton" | What was the total crowd of the Carlton game? | CREATE TABLE table_name_45 (crowd VARCHAR, home_team VARCHAR) |
SELECT COUNT(written_by) FROM table_20704243_3 WHERE directed_by = "Peter Winther" | How many were written by Peter Winther? | CREATE TABLE table_20704243_3 (written_by VARCHAR, directed_by VARCHAR) |
SELECT "Country" FROM table_22366 WHERE "Commentator" = 'Gordana Bonetti' | which countries were commentated on by gordana bonetti | CREATE TABLE table_22366 (
"Voting order" real,
"Country" text,
"Spokespersons" text,
"Commentator" text,
"Broadcaster" text
) |
SELECT MAX(long) FROM table_name_83 WHERE player = "charles pauley" AND yards < 60 | What was the highest long of Charles Pauley with fewer than 60 yards? | CREATE TABLE table_name_83 (long INTEGER, player VARCHAR, yards VARCHAR) |
SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 2 | How many directors were in Season 2? | CREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR) |
SELECT Id, PostId AS "post_link", Text FROM Comments WHERE LOWER(Text) LIKE '% rep %' ORDER BY LENGTH(Text), Id | Comments regarding rep. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversa... |
SELECT score FROM table_name_14 WHERE date = "may 26" | What is the score of the game on May 26? | CREATE TABLE table_name_14 (score VARCHAR, date VARCHAR) |
SELECT original_air_date FROM table_20704243_4 WHERE written_by = "Albert Kim" | When was the episode written by Albert Kim aired for the first time? | CREATE TABLE table_20704243_4 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT children_per_donor FROM table_16175217_1 WHERE allowed_recipients = "no data" | List the possible children per donor levels for countries where the allowed recipients is no data. | CREATE TABLE table_16175217_1 (
children_per_donor VARCHAR,
allowed_recipients VARCHAR
) |
SELECT location_attendance FROM table_name_13 WHERE date = "may 22" | What was the location and attendance on the May 22 game? | CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR) |
SELECT series__number FROM table_20704243_5 WHERE written_by = "M. Scott Veach & Rebecca Kirsch" | Name the series number for m. scott veach & rebecca kirsch | CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.