answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
CREATE TABLE table_name_41 ( total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR )
SELECT opponent FROM table_name_71 WHERE player = "ashley sampi"
Who was ashley sampi's opponent?
CREATE TABLE table_name_71 (opponent VARCHAR, player VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Charalambos Kazilas Stepan Partemian"
Name the womens doubles when mens doubles is charalambos kazilas stepan partemian
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT "L2 cache" FROM table_9499 WHERE "Model number" = 'mobile pentium 333'
What is the L2 cache for the Mobile Pentium 333?
CREATE TABLE table_9499 ( "Model number" text, "sSpec number" text, "Frequency" text, "L2 cache" text, "Mult." text, "Voltage" text, "Socket" text, "Part number(s)" text )
SELECT team FROM table_name_59 WHERE year > 1935 AND player = "daniel bradshaw"
Which team did daniel bradshaw play for after 1935?
CREATE TABLE table_name_59 (team VARCHAR, year VARCHAR, player VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mixed_doubles = "Potten Ruth Scott"
Name the womens doubles when mixed doubles is potten ruth scott
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT COUNT(*) FROM medicine WHERE FDA_approved = 'No'
How many medicines have the FDA approval status 'No' ?
CREATE TABLE medicine ( FDA_approved VARCHAR )
SELECT player FROM table_name_25 WHERE year = 1992
Who played in 1992?
CREATE TABLE table_name_25 (player VARCHAR, year VARCHAR)
SELECT mens_singles FROM table_14903881_1 WHERE mens_doubles = "George Georgoudis Gerostergiou"
Name the mens singles when mens doubles is george georgoudis gerostergiou
CREATE TABLE table_14903881_1 (mens_singles VARCHAR, mens_doubles VARCHAR)
SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(card_type_code) DESC
Show the number of cards in different card type code in a bar chart, show y axis in descending order.
CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(...
SELECT date FROM table_name_65 WHERE away_team = "fitzroy"
What date was fitzroy the away team?
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Theodoros Velkos Giorgos Patis"
Name the womens doubles when mens doubles is theodoros velkos giorgos patis
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT T1.Title, T1.AlbumId FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 ORDER BY T1.AlbumId DESC
Show me a bar chart for what are the titles and ids for albums containing tracks with unit price greater than 1?, and rank in descending by the AlbumId.
CREATE TABLE Album ( AlbumId integer, Title varchar(160), ArtistId integer ) CREATE TABLE PlaylistTrack ( PlaylistId integer, TrackId integer ) CREATE TABLE Customer ( CustomerId integer, FirstName varchar(40), LastName varchar(20), Company varchar(80), Address varchar(70), ...
SELECT surface FROM table_name_13 WHERE partner = "carlos berlocq"
Name the surface when the partner is carlos berlocq
CREATE TABLE table_name_13 (surface VARCHAR, partner VARCHAR)
SELECT MIN(year) FROM table_14903999_1 WHERE mixed_doubles = "Þorvaldur Ásgeirsson Lovísa Sigurðardóttir"
What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles
CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR)
SELECT "Building" FROM table_34671 WHERE "Status" = 'proposed' AND "Floors" = '32'
what is a building that is proposed and will have 32 floors?
CREATE TABLE table_34671 ( "Rank" real, "Building" text, "City" text, "Height (m/ft)" text, "Floors" real, "Status" text )
SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0–6, 0–6"
Name the date for clay surface and score of 0–6, 0–6
CREATE TABLE table_name_75 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT womens_doubles FROM table_14903999_1 WHERE mixed_doubles = "Magnús Ingi Helgason Tinna Helgadóttir" AND womens_singles = "Ragna Ingólfsdóttir" AND year = 2010
Who won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010
CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, year VARCHAR, mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_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, show me about the distribution of job_id and the average of salary , and group by attribute job_id in a bar chart, I want to display bar from high to low order please.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), ...
SELECT partner FROM table_name_80 WHERE score = "6–3, 6–2"
Name the partner with score of 6–3, 6–2
CREATE TABLE table_name_80 (partner VARCHAR, score VARCHAR)
SELECT COUNT(womens_doubles) FROM table_14903999_1 WHERE mixed_doubles = "Broddi Kristjánsson Drífa Harðardóttir"
How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles
CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT SUM("League") FROM table_53428 WHERE "Name" = 'mustoe' AND "League Cup" < '0'
What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals in the League Cup?
CREATE TABLE table_53428 ( "Name" text, "League" real, "FA Cup" real, "League Cup" real, "Total" real )
SELECT tournament FROM table_name_99 WHERE surface = "clay" AND outcome = "winner" AND score = "6–3, 6–2"
Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2
CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT MAX(year) FROM table_14903999_1 WHERE mixed_doubles = "Árni Þór Hallgrímsson Drífa Harðardóttir"
What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles
CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Other pulmonary insufficiency, not elsewhere classified" AND prescriptions.drug_type = "ADD...
Provide the number of patients on additive type drug prescription who have other pulmonary insufficiency not elsewhere classified diagnoses.
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 outcome FROM table_name_70 WHERE date = "6 october 2013"
Name the outcome on 6 october 2013
CREATE TABLE table_name_70 (outcome VARCHAR, date VARCHAR)
SELECT mens_singles FROM table_14903999_1 WHERE mens_doubles = "Sveinn Logi Sölvason Tryggvi Nilsen" AND womens_singles = "Elsa Nielsen"
Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles
CREATE TABLE table_14903999_1 (mens_singles VARCHAR, mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli"
Which of the entrants had Luigi Fagioli as a driver?
CREATE TABLE table_name_79 ( entrant VARCHAR, driver VARCHAR )
SELECT song FROM table_name_55 WHERE total_points > 9 AND jury__points_ = "44 (11)"
What is the song with more than 9 points and 44 (11) jury (points)?
CREATE TABLE table_name_55 (song VARCHAR, total_points VARCHAR, jury__points_ VARCHAR)
SELECT position FROM table_14911550_5 WHERE team = "Cerro Porteño"
In which position is the team Cerro Porteño?
CREATE TABLE table_14911550_5 (position VARCHAR, team VARCHAR)
SELECT "Season" FROM table_63305 WHERE "Pos." = '1st' AND "Pld." = '33' AND "Pts." = '58'
What season had 1st position, 33 pld, and 58 points?
CREATE TABLE table_63305 ( "Season" text, "Div." text, "Pos." text, "Pld." text, "Pts." text )
SELECT artist FROM table_name_11 WHERE televotes__points_ = "2153 (5)"
Who is the artist with 2153 (5) televotes (points)?
CREATE TABLE table_name_11 (artist VARCHAR, televotes__points_ VARCHAR)
SELECT MIN(played) FROM table_14911550_5
How many games were played?
CREATE TABLE table_14911550_5 (played INTEGER)
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'aspirin' AND patient.uniquepid = '006-146580' AND STRFTIME('%y-%m', medication.drugstarttime) >= '2102-05') AS t1 JOIN (S...
when was the first time since 05/2102 patient 006-146580 was prescribed an aspirin and 2 ml vial : famotidine 10 mg/ml iv soln at the same time?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( in...
SELECT MIN(total_points) FROM table_name_8 WHERE draw < 4 AND artist = "karine trécy"
What is the lowest total points Karine Trécy has with less than 4 draws?
CREATE TABLE table_name_8 (total_points INTEGER, draw VARCHAR, artist VARCHAR)
SELECT mixed_doubles FROM table_14904221_1 WHERE mens_doubles = "no competition"
What is the result of men's doubles when there was no competition?
CREATE TABLE table_14904221_1 (mixed_doubles VARCHAR, mens_doubles VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2089" AND prescriptions.drug = "MetFORMIN (Glucophage)"
how many patients born before the year 2089 were given the drug metaformin (glucophage)?
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 MIN(total_points) FROM table_name_84 WHERE artist = "karine trécy" AND place < 12
What is the lowest total points Karine Trécy has with a less than 12 place?
CREATE TABLE table_name_84 (total_points INTEGER, artist VARCHAR, place VARCHAR)
SELECT mens_singles FROM table_14904221_1 WHERE year = 1994
WHo won men's singles in 1994?
CREATE TABLE table_14904221_1 (mens_singles VARCHAR, year VARCHAR)
SELECT location FROM table_name_98 WHERE school = "lacrosse"
Where is the lacrosse school located?
CREATE TABLE table_name_98 ( location VARCHAR, school VARCHAR )
SELECT AVG(18 AS _49) FROM table_name_96 WHERE viewers__m_ = 3.93 AND share < 4
What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4?
CREATE TABLE table_name_96 (viewers__m_ VARCHAR, share VARCHAR)
SELECT womens_singles FROM table_14904221_1 WHERE year = 2001
Who won women's singles in 2001?
CREATE TABLE table_14904221_1 (womens_singles VARCHAR, year VARCHAR)
SELECT school FROM table_name_79 WHERE team_name = "pirates"
What school has a team called the Pirates?
CREATE TABLE table_name_79 ( school VARCHAR, team_name VARCHAR )
SELECT COUNT(18 AS _49) FROM table_name_47 WHERE air_date = "january 7, 2009"
What is the total number of ratings among the 18 to 49 group that was aired on January 7, 2009?
CREATE TABLE table_name_47 (air_date VARCHAR)
SELECT MIN(wins) FROM table_14911550_1
Name the least wins
CREATE TABLE table_14911550_1 (wins INTEGER)
SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 5
Name the least wins for 5 losses
CREATE TABLE table_18607260_6 ( wins INTEGER, losses VARCHAR )
SELECT MAX(laps) FROM table_name_16 WHERE driver = "mike hailwood" AND grid > 7
What was Mike Hailwood's highest laps when he had a grid more than 7?
CREATE TABLE table_name_16 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT result FROM table_14928423_1 WHERE original_title = "Γолемата Вода"
is γолемата вода nominated for anything?
CREATE TABLE table_14928423_1 (result VARCHAR, original_title VARCHAR)
SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts
How many accounts are opened in each day? Bin the account open day by weekday in a bar chart.
CREATE TABLE Invoice_Line_Items ( order_item_id INTEGER, invoice_number INTEGER, product_id INTEGER, product_title VARCHAR(80), product_quantity VARCHAR(50), product_price DECIMAL(19,4), derived_product_cost DECIMAL(19,4), derived_vat_payable DECIMAL(19,4), derived_total_cost DECIMAL...
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362"
What is the name of the site with a CERCLIS ID of prd980512362?
CREATE TABLE table_name_77 (name VARCHAR, cerclis_id VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
how many years has сенки been nominated?
CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "PTUN" AND demographic.dod_year <= "2133.0"
give me the number of patients whose language is ptun and year of death is less than or equal to 2133?
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 listed FROM table_name_22 WHERE municipality = "florida"
What is the site for Florida?
CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR)
SELECT COUNT(director_s_) FROM table_14928423_1 WHERE original_title = "Мајки"
how many directors for the film мајки
CREATE TABLE table_14928423_1 (director_s_ VARCHAR, original_title VARCHAR)
SELECT "Period" FROM table_29507 WHERE "NC*" = '22.7'
What period was there a 22.7 NC?
CREATE TABLE table_29507 ( "Period" text, "Live births per year" text, "Deaths per year" text, "Natural change per year" text, "CBR*" text, "CDR*" text, "NC*" text, "TFR*" text, "IMR*" real, "Life expectancy total" text, "Life expectancy males" text, "Life expectancy fema...
SELECT deleted FROM table_name_8 WHERE name = "rca del caribe"
What site in the RCA Del Caribe was deleted?
CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR)
SELECT performer_2 FROM table_14934885_1 WHERE episode = 5
Who is the second performer in episode 5?
CREATE TABLE table_14934885_1 (performer_2 VARCHAR, episode VARCHAR)
SELECT "Circuit" FROM table_16018 WHERE "Fastest Lap" = 'Hideki Mutoh'
What circuit was the race where Hideki Mutoh had the fastest lap?
CREATE TABLE table_16018 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text )
SELECT partially_deleted FROM table_name_65 WHERE name = "fibers public supply wells"
Where is the partially deleted site of fibers public supply wells located?
CREATE TABLE table_name_65 (partially_deleted VARCHAR, name VARCHAR)
SELECT COUNT(date) FROM table_14934885_1 WHERE performer_3 = "Kate Robbins"
How many times was performer 3 Kate Robbins?
CREATE TABLE table_14934885_1 (date VARCHAR, performer_3 VARCHAR)
SELECT "Home team" FROM table_20769 WHERE "Away team" = 'Carlton'
Who was the home team when the away team is Carlton?
CREATE TABLE table_20769 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text )
SELECT municipality FROM table_name_35 WHERE proposed = "03/08/2004"
The proposed 03/08/2004 site is in what municipality?
CREATE TABLE table_name_35 (municipality VARCHAR, proposed VARCHAR)
SELECT performer_1 FROM table_14934885_1 WHERE date = "30 January 1988"
Who was perfomer one on 30 January 1988?
CREATE TABLE table_14934885_1 (performer_1 VARCHAR, date VARCHAR)
SELECT COUNT("Year of First Appearance") FROM table_5474 WHERE "Corps Name" = 'black knights' AND "Number of Finals Appearances" < '1'
What is the year of the first appearance of the Black Knights, who had less than 1 finals appearances?
CREATE TABLE table_5474 ( "Corps Name" text, "Number of Finals Appearances" real, "Year of First Appearance" real, "Year of Most Recent Appearance" real, "All Years of Finals Appearances" text )
SELECT release_format FROM table_name_55 WHERE release_date > 1983
What is the release format for titles after 1983?
CREATE TABLE table_name_55 (release_format VARCHAR, release_date INTEGER)
SELECT performer_4 FROM table_14934885_1 WHERE performer_3 = "Kate Robbins"
Who was performer 4 when Kate Robbins was performer 3?
CREATE TABLE table_14934885_1 (performer_4 VARCHAR, performer_3 VARCHAR)
SELECT COUNT("Player") FROM table_17085 WHERE "Hometown" = 'Indianapolis, Indiana'
How many players are from Indianapolis, Indiana?
CREATE TABLE table_17085 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT venue FROM table_name_39 WHERE home_team = "carlton"
What venue is the home of the Carlton team?
CREATE TABLE table_name_39 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(episode) FROM table_14934885_1 WHERE performer_4 = "Jimmy Mulville"
How many episodes was Jimmy Mulville performer 4?
CREATE TABLE table_14934885_1 (episode VARCHAR, performer_4 VARCHAR)
SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY All_Neutral
Draw a scatter chart about the correlation between School_ID and ACC_Percent , and group by attribute All_Neutral.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT driver FROM table_name_88 WHERE laps = "68" AND grid = "18"
Which driver had a grid of 18 with 68 laps?
CREATE TABLE table_name_88 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT general_election FROM table_149330_1 WHERE votes_swing = "1.84"
Which general election had a vote swing of 1.84?
CREATE TABLE table_149330_1 (general_election VARCHAR, votes_swing VARCHAR)
SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only"
What is the current code for the club trophy, in 1867 only?
CREATE TABLE table_name_20 ( current_code VARCHAR, type VARCHAR, years VARCHAR )
SELECT driver FROM table_name_58 WHERE grid = "18"
Which driver had a grid of 18?
CREATE TABLE table_name_58 (driver VARCHAR, grid VARCHAR)
SELECT COUNT(seats_won) FROM table_149330_1 WHERE _percentage_of_votes = "20.29"
What was the total number of seats won where the % of votes is equal to 20.29?
CREATE TABLE table_149330_1 (seats_won VARCHAR, _percentage_of_votes VARCHAR)
SELECT date_of_birth, COUNT(date_of_birth) FROM Guests WHERE gender_code = "Male" ORDER BY date_of_birth
What are the number of dates of birth of all the guests whose gender is 'Male'?, I want to show x axis in ascending order.
CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE View_Unit_Status ( apt_id INTEG...
SELECT driver FROM table_name_43 WHERE grid = "22"
Which driver had a grid of 22?
CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR)
SELECT change_in_seat FROM table_149330_1 WHERE _percentage_of_votes = "23.75"
What was the number of seat changes when the % of votes was 23.75?
CREATE TABLE table_149330_1 (change_in_seat VARCHAR, _percentage_of_votes VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "S/P HANGING" AND prescriptions.drug_type = "MAIN"
count the number of patients whose primary disease is s/p hanging and drug type is main?
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 season FROM table_name_41 WHERE wicket_partnership = "2nd"
Which season is the wicket 2nd partnership in?
CREATE TABLE table_name_41 (season VARCHAR, wicket_partnership VARCHAR)
SELECT general_election FROM table_149330_1 WHERE votes_swing = "1.69"
Which general election had a vote swing of 1.69?
CREATE TABLE table_149330_1 (general_election VARCHAR, votes_swing VARCHAR)
SELECT ABS((SELECT "capacity" FROM table_204_750 WHERE "stadium" = 'penydarren park') - (SELECT "capacity" FROM table_204_750 WHERE "stadium" = 'hand stadium'))
what is the difference in the capacity between penydarren park and hand stadium ?
CREATE TABLE table_204_750 ( id number, "team" text, "stadium" text, "capacity" number, "seated" number )
SELECT venue FROM table_name_4 WHERE opponents = "v kent"
Where did v kent play?
CREATE TABLE table_name_4 (venue VARCHAR, opponents VARCHAR)
SELECT votes_swing FROM table_149330_1 WHERE general_election = "12th Lok Sabha"
What was the vote swing for the general election of the 12th lok sabha?
CREATE TABLE table_149330_1 (votes_swing VARCHAR, general_election VARCHAR)
SELECT "Entrant" FROM table_71258 WHERE "Year" < '1975' AND "Chassis" = 'lotus 20'
Who is entered earlier than 1975 and has a Lotus 20 chassis?
CREATE TABLE table_71258 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT runs FROM table_name_28 WHERE batsmen = "james bryant graeme welch"
Which runs had james bryant graeme welch as Batsmen?
CREATE TABLE table_name_28 (runs VARCHAR, batsmen VARCHAR)
SELECT result FROM table_14942535_1 WHERE week = 4
What was the team's result in week 4?
CREATE TABLE table_14942535_1 (result VARCHAR, week VARCHAR)
SELECT COUNT("Round") FROM table_22439 WHERE "New entries this round" = '65'
If new entries this round is 65, what is the round?
CREATE TABLE table_22439 ( "Round" text, "Clubs remaining" real, "Clubs involved" real, "Winners from previous round" text, "New entries this round" text, "Leagues entering at this round" text )
SELECT clay FROM table_name_36 WHERE record = "2–0" AND hard = "1–0"
Which clay has a Record of 2–0, and a Hard 1–0?
CREATE TABLE table_name_36 (clay VARCHAR, record VARCHAR, hard VARCHAR)
SELECT prefix_size FROM table_149426_4 WHERE network_mask = "255.255.255.252"
When the network mask is 255.255.255.252 what is the prefix size?
CREATE TABLE table_149426_4 (prefix_size VARCHAR, network_mask VARCHAR)
SELECT arizona FROM table_name_83 WHERE colorado = "nixon" AND nevada = "nixon" AND texas = "humphrey"
What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?
CREATE TABLE table_name_83 ( arizona VARCHAR, texas VARCHAR, colorado VARCHAR, nevada VARCHAR )
SELECT hard FROM table_name_10 WHERE clay = "0–0" AND grass = "0–0" AND carpet = "0–0" AND record = "1–0"
Which hard has a Clay of 0–0, Grass of 0–0, Carpet of 0–0, and a Record of 1–0?
CREATE TABLE table_name_10 (hard VARCHAR, record VARCHAR, carpet VARCHAR, clay VARCHAR, grass VARCHAR)
SELECT MAX(available_subnets) FROM table_149426_4
available subnets leading total is?
CREATE TABLE table_149426_4 (available_subnets INTEGER)
SELECT "Surface" FROM table_74361 WHERE "Location" = 'Dehradun , Uttarakhand, India'
what is the material of the surface in the dehradun , uttarakhand, india location
CREATE TABLE table_74361 ( "Outcome" text, "Date" text, "Tournament" text, "Location" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT carpet FROM table_name_1 WHERE clay = "1–0" AND hard = "1–1"
Which carpet has a Clay of 1–0 and a Hard 1–1?
CREATE TABLE table_name_1 (carpet VARCHAR, clay VARCHAR, hard VARCHAR)
SELECT MIN(available_subnets) FROM table_149426_4 WHERE network_mask = "255.255.255.128"
When the network mask is 255.255.255.128 what is the lowest available subnet?
CREATE TABLE table_149426_4 (available_subnets INTEGER, network_mask VARCHAR)
SELECT MAX("Pos") FROM table_23529 WHERE "Driver" = 'Brendan Sole'
what is the lowest position of brendan sole
CREATE TABLE table_23529 ( "Pos" real, "Driver" text, "Vehicle" text, "Top 13 Time" text, "Shoot-Out Time" text, "Best Time of Day" text )
SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378
Name the most rank for population more than 93,378
CREATE TABLE table_name_5 (rank INTEGER, population INTEGER)
SELECT MAX(total_usable_hosts) FROM table_149426_4 WHERE network_mask = "255.255.255.224"
When the network mask is 255.255.255.224 what is the highest total usable host?
CREATE TABLE table_149426_4 (total_usable_hosts INTEGER, network_mask VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "B12 defic anemia NEC" AND prescriptions.drug_type = "MAIN"
provide the number of patients whose diagnoses short title is b12 defic anemia nec and drug type is main?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...