answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT directed_by FROM table_18481791_3 WHERE no_in_season = 1 | Who directed season 1? | CREATE TABLE table_18481791_3 (directed_by VARCHAR, no_in_season VARCHAR) |
SELECT Sex, COUNT(*) FROM Student WHERE Age > (SELECT AVG(Age) FROM Student) GROUP BY Sex ORDER BY COUNT(*) DESC | Visualize a bar chart for how many students are older than average for each gender?, list by the the total number from high to low. | CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Lives_in (
stuid INTEGER,
... |
SELECT school_club_team FROM table_name_64 WHERE player = "andrew jones" | Which School/Club Team does Andrew Jones play for? | CREATE TABLE table_name_64 (school_club_team VARCHAR, player VARCHAR) |
SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = "3.97" | What is the title when u.s. viewers (millions) is 3.97? | CREATE TABLE table_18481791_3 (title VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT venue FROM table_name_72 WHERE home_team = "south melbourne" | Where did South Melbourne play as the home team? | CREATE TABLE table_name_72 (
venue VARCHAR,
home_team VARCHAR
) |
SELECT school_club_team FROM table_name_5 WHERE round < 2 | Which School/Club Team did not make it to round 2? | CREATE TABLE table_name_5 (school_club_team VARCHAR, round INTEGER) |
SELECT COUNT(commentator) FROM table_184803_4 WHERE broadcaster = "ORF" | how many people commentated where broadcaster is orf | CREATE TABLE table_184803_4 (commentator VARCHAR, broadcaster VARCHAR) |
SELECT MIN("Crowd") FROM table_58136 WHERE "Away team score" = '10.18 (78)' | What is the smallest crowd when the away team scored 10.18 (78)? | CREATE TABLE table_58136 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT player FROM table_name_16 WHERE pick = "24" | Which player is the 24 pick? | CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR) |
SELECT spokespersons FROM table_184803_4 WHERE voting_order = 9 | list the spokespersons where voting order is 9 | CREATE TABLE table_184803_4 (spokespersons VARCHAR, voting_order VARCHAR) |
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, and I want to rank y-axis in desc order please. | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... |
SELECT AVG(round) FROM table_name_72 WHERE pick = "16" | What is the average round of the number 16 pick? | CREATE TABLE table_name_72 (round INTEGER, pick VARCHAR) |
SELECT country FROM table_184803_4 WHERE commentator = "Gordana Bonetti" | which countries were commentated on by gordana bonetti | CREATE TABLE table_184803_4 (country VARCHAR, commentator VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE 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_name = 'OAKLAND... | show me the flights from BOSTON to OAKLAND | CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (... |
SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3 | How many games were lost where the win percentage is smaller than 16.7 and the played games is 3? | CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR) |
SELECT spokespersons FROM table_184803_4 WHERE country = "Luxembourg" | wich spokesperson talked on luxembourg | CREATE TABLE table_184803_4 (spokespersons VARCHAR, country VARCHAR) |
SELECT "Winner" FROM table_32624 WHERE "Stage" = '12' | Who was the winner of stage 12? | CREATE TABLE table_32624 (
"Stage" text,
"Date" text,
"Route" text,
"Terrain" text,
"Length" text,
"Winner" text
) |
SELECT location FROM table_name_23 WHERE name = "pine valley" | Where is pine valley? | CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) |
SELECT commentator FROM table_184803_4 WHERE spokespersons = "Claude Darget" | who was the commentator when spokesperson was claude darget | CREATE TABLE table_184803_4 (commentator VARCHAR, spokespersons VARCHAR) |
SELECT title FROM table_26565917_2 WHERE no_in_season = 5 | what was the name of episode 5? | CREATE TABLE table_26565917_2 (
title VARCHAR,
no_in_season VARCHAR
) |
SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta" | What is augusta's low rank? | CREATE TABLE table_name_58 (rank INTEGER, location VARCHAR) |
SELECT institution FROM table_18483171_1 WHERE team_nickname = "Cardinals" | List all institutions with a team name of the Cardinals. | CREATE TABLE table_18483171_1 (institution VARCHAR, team_nickname VARCHAR) |
SELECT "Score" FROM table_7948 WHERE "Date" = 'may 7, 2006' | What is Score, when Date is May 7, 2006? | CREATE TABLE table_7948 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
) |
SELECT model FROM table_name_52 WHERE gcm__kg__technical_capacity = "42000" | Which Model has the GCM (kg) Technical Capacity of 42000? | CREATE TABLE table_name_52 (model VARCHAR, gcm__kg__technical_capacity VARCHAR) |
SELECT COUNT(founded) FROM table_18483171_1 WHERE location = "Rock Island, Illinois" | List the total number of institutions founded in Rock Island, Illinois. | CREATE TABLE table_18483171_1 (founded VARCHAR, location VARCHAR) |
SELECT report FROM table_1140080_2 WHERE location = "Österreichring" | what's the report with location sterreichring | CREATE TABLE table_1140080_2 (
report VARCHAR,
location VARCHAR
) |
SELECT model FROM table_name_94 WHERE gcm__kg__technical_capacity = "35000" AND gvm__kg__technical_capacity = "16000" AND engine_make_capacity = "cummins interact 6.0-euro iii (turbo intercooler)" | Which Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine? | CREATE TABLE table_name_94 (model VARCHAR, engine_make_capacity VARCHAR, gcm__kg__technical_capacity VARCHAR, gvm__kg__technical_capacity VARCHAR) |
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55" | How many viewers in millions watched the episode 23:55 minutes long? | CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) |
SELECT DISTINCT t1.c1 FROM (SELECT labevents.valuenum, PERCENT_RANK() OVER (ORDER BY labevents.valuenum) AS c1 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age =... | what are the percentile of 83.0 in a glucose lab test given the same age of patient 42473 during their current hospital visit? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABL... |
SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006 | Which character won before 2006? | CREATE TABLE table_name_44 (character VARCHAR, result VARCHAR, year VARCHAR) |
SELECT broadcast_date FROM table_1849243_1 WHERE archive = "16mm t/r" | What is the broadcast date of the 16mm t/r episode? | CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR) |
SELECT "race distance\nlaps" FROM table_204_604 WHERE "driver" = 'tony stewart' | how many laps did tony stewart race in 2012 ? | CREATE TABLE table_204_604 (
id number,
"year" number,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"race distance\nlaps" number,
"race distance\nmiles (km)" text,
"race time" text,
"average speed\n(mph)" number,
"report" text
) |
SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004 | In 2004 who was favourite maa? | CREATE TABLE table_name_6 (character VARCHAR, category VARCHAR, year VARCHAR) |
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = "16mm t/r" | How many viewers watched the 16mm t/r episode? | CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, archive VARCHAR) |
SELECT AVG("Avg/G") FROM table_77058 WHERE "Name" = 'david allen' AND "Gain" > '371' | Which Avg/G has a Name of david allen, and a Gain larger than 371? | CREATE TABLE table_77058 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) |
SELECT result FROM table_name_33 WHERE year > 2004 | What were the results after 2004? | CREATE TABLE table_name_33 (result VARCHAR, year INTEGER) |
SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = "Impreuna pentru totdeauna" | state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna | CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR) |
SELECT "Part 3" FROM table_2234 WHERE "Driver" = 'Nick Heidfeld' | What was the time in part 3 when Nick Heidfeld was the driver? | CREATE TABLE table_2234 (
"Pos" text,
"No" text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Grid" text
) |
SELECT category FROM table_name_62 WHERE result = "won" AND year < 2007 | In 2007 what category won? | CREATE TABLE table_name_62 (category VARCHAR, result VARCHAR, year VARCHAR) |
SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies" | what is the mexico stat where mañana es para siempre is love never dies | CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR) |
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5142)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | when was first time patient 5142 was measured with a arterial bp [systolic] greater than 144.0 on last month/03? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
val... |
SELECT d_48_√ FROM table_name_97 WHERE d_40_√ = "d 37" | What's the D 48 √ when the D 40 √ is D 37? | CREATE TABLE table_name_97 (d_48_√ VARCHAR, d_40_√ VARCHAR) |
SELECT october_20, _2008 FROM table_18498743_1 WHERE mexico = "Romania" | what is the october 20, 2008 stat where mexico stat is romania | CREATE TABLE table_18498743_1 (october_20 VARCHAR, _2008 VARCHAR, mexico VARCHAR) |
SELECT opponent FROM table_name_24 WHERE round = "3" AND venue = "home" | What is the Opponent with a Round with 3, and a Venue of home? | CREATE TABLE table_name_24 (
opponent VARCHAR,
round VARCHAR,
venue VARCHAR
) |
SELECT d_42_√ FROM table_name_14 WHERE d_46_√ = "majority→" | What's the D 42 √ when D 46 √ is majority→? | CREATE TABLE table_name_14 (d_42_√ VARCHAR, d_46_√ VARCHAR) |
SELECT other FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis" | Name the other for chironius multiventris septentrionalis | CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR) |
SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6 | Name the number of ends lost for 6 stolen ends | CREATE TABLE table_26745426_2 (
Ends VARCHAR,
stolen_ends VARCHAR
) |
SELECT d_40_√ FROM table_name_23 WHERE d_43_√ = "d 14" | What's the D 40 √ when D 43 √ is d 14? | CREATE TABLE table_name_23 (d_40_√ VARCHAR, d_43_√ VARCHAR) |
SELECT trinidad FROM table_1850282_7 WHERE common_name = "Yellow-bellied puffing snake" | Name the trinidad for yellow-bellied puffing snake | CREATE TABLE table_1850282_7 (trinidad VARCHAR, common_name VARCHAR) |
SELECT "Date" FROM table_44397 WHERE "Away team" = 'bury' | What date was Bury the home team? | CREATE TABLE table_44397 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majority→" | What's the D 42 √ when D 44 √ is majority→? | CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR) |
SELECT bocas_is FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis" | Name the bocas for chironius multiventris septentrionalis | CREATE TABLE table_1850282_7 (bocas_is VARCHAR, species VARCHAR) |
SELECT flattening_ratio FROM table_name_75 WHERE equatorial_diameter = "120,536km" | What is the Flattening ratio associated with the Equatorial diameter of 120,536km? | CREATE TABLE table_name_75 (
flattening_ratio VARCHAR,
equatorial_diameter VARCHAR
) |
SELECT d_44_√ FROM table_name_27 WHERE d_46_√ = "d 26" | What's the D 44 √ when D 46 √ is d 26? | CREATE TABLE table_name_27 (d_44_√ VARCHAR, d_46_√ VARCHAR) |
SELECT common_name FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis" | Name the common name for chironius multiventris septentrionalis | CREATE TABLE table_1850282_7 (common_name VARCHAR, species VARCHAR) |
SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description ORDER BY outcome_description | List the number of the description of the outcomes for all projects, and show by the X-axis in ascending. | CREATE TABLE Organisation_Types (
organisation_type VARCHAR(10),
organisation_type_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 Researc... |
SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 5" | What's the D 42 √ when D 43 √ is r 5? | CREATE TABLE table_name_13 (d_42_√ VARCHAR, d_43_√ VARCHAR) |
SELECT contestant_name FROM table_18513028_3 WHERE date_premiered__2009_ = "July 25" | What contestant was premiered on July 25? | CREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR) |
SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0 | What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0? | CREATE TABLE table_name_65 (
season INTEGER,
wins VARCHAR,
podiums VARCHAR,
races VARCHAR
) |
SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue" | How many benue houses have been founded? | CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR) |
SELECT air_force___navy_score FROM table_1850339_2 WHERE season = 2018 | What's the Air Force - Navy score in the 2018 season? | CREATE TABLE table_1850339_2 (air_force___navy_score VARCHAR, season VARCHAR) |
SELECT "driver" FROM table_203_854 WHERE "total" < (SELECT "total" FROM table_203_854 WHERE "driver" = 'max twigg') ORDER BY "total" DESC LIMIT 1 | who was the next highest scorer after max twigg ? | CREATE TABLE table_203_854 (
id number,
"position" number,
"driver" text,
"no." text,
"car" text,
"entrant" text,
"rd 1" number,
"rd 2" number,
"rd 3" number,
"rd 4" number,
"rd 5" number,
"rd 6" number,
"rd 7" number,
"rd 8" number,
"total" number
) |
SELECT MIN(founded) FROM table_name_56 WHERE named_after = "river benue" | When is the earliest year founded for houses named after the river benue? | CREATE TABLE table_name_56 (founded INTEGER, named_after VARCHAR) |
SELECT air_force___navy_score FROM table_1850339_2 WHERE season = 1983 | What was the Air Force - Navy score in the 1983 season? | CREATE TABLE table_1850339_2 (air_force___navy_score VARCHAR, season VARCHAR) |
SELECT MAX(elevation__ft_) FROM table_name_40 WHERE type = "stratovolcano" AND name = "goat rocks" AND elevation__m_ > 2 OFFSET 494 | Type of stratovolcano, and a Name of goat rocks, and a Elevation (m) larger than 2,494 has what highest elevation in feet? | CREATE TABLE table_name_40 (
elevation__ft_ INTEGER,
elevation__m_ VARCHAR,
type VARCHAR,
name VARCHAR
) |
SELECT composition FROM table_name_37 WHERE founded = 1976 | What composition was founded in 1976? | CREATE TABLE table_name_37 (composition VARCHAR, founded VARCHAR) |
SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = "10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)" | How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)? | CREATE TABLE table_1850339_2 (season VARCHAR, army___navy_score VARCHAR) |
SELECT "Scores by each individual judge" FROM table_12298 WHERE "Status" = 'current' AND "Co-contestant (Yaar vs. Pyaar)" = 'krushna abhishek' | What Scores by each individual judge has a Status of current, and a Co-contestant (Yaar vs. Pyaar) of krushna abhishek? | CREATE TABLE table_12298 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
) |
SELECT colours FROM table_name_93 WHERE house_name = "ogun" | What colours have a House Name of ogun? | CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR) |
SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = "3.26" | Name the tourism receipts 2003 for tourism competitiveness 3.26 | CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR) |
SELECT "No-Yds" FROM table_18015 WHERE "Ast" = '8' | List all number of yards with an AST of 8. | CREATE TABLE table_18015 (
"Name" text,
"GP" real,
"Solo" real,
"Ast" real,
"Total" real,
"TFL-Yds" text,
"No-Yds" text,
"BrUp" real,
"QBH" real,
"No.-Yds" text,
"Avg" text,
"TD" real,
"Long" real,
"Rcv-Yds" text,
"FF" real,
"Blkd Kick" real
) |
SELECT AVG(attendance) FROM table_name_34 WHERE date = "january 6, 2008" | What's the average attendance on january 6, 2008? | CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) |
SELECT tourism_receipts__2003___as__percentage_of_gdp_ FROM table_18524_6 WHERE country = "Colombia" | Name the tourism receipts 2003 for colombia | CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, country VARCHAR) |
SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY COUNT(*) | Show the total number from each type, and order y axis in ascending order. | CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
) |
SELECT score FROM table_name_43 WHERE visitor = "spurs" | What was the score when the spurs were the visitors? | CREATE TABLE table_name_43 (score VARCHAR, visitor VARCHAR) |
SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "13.5" | Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5 | CREATE TABLE table_18524_6 (tourism_receipts__2011___us VARCHAR, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR) |
SELECT "Land ( sqmi )" FROM table_1918 WHERE "GEO ID" = '3807717980' | Name the land where geo id is 3807717980 | CREATE TABLE table_1918 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) |
SELECT SUM(gnis_feature_id) FROM table_name_64 WHERE county = "idaho" | What is the total GNIS Feature ID with a County of idaho? | CREATE TABLE table_name_64 (gnis_feature_id INTEGER, county VARCHAR) |
SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY" | When classic hits 102.1 cjcy is the branding who is the owner? | CREATE TABLE table_18536769_1 (owner VARCHAR, branding VARCHAR) |
SELECT "Service Charge" FROM table_35342 WHERE "Designation" = '12-pdr light' | What is the service chage of the boat howitzers with a 12-pdr light destination? | CREATE TABLE table_35342 (
"Designation" text,
"Bore" text,
"Weight" text,
"Service Charge" text,
"Range (yards)" text,
"Number Made" real
) |
SELECT MIN(gnis_feature_id) FROM table_name_39 WHERE county = "sheridan" | What is the lowest GNIS Feature ID from County of sheridan? | CREATE TABLE table_name_39 (gnis_feature_id INTEGER, county VARCHAR) |
SELECT call_sign FROM table_18536769_1 WHERE format = "hot adult contemporary" | When hot adult contemporary is the format what is the call sign? | CREATE TABLE table_18536769_1 (call_sign VARCHAR, format VARCHAR) |
SELECT MIN(assists) FROM table_name_17 WHERE name = "ben duggan" AND points < 7 | What is the smallest number of assists for Ben Duggan with less than 7 points? | CREATE TABLE table_name_17 (
assists INTEGER,
name VARCHAR,
points VARCHAR
) |
SELECT state FROM table_name_91 WHERE name = "diamond lake" AND gnis_feature_id = 1579127 | Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127? | CREATE TABLE table_name_91 (state VARCHAR, name VARCHAR, gnis_feature_id VARCHAR) |
SELECT COUNT(call_sign) FROM table_18536769_1 WHERE owner = "Vista Radio" | When vista radio is the owner how many call signs are there? | CREATE TABLE table_18536769_1 (call_sign VARCHAR, owner VARCHAR) |
SELECT city FROM table_28719193_19 WHERE stadium = "Gerald J. Ford stadium" | What was the city whose stadium is Gerald J. Ford Stadium? | CREATE TABLE table_28719193_19 (
city VARCHAR,
stadium VARCHAR
) |
SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh" | Who directed the episode written cyrus nowrasteh? | CREATE TABLE table_name_85 (directed_by VARCHAR, written_by VARCHAR) |
SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = "FM 97.3" | When fm 97.3 is the frequency how many formats are there? | CREATE TABLE table_18536769_1 (format VARCHAR, frequency VARCHAR) |
SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76" | What is the production code when the u.s. viewers (million) is 11.76? | CREATE TABLE table_26702204_1 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
) |
SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126 | What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126? | CREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR) |
SELECT frequency FROM table_18536769_1 WHERE owner = "Vista Radio" | When vista radio is the owner what is the frequency? | CREATE TABLE table_18536769_1 (frequency VARCHAR, owner VARCHAR) |
SELECT SUM("Total") FROM table_39233 WHERE "T Score" > '8' AND "E Score" < '8.4' | What is the total of the team with a T score greater than 8 and an E score less than 8.4? | CREATE TABLE table_39233 (
"Nation" text,
"T Score" real,
"A Score" real,
"E Score" real,
"Total" real
) |
SELECT 2006 FROM table_name_96 WHERE 2001 = "4r" | Which 2006 tournament had a 4R performance in 2001? | CREATE TABLE table_name_96 (Id VARCHAR) |
SELECT team FROM table_18522916_5 WHERE date_of_appointment = "5 September 2008" AND date_of_vacancy = "30 August 2008" | Name the team for 5 september 2008 for date of vacancy for 30 august 2008 | CREATE TABLE table_18522916_5 (team VARCHAR, date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT name, COUNT(name) FROM train GROUP BY name | Compare all train names' total numbers. | CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TA... |
SELECT tournament FROM table_name_79 WHERE 2004 = "1r" AND 1998 = "2r" | Which tournament had a performance of 1R in 2004 and 2R in 1998? | CREATE TABLE table_name_79 (tournament VARCHAR) |
SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = "Daniel Uberti" | Name the date of vacancy for daniel uberti | CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) |
SELECT * FROM table_train_142 WHERE alzheimer_disease_ad = 1 AND (mini_mental_state_examination_mmse >= 18 AND mini_mental_state_examination_mmse <= 26) | a diagnosis of alzheimer's's disease ( nincds _ adrda criterion ) , and mini _ mental status examination ( mmse ) score between > / = 18 and < / = 26 | CREATE TABLE table_train_142 (
"id" int,
"allergy_to_monoclonal_antibodies" bool,
"allergic_reactions" bool,
"allergy_to_methylprednisolone" bool,
"mini_mental_state_examination_mmse" int,
"depressed_mood" bool,
"urea_cycle_disorder" bool,
"clinical_contraindication_use_valproate" bool,
... |
SELECT 1998 FROM table_name_14 WHERE 2007 = "3r" | Which 1998 tournament had a performance of 3R in 2007? | CREATE TABLE table_name_14 (Id VARCHAR) |
SELECT manner_of_departure FROM table_18522916_5 WHERE date_of_vacancy = "25 August 2008" | Name the manner of departure for date of vacancy 25 august 2008 | CREATE TABLE table_18522916_5 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.