instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_40683 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Wins with a Top-25 of 3, and a Top-... | SELECT AVG("Wins") FROM table_40683 WHERE "Top-25" = '3' AND "Top-5" > '1' |
### Instruction:
CREATE TABLE table_9901 (
"Matrix" real,
"Recording date" text,
"Title" text,
"Accompaniment" text,
"Paramount Issue No." real,
"Sandra Lieb Classification" text,
"JSP 77933" text,
"Document DOCD" real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MAX("Matrix") FROM table_9901 WHERE "Recording date" = '1926/03' |
### Instruction:
CREATE TABLE film (
film_id number,
title text,
studio text,
director text,
gross_in_dollar number
)
CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
high_estimate number,
film_id number,
type text,
market_id number,
year ... | SELECT COUNT(*) FROM film |
### Instruction:
CREATE TABLE table_3359 (
"Total" real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"UK air date" text,
"Canadian Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("Canadian Viewers (millions)") FROM table_3359 WHERE "Directed by" = 'Yannick Bisson' |
### Instruction:
CREATE TABLE table_38750 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the ... | SELECT AVG("Crowd") FROM table_38750 WHERE "Away team score" = '14.14 (98)' |
### Instruction:
CREATE TABLE perpetrator (
Perpetrator_ID int,
People_ID int,
Date text,
Year real,
Location text,
Country text,
Killed int,
Injured int
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
"Home Town" text
)
-- Using valid S... | SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country |
### Instruction:
CREATE TABLE table_24992 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Manufacturer" FROM table_24992 WHERE "Year" = '2004' |
### Instruction:
CREATE TABLE table_53877 (
"Interregnum began" text,
"Interregnum ended" text,
"Duration" text,
"Count Palatine of Saxony" text,
"Count Palatine of the Rhine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Interregnum en... | SELECT "Interregnum ended" FROM table_53877 WHERE "Count Palatine of Saxony" = 'john george ii, elector of saxony' |
### Instruction:
CREATE TABLE table_76311 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score In The Final, when Cham... | SELECT "Score in the final" FROM table_76311 WHERE "Championship" = 'athens , greece' AND "Outcome" = 'winner' |
### Instruction:
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following ques... | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 |
### Instruction:
CREATE TABLE table_51550 (
"5:00" text,
"6:00" text,
"7:00" text,
"8:00" text,
"10:00" text,
"11:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 10:00 with a 7:00 with mostly true stories: urban legends revealed?
... | SELECT "10:00" FROM table_51550 WHERE "7:00" = 'mostly true stories: urban legends revealed' |
### Instruction:
CREATE TABLE table_10534 (
"Number" real,
"District" text,
"Size km\u00b2" real,
"Population" real,
"Density hab/km" real,
"Councilman" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the size km when th... | SELECT SUM("Size km\u00b2") FROM table_10534 WHERE "Density hab/km" = '8,321' |
### Instruction:
CREATE TABLE table_66812 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gender for the person tha... | SELECT "Gender" FROM table_66812 WHERE "Votes" > '11,542' AND "Residence" = 'pasadena' |
### Instruction:
CREATE TABLE table_train_257 (
"id" int,
"serum_bicarbonate" int,
"plasma_glucose_concentration" int,
"hemoglobin_a1c_hba1c" float,
"platelets" int,
"visual_impairment" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT * FROM table_train_257 WHERE serum_bicarbonate < 15 |
### Instruction:
CREATE TABLE table_204_954 (
id number,
"no." number,
"country" text,
"2009 winter\nuniversiade" number,
"2007 wjcc" number,
"2007 wwcc" number,
"2008 wjcc" number,
"2008 wwcc" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "country" FROM table_204_954 WHERE "no." = 1 |
### Instruction:
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth te... | SELECT candidate_id FROM candidate ORDER BY oppose_rate LIMIT 1 |
### Instruction:
CREATE TABLE table_204_514 (
id number,
"date" text,
"sub" number,
"flight" text,
"dead" number,
"hurt" number,
"pax." number,
"type" text,
"perpetrator" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "hurt" FROM table_204_514 WHERE "date" = '2-apr-86' |
### Instruction:
CREATE TABLE table_58002 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city of license has a Frequency under 107.7, a... | SELECT "City of license" FROM table_58002 WHERE "Frequency MHz" < '107.7' AND "Call sign" = 'w247aq' |
### Instruction:
CREATE TABLE table_204_774 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was his first opponent in the ... | SELECT "opponent" FROM table_204_774 WHERE "competition" = '2006 fifa world cup qualification' ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
-- Using valid SQ... | SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue ORDER BY Venue |
### Instruction:
CREATE TABLE table_10117 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of losses wher... | SELECT MAX("Losses") FROM table_10117 WHERE "Goals Against" = '32' AND "Goals For" > '45' |
### Instruction:
CREATE TABLE table_24392 (
"City & Nation" text,
"First Place" real,
"Second Place" real,
"Third Place" real,
"Total Top 3 Placements" real,
"First Place Winning Year(s) (if applicable)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT MAX("Third Place") FROM table_24392 WHERE "First Place Winning Year(s) (if applicable)" = 'N/A' |
### Instruction:
CREATE TABLE table_train_149 (
"id" int,
"prostate_specific_antigen_psa" float,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"fasting_serum_glucose" int,
"vitamin_d" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT * FROM table_train_149 WHERE c_peptide_level < 1 |
### Instruction:
CREATE TABLE table_39160 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mixed doubles in the ... | SELECT "Mixed doubles" FROM table_39160 WHERE "Year" > '2007' AND "Men's singles" = 'eduards loze' |
### Instruction:
CREATE TABLE table_15789 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "Points for" FROM table_15789 WHERE "Club" = 'penallta rfc' |
### Instruction:
CREATE TABLE table_204_350 (
id number,
"date" text,
"opponents" text,
"venue" text,
"result" text,
"scorers" text,
"attendance" number,
"report 1" text,
"report 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what... | SELECT "attendance" FROM table_204_350 WHERE "date" = '30-jan-68' |
### Instruction:
CREATE TABLE table_45472 (
"City proper" text,
"Population City limits in millions" real,
"Density per km\u00b2" real,
"Urban area" text,
"Population Urban area in millions" real,
"Metro area" text,
"Population Metro area in millions" text
)
-- Using valid SQLite, answer t... | SELECT "Urban area" FROM table_45472 WHERE "Population Urban area in millions" = '5.3' |
### Instruction:
CREATE TABLE table_204_514 (
id number,
"date" text,
"sub" number,
"flight" text,
"dead" number,
"hurt" number,
"pax." number,
"type" text,
"perpetrator" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "date" FROM table_204_514 WHERE "type" = 'grenade & small arms fire' |
### Instruction:
CREATE TABLE table_24967 (
"No." real,
"Season" text,
"Championship" real,
"No. of teams" real,
"Start (reg. season)" text,
"Finish (incl. championship)" text,
"Top record" text,
"National Champion" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Finish (incl. championship)" FROM table_24967 WHERE "Start (reg. season)" = 'September 25' |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY Type |
### Instruction:
CREATE TABLE table_204_918 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did they have a better score ag... | SELECT "opponent" FROM table_204_918 WHERE "opponent" IN ('tennessee titans', 'green bay packers') ORDER BY "result" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_18143210_2 (
first_season_of_current_spell_in_top_division VARCHAR,
first_season_in_top_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the 'first season of current spell in top division' if the first seas... | SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65" |
### Instruction:
CREATE TABLE table_74934 (
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Winning manufacturer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the w... | SELECT "Winning driver" FROM table_74934 WHERE "Pole position" = 'timo scheider' AND "Circuit" = 'oschersleben' |
### Instruction:
CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference in score on january... | SELECT ABS("result\nf-a" - "result\nf-a") FROM table_204_467 WHERE "date" = '2 january 1922' |
### Instruction:
CREATE TABLE table_51832 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the notes of the 400 m event before 2004 with a position of... | SELECT "Notes" FROM table_51832 WHERE "Event" = '400 m' AND "Year" < '2004' AND "Position" = '12th (h)' |
### Instruction:
CREATE TABLE table_70007 (
"Nat." text,
"Name" text,
"Since" real,
"App(GS/Sub)" text,
"Goals" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the goals with since less than 2007 and App(GS/Sub) of 97 (6... | SELECT "Goals" FROM table_70007 WHERE "Since" < '2007' AND "App(GS/Sub)" = '97 (69/28)' |
### Instruction:
CREATE TABLE table_15031 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a... | SELECT "Year" FROM table_15031 WHERE "Points" < '1.5' AND "Entrant" = 'escuderia bandeirantes' AND "Engine" = 'maserati straight-4' |
### Instruction:
CREATE TABLE table_75228 (
"Year" real,
"Class" text,
"Team" text,
"Machine" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class had a machine of RS125R, points over 113, and a... | SELECT "Class" FROM table_75228 WHERE "Machine" = 'rs125r' AND "Points" > '113' AND "Rank" = '4th' |
### Instruction:
CREATE TABLE table_13441 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season was t... | SELECT "No. in season" FROM table_13441 WHERE "Written by" = 'fiona kelly' AND "Title" = 'solitary confinement' |
### Instruction:
CREATE TABLE table_42316 (
"Country" text,
"Automobile Name" text,
"Manufacturer" text,
"Engine Make/Capacity" text,
"Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who manufactured the car with the jawa 249cc engine that was ... | SELECT "Manufacturer" FROM table_42316 WHERE "Engine Make/Capacity" = 'jawa 249cc' AND "Year" = '1956-1963' |
### Instruction:
CREATE TABLE table_20252 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOW MANY MODELS WERE ON THE COVER OF... | SELECT COUNT("Cover model") FROM table_20252 WHERE "Centerfold model" = 'Stephanie Larimore' |
### Instruction:
CREATE TABLE table_204_711 (
id number,
"dance" text,
"best dancer(s)" text,
"best score" number,
"worst dancer(s)" text,
"worst score" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who scored higher , argo ader for the quick... | SELECT "best dancer(s)" FROM table_204_711 WHERE "dance" IN ('quickstep', 'paso doble') ORDER BY "best score" DESC LIMIT 1 |
### Instruction:
CREATE TABLE Employees (
Id VARCHAR
)
CREATE TABLE Circulation_History (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts... | SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_40733 (
"Year" real,
"Chart" text,
"Track" text,
"Peak" real,
"Weeks on Chart" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, w... | SELECT COUNT("Weeks on Chart") FROM table_40733 WHERE "Track" = 'eso' AND "Peak" < '25' AND "Year" > '2004' |
### Instruction:
CREATE TABLE table_27386 (
"Language" text,
"Quillacollo Municipality" real,
"Sipe Sipe Municipality" real,
"Tiquipaya Municipality" real,
"Vinto Municipality" real,
"Colcapirhua Municipality" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MAX("Quillacollo Municipality") FROM table_27386 WHERE "Vinto Municipality" = '18630' |
### Instruction:
CREATE TABLE table_name_50 (
score VARCHAR,
opponent_in_final VARCHAR,
outcome VARCHAR,
partnering VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Outcome is 'winner', when Partnering is 'Nicole Sewell', and when O... | SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland" |
### Instruction:
CREATE TABLE table_71401 (
"Date" text,
"Tournament" text,
"Surface" text,
"Tier" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has opponents, Claire D... | SELECT "Date" FROM table_71401 WHERE "Opponents in the final" = 'claire de gubernatis alexandra dulgheru' |
### Instruction:
CREATE TABLE table_24616 (
"Original number" text,
"UIC number" text,
"Name" text,
"Constructer" text,
"constructor number" real,
"Year" real,
"Withdrawn" text,
"Kilometers worked" real
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Original number" FROM table_24616 WHERE "Withdrawn" = '9/07/1999' |
### Instruction:
CREATE TABLE table_43855 (
"Match Day" real,
"Date" text,
"Opponent" text,
"Score" text,
"League Position" real,
"Attendance" real,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the league position number w... | SELECT COUNT("League Position") FROM table_43855 WHERE "Attendance" = '14,673' AND "Match Day" > '26' |
### Instruction:
CREATE TABLE table_74149 (
"Institution" text,
"Team" text,
"City" text,
"Province" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Endowment" text,
"Football stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions f... | SELECT "Capacity" FROM table_74149 WHERE "Institution" = 'University of Alberta' |
### Instruction:
CREATE TABLE table_19959 (
"Election" real,
"Labour" real,
"Conservative" real,
"Liberal" real,
"Social Democratic Party" real,
"Social and Liberal Democrats/ Liberal Democrats" real,
"Independent" real,
"Green" real,
"Other" text,
"Control" text
)
-- Using val... | SELECT "Social Democratic Party" FROM table_19959 WHERE "Control" = 'Labour' |
### Instruction:
CREATE TABLE table_7434 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the opponent was the Denver Broncos and the attendance more than 21,671 and the wee... | SELECT "Result" FROM table_7434 WHERE "Week" < '8' AND "Attendance" > '21,671' AND "Opponent" = 'denver broncos' |
### Instruction:
CREATE TABLE table_29643 (
"Rnd" real,
"Circuit" text,
"Sports +2.0 Winning Team" text,
"Sports 2.0 Winning Team" text,
"GT +2.0 Winning Team" text,
"GT 2.0 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT MIN("Rnd") FROM table_29643 WHERE "Sports +2.0 Winning Team" = 'Hap Sharp' |
### Instruction:
CREATE TABLE table_10106 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team had a crowd siz... | SELECT "Home team" FROM table_10106 WHERE "Crowd" > '14,000' AND "Venue" = 'junction oval' |
### Instruction:
CREATE TABLE table_76860 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MAX("Game") FROM table_76860 WHERE "High assists" = 'hedo türkoğlu (7)' |
### Instruction:
CREATE TABLE table_67118 (
"State ranked in partisan order" text,
"Percentage Republicans" text,
"Percentage Democrats" text,
"Republican/ Democratic" text,
"Republican seat plurality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "State ranked in partisan order" FROM table_67118 WHERE "Percentage Democrats" = '25%' AND "Republican/ Democratic" = '6/2' |
### Instruction:
CREATE TABLE table_203_196 (
id number,
"terminal" text,
"operator" text,
"depth\n(m)" text,
"berths" number,
"quay length\n(m)" number,
"quay cranes" number,
"area\n(m2)" number,
"capacity\n(kteus)" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "operator" FROM table_203_196 WHERE id = 1 |
### Instruction:
CREATE TABLE table_21894 (
"Tournament Appearances" real,
"Team" text,
"League" text,
"Wins" real,
"Final Losses" real,
"Semi-Final Losses" real,
"Fourth-Place*" real,
"Final Win %" text,
"Years of appearance" text
)
-- Using valid SQLite, answer the following ques... | SELECT "Wins" FROM table_21894 WHERE "Team" = 'Erie Otters' |
### Instruction:
CREATE TABLE table_18581 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the district with result being re-elected and ca... | SELECT "District" FROM table_18581 WHERE "Result" = 'Re-elected' AND "Candidates" = 'Clarence F. Lea (D) Unopposed' |
### Instruction:
CREATE TABLE table_63178 (
"Number" text,
"Previous Number(s)" real,
"Previous Class" text,
"Converted" real,
"Withdrawn" real,
"Disposal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Withdrawn has a Number of 42, and... | SELECT SUM("Withdrawn") FROM table_63178 WHERE "Number" = '42' AND "Previous Number(s)" > '68178' |
### Instruction:
CREATE TABLE table_204_862 (
id number,
"rank" number,
"bib" number,
"athlete" text,
"country" text,
"run 1" text,
"run 2" text,
"total" text,
"behind" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished af... | SELECT "athlete" FROM table_204_862 WHERE id = (SELECT id FROM table_204_862 WHERE "athlete" = 'felix loch') + 1 |
### Instruction:
CREATE TABLE table_name_46 (
average_attendance VARCHAR,
sport VARCHAR,
_number_of_teams VARCHAR,
season VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average attendance of the 2011 season that had ga... | SELECT average_attendance FROM table_name_46 WHERE season = "2011" AND games < 519 AND _number_of_teams > 14 AND sport = "association football" |
### Instruction:
CREATE TABLE table_203_30 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
)
-- Using valid SQLite, answer the following qu... | SELECT COUNT("team") FROM table_203_30 WHERE "points" >= 25 |
### Instruction:
CREATE TABLE table_6486 (
"College" text,
"Bachelor's" real,
"Masters" real,
"Doctorate" real,
"Specialist" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of doctorates the college of informatics and syste... | SELECT MAX("Doctorate") FROM table_6486 WHERE "Specialist" = '0' AND "College" = 'informatics and systems' AND "Masters" < '2' |
### Instruction:
CREATE TABLE table_204_618 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"nasl" number,
"playoffs" number,
"cfu club championship" number,
"concacaf champions league" number,
"total" number
)
-- Using valid SQLite, answer the follo... | SELECT "name" FROM table_204_618 WHERE "cfu club championship" >= 3 |
### Instruction:
CREATE TABLE table_203_95 (
id number,
"year" text,
"democratic\nparty" number,
"republican\nparty" number,
"independent\n/ other" text,
"majority" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did the south ca... | SELECT COUNT("year") FROM table_203_95 WHERE "democratic\nparty" = 0 AND "republican\nparty" = 0 |
### Instruction:
CREATE TABLE table_4320 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Vikings points" real,
"Opponents" real,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest ... | SELECT MAX("Opponents") FROM table_4320 WHERE "Record" = '7-3' AND "Vikings points" > '7' |
### Instruction:
CREATE TABLE table_204_104 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which wa... | SELECT "title" FROM table_204_104 WHERE "title" IN ('artamene', 'merope') ORDER BY "premiere date" LIMIT 1 |
### Instruction:
CREATE TABLE table_69686 (
"Year" real,
"Award" text,
"Work" text,
"Cole" text,
"Dylan" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards
... | SELECT "Cole" FROM table_69686 WHERE "Year" < '2009' AND "Dylan" = 'nominated' AND "Work" = 'big daddy' AND "Award" = 'mtv movie awards' |
### Instruction:
CREATE TABLE table_11108 (
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has a Kickoff [a] of 4:00, and an Opponent of ... | SELECT "Date" FROM table_11108 WHERE "Kickoff [a ]" = '4:00' AND "Opponent" = 'detroit lions' |
### Instruction:
CREATE TABLE table_53285 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record that has... | SELECT "Record" FROM table_53285 WHERE "Streak" = 'l1' AND "Score" = 'l 95–111' |
### Instruction:
CREATE TABLE artwork (
artwork_id number,
type text,
name text
)
CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_audience number
)
CREATE TABLE nomination (
artwork_id number,
festiv... | SELECT SUM(num_of_audience) FROM festival_detail |
### Instruction:
CREATE TABLE table_71851 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's on at 7:30 before the 9:00 showing of the Tudors?
### R... | SELECT "7:30" FROM table_71851 WHERE "9:00" = 'the tudors' |
### Instruction:
CREATE TABLE table_22408 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of garfield episode 2 wh... | SELECT "Garfield Episode 2" FROM table_22408 WHERE "Garfield Episode 1" = 'The Horror Hostess (Part 1)' |
### Instruction:
CREATE TABLE table_204_794 (
id number,
"iec\nworld plugs\nType" text,
"standard" text,
"power\nrating" text,
"earthed" text,
"polarised" text,
"fused" text,
"insulated\npins" text,
"europlug\ncompatible" text
)
-- Using valid SQLite, answer the following questions... | SELECT "power\nrating" FROM table_204_794 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1 |
### Instruction:
CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total pillo... | SELECT COUNT("name") FROM table_204_111 WHERE "reintroduced" = 1999 AND "retired" = 1999 |
### Instruction:
CREATE TABLE table_75182 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding (10 March 2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Group's equity sha... | SELECT "Group's Equity Shareholding (10 March 2010)" FROM table_75182 WHERE "Company" = 'vn/cx catering services limited' |
### Instruction:
CREATE TABLE table_73673 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Podiums") FROM table_73673 WHERE "Series" = 'British F3 National Class' |
### Instruction:
CREATE TABLE table_44343 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Quantity made" FROM table_44343 WHERE "Manufacturer" = '4-6-2 — oooooo — pacific' |
### Instruction:
CREATE TABLE table_21244 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High rebounds" FROM table_21244 WHERE "High assists" = 'Craig Smith (4)' |
### Instruction:
CREATE TABLE table_46396 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High assists" FROM table_46396 WHERE "High points" = 't. j. ford (29)' |
### Instruction:
CREATE TABLE table_79629 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Loss of the game at ... | SELECT "Loss" FROM table_79629 WHERE "Score" = '4–3' AND "Arena" = 'nationwide arena' |
### Instruction:
CREATE TABLE table_67835 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- yes or no for the gold coast with yes for melbourne, yes for... | SELECT "Gold Coast" FROM table_67835 WHERE "Melbourne" = 'yes' AND "Adelaide" = 'yes' AND "Auckland" = 'yes' |
### Instruction:
CREATE TABLE table_28296 (
"Browser" text,
"Operating system" text,
"Latest stable release" text,
"Theora" text,
"H.264" text,
"VP8 ( WebM )" text,
"VP9 ( WebM )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When h.264 is ... | SELECT "VP9 ( WebM )" FROM table_28296 WHERE "H.264" = '9.0' |
### Instruction:
CREATE TABLE table_16466 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT MIN("No. in series") FROM table_16466 WHERE "U.S. viewers (million)" = '3.6' |
### Instruction:
CREATE TABLE table_65912 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Country" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time... | SELECT AVG("React") FROM table_65912 WHERE "Lane" < '4' AND "Rank" > '4' AND "Time" > '23.22' |
### Instruction:
CREATE TABLE table_204_964 (
id number,
"team" text,
"seasons" number,
"games" number,
"wins" number,
"ties" number,
"losses" number,
"goals\nfor" number,
"goals\nagainst" number,
"goal\ndiff" number,
"points" number
)
-- Using valid SQLite, answer the foll... | SELECT "team" FROM table_204_964 WHERE id = 1 |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT Support_rate, Consider_rate FROM candidate |
### Instruction:
CREATE TABLE table_41604 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original air date for the episode directed by lev... | SELECT "Original air date" FROM table_41604 WHERE "Directed by" = 'lev l. spiro' AND "Production code" = '07-00-109' |
### Instruction:
CREATE TABLE table_15761 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT COUNT("Goals for") FROM table_15761 WHERE "Played" > '44' |
### Instruction:
CREATE TABLE table_26393 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many d... | SELECT COUNT("Directed by") FROM table_26393 WHERE "Written by" = 'Brent Fletcher & Miranda Kwok' |
### Instruction:
CREATE TABLE table_name_52 (
fcc_info VARCHAR,
facility_id VARCHAR,
frequency_mhz VARCHAR,
erp_w VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the FCC info for the call sign with a frequency MHz of 101.3, a ERP W over 10, an... | SELECT fcc_info FROM table_name_52 WHERE frequency_mhz = 101.3 AND erp_w > 10 AND facility_id < 87027 |
### Instruction:
CREATE TABLE table_44968 (
"Pollutant" text,
"Type" text,
"Standard" text,
"Averaging Time" text,
"Regulatory Citation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the polluntant when the regulatory citation is 40 cfr 50.... | SELECT "Pollutant" FROM table_44968 WHERE "Regulatory Citation" = '40 cfr 50.7(a)' AND "Type" = 'primary' |
### Instruction:
CREATE TABLE table_30498 (
"Week" real,
"Portraying" text,
"Song" text,
"Julian Clary" text,
"Emma Bunton" text,
"Guest Judge" text,
"Bonus Points" text,
"Total" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Emma Bunton" FROM table_30498 WHERE "Total" = '22' |
### Instruction:
CREATE TABLE table_33785 (
"Rank" real,
"City" text,
"State" text,
"GDP in $ID B" text,
"Population M (LUZ)" real,
"GDP per capita $ID K" text,
"Eurozone" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Eurozone r... | SELECT "Eurozone" FROM table_33785 WHERE "Population M (LUZ)" = '3.08' |
### Instruction:
CREATE TABLE table_7666 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog when the format is ed remaster cd, and a Label of village records, and a... | SELECT "Catalog" FROM table_7666 WHERE "Format" = 'ed remaster cd' AND "Label" = 'village records' AND "Date" = 'march 13, 2002' |
### Instruction:
CREATE TABLE table_25781 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High assists" FROM table_25781 WHERE "Score" = 'L 85–118 (OT)' |
### Instruction:
CREATE TABLE table_16467 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Written by" FROM table_16467 WHERE "Original air date" = 'April 17, 2011' |
### Instruction:
CREATE TABLE table_3847 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Location Attendance" FROM table_3847 WHERE "High assists" = 'LeBron James (10)' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.