answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX(episode__number) FROM table_19517621_4 WHERE title = "Jerusalem" | What is the latest episode number with the title of Jerusalem? | CREATE TABLE table_19517621_4 (episode__number INTEGER, title VARCHAR) |
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time >= '12:00:00' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 351 AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year ... | In the Spring-Summer 2007 in the afternoon is 351 offered ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additio... |
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2 | What is the most bronze a team with more than 2 silvers has? | CREATE TABLE table_name_22 (bronze INTEGER, silver INTEGER) |
SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen" | What was the original air date of the episode written by Michelle Offen? | CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR) |
SELECT "title" FROM table_203_37 WHERE "#" = (SELECT "#" FROM table_203_37 WHERE "title" = '"kreditz"') + 1 | what is the title of the next track after kreditz ? | CREATE TABLE table_203_37 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer(s)" text,
"length" text
) |
SELECT SUM(bronze) FROM table_name_67 WHERE gold = 1 AND silver > 3 | What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has? | CREATE TABLE table_name_67 (bronze INTEGER, gold VARCHAR, silver VARCHAR) |
SELECT title FROM table_19517621_4 WHERE written_by = "Vanessa Bates" | What is the title of the episode written by Vanessa Bates? | CREATE TABLE table_19517621_4 (title VARCHAR, written_by VARCHAR) |
SELECT rID, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID | For each reviewer id, show their corresponding rating for the movie in a scatter chart. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) |
SELECT AVG(draw) FROM table_name_86 WHERE points = 59 | What is the draw number that has 59 points? | CREATE TABLE table_name_86 (draw INTEGER, points VARCHAR) |
SELECT original_airdate FROM table_19517621_4 WHERE title = "The Transit of Venus" | What was the original air date for the episode Calle, The Transit of Venus? | CREATE TABLE table_19517621_4 (original_airdate VARCHAR, title VARCHAR) |
SELECT "Home team score" FROM table_54730 WHERE "Away team" = 'st kilda' | Which Home team score has an Away team of st kilda? | CREATE TABLE table_54730 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT place FROM table_name_62 WHERE artist = "roger pontare" | What place for roger pontare? | CREATE TABLE table_name_62 (place VARCHAR, artist VARCHAR) |
SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003" | What is the completion percentage when yards per attempt was done by Steve McNair : 2003? | CREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR) |
SELECT "Garfield Episode 2" FROM table_22391 WHERE "Garfield Episode 1" = 'Twice Told Tale' | what is the 2nd garfield episode for garfield episode 1 twice told tale | CREATE TABLE table_22391 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) |
SELECT song FROM table_name_41 WHERE draw < 2 | What song has draw number less than 2? | CREATE TABLE table_name_41 (song VARCHAR, draw INTEGER) |
SELECT rank FROM table_19517448_3 WHERE rating = "146.8" | What rank has a rating of 146.8? | CREATE TABLE table_19517448_3 (rank VARCHAR, rating VARCHAR) |
SELECT MIN("Appearance") FROM table_76234 WHERE "Goals" > '0' | what is the lowest appearance when goals is more than 0? | CREATE TABLE table_76234 (
"Season" text,
"Appearance" real,
"Tries" real,
"Goals" real,
"Points" real
) |
SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon" | What was the attendance when Essendon played as the home team? | CREATE TABLE table_name_42 (crowd VARCHAR, home_team VARCHAR) |
SELECT yards_per_attempt FROM table_19517448_3 WHERE total_yards = "513" | How many yards per attempt were there when total yards were 513? | CREATE TABLE table_19517448_3 (yards_per_attempt VARCHAR, total_yards VARCHAR) |
SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) = '2102' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3 | what's the top three most common output events in 2102? | 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 cost (
costid num... |
SELECT home_team FROM table_name_3 WHERE venue = "windy hill" | Who played the home team at Windy Hill? | CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR) |
SELECT MAX(series__number) FROM table_19517621_3 WHERE written_by = "Kristen Dunphy and David Ogilvy" | What is the series number for the episode written by Kristen Dunphy and David Ogilvy? | CREATE TABLE table_19517621_3 (series__number INTEGER, written_by VARCHAR) |
SELECT elector FROM table_name_13 WHERE title = "titulus s. cecilia" | What Elector has the Title of Titulus S. Cecilia? | CREATE TABLE table_name_13 (
elector VARCHAR,
title VARCHAR
) |
SELECT date FROM table_name_41 WHERE decision = "wall" | What was the date of the game that had a decision of wall? | CREATE TABLE table_name_41 (date VARCHAR, decision VARCHAR) |
SELECT COUNT(directed_by) FROM table_19517621_3 WHERE title = "The Lost Boy" | If the title if the Lost Boy, how many directors were there? | CREATE TABLE table_19517621_3 (directed_by VARCHAR, title VARCHAR) |
SELECT "years at nebraska" - "years at nebraska" FROM table_204_95 WHERE "name" = 'w. harold browne' | how many consecutive years did w. harold browne coach | CREATE TABLE table_204_95 (
id number,
"name" text,
"title" text,
"first year\nin this position" number,
"years at nebraska" text,
"alma mater" text
) |
SELECT circuit FROM table_name_84 WHERE pole_position = "jack brabham" AND fastest_lap = "graham hill" | What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap? | CREATE TABLE table_name_84 (circuit VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) |
SELECT title FROM table_19517621_3 WHERE written_by = "Michael Miller" | What is the title for the episode that written by Michael Miller? | CREATE TABLE table_19517621_3 (title VARCHAR, written_by VARCHAR) |
SELECT "Number" FROM table_70374 WHERE "Language" = 'other' | Name the number which has language of other | CREATE TABLE table_70374 (
"Language" text,
"Number" text,
"percentage (%)" text,
"males" text,
"females" text
) |
SELECT race FROM table_name_90 WHERE circuit = "monaco" | What race contains the Monaco circuit? | CREATE TABLE table_name_90 (race VARCHAR, circuit VARCHAR) |
SELECT afc_championships FROM table_1952057_5 WHERE playoff_berths = 17 | If the playoff berth is 17, what is the AFC championship number? | CREATE TABLE table_1952057_5 (afc_championships VARCHAR, playoff_berths VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "JEHOVAH'S WITNESS" AND lab.itemid = "51514" | How many jehovah's witness patients have lab test item id 51514? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... |
SELECT date FROM table_name_43 WHERE pole_position = "jack brabham" AND circuit = "spa-francorchamps" | What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps? | CREATE TABLE table_name_43 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR) |
SELECT MIN(super_bowl_championships) FROM table_1952057_5 WHERE team = "New England Patriots" | If the team in the New England Patriots, what is the super bowl championship minimum number? | CREATE TABLE table_1952057_5 (super_bowl_championships INTEGER, team VARCHAR) |
SELECT (SELECT "population" FROM table_203_152 WHERE "province" = 'san juan') - (SELECT "population" FROM table_203_152 WHERE "province" = 'sanchez ramirez') | what is the difference between the population of san juan and sanchez ramirez ? | CREATE TABLE table_203_152 (
id number,
"province" text,
"capital" text,
"area (km2)" number,
"population" number,
"density" number
) |
SELECT circuit FROM table_name_1 WHERE fastest_lap = "phil hill" | What is the name of the circuit when Phil Hill has the fastest lap? | CREATE TABLE table_name_1 (circuit VARCHAR, fastest_lap VARCHAR) |
SELECT MAX(afc_championships) FROM table_1952057_5 | What is the maximum number of AFC championships? | CREATE TABLE table_1952057_5 (afc_championships INTEGER) |
SELECT COUNT("Number") FROM table_41727 WHERE "School/Club Team" = 'de la salle' | How many total players came from the school/club team of De La Salle? | CREATE TABLE table_41727 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) |
SELECT SUM(reg_gp) FROM table_name_28 WHERE player = "peter andersson" AND pick__number < 143 | What is the sum of every REG GP that Peter Andersson played as a pick# less than 143? | CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR) |
SELECT COUNT(authors) FROM table_19523708_1 WHERE original = "Carry On" | How many authors are present when the original was Carry On? | CREATE TABLE table_19523708_1 (authors VARCHAR, original VARCHAR) |
SELECT ACC_Regular_Season, Team_ID FROM basketball_match | Return a pie chart about the proportion of ACC_Regular_Season and Team_ID. | 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 COUNT(pl_gp) FROM table_name_73 WHERE player = "anton rodin" AND reg_gp < 0 | What is the total of PI GP played by Anton Rodin with a Reg GP less than 0? | CREATE TABLE table_name_73 (pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR) |
SELECT draw FROM table_19523708_1 WHERE language = "English" AND english_meaning = "Eyes That Never Lie" | What was the draw for the english meaning Eyes that Never Lie? | CREATE TABLE table_19523708_1 (draw VARCHAR, language VARCHAR, english_meaning VARCHAR) |
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-70504')) AND intakeoutput.cellpath LIKE '%output%... | until 10/26/2103, when was the first time that patient 017-70504 had a drainage total output? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... |
SELECT COUNT(pick__number) FROM table_name_32 WHERE player = "anton rodin" AND reg_gp > 0 | What is the total pick# played by Anton Rodin with a Reg GP over 0? | CREATE TABLE table_name_32 (pick__number VARCHAR, player VARCHAR, reg_gp VARCHAR) |
SELECT MAX(draw) FROM table_19523708_1 | What is the highest draw represented? | CREATE TABLE table_19523708_1 (draw INTEGER) |
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards" | Which character was in the sexiest female category of the British Soap Awards? | CREATE TABLE table_name_59 (
character VARCHAR,
category VARCHAR,
award VARCHAR
) |
SELECT MIN(grid) FROM table_name_52 WHERE laps > 67 AND driver = "stefan bellof" | What is the lowest grid that has over 67 laps with stefan bellof driving? | CREATE TABLE table_name_52 (grid INTEGER, laps VARCHAR, driver VARCHAR) |
SELECT artist FROM table_19523708_1 WHERE original = "Shake It, Europe" | Who was the artist for the origin Shake it, Europe? | CREATE TABLE table_19523708_1 (artist VARCHAR, original VARCHAR) |
SELECT "Partner" FROM table_9882 WHERE "Surface" = 'clay' AND "Opponents in the final" = 'alicia molik mara santangelo' | Who's the partner that played against Alicia Molik Mara Santangelo on clay? | CREATE TABLE table_9882 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) |
SELECT SUM(laps) FROM table_name_2 WHERE grid < 14 AND time_retired = "out of fuel" | How many laps have a grid under 14 and a time/retired of out of fuel? | CREATE TABLE table_name_2 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) |
SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = "Yuriy Korotkevich" | What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich? | CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR) |
SELECT q.Id AS "post_link", ViewCount, Score, AnswerCount FROM Posts AS q WHERE (q.CreationDate >= '##Date1?2019-03-01##') AND (q.CreationDate <= '##Date2?2021-01-01##') AND q.Id NOT IN (SELECT PostId FROM PostHistory WHERE PostHistoryTypeId = 52) ORDER BY ViewCount DESC LIMIT 500 | Most viewed questions that were not in the HNQ. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... |
SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = "renault" AND laps > 23 | Who drove the renault that went over 23 laps and had a grid under 11? | CREATE TABLE table_name_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR) |
SELECT arena__capacity_ FROM table_19526911_1 WHERE head_coach = "Roberto Serniotti" | What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti? | CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR) |
SELECT SUM("Density (2005)") FROM table_48072 WHERE "Area (km\u00b2)" = '340086.7' AND "Population (2005)" < '5926300' | Which Density (2005) has an Area (km ) of 340086.7, and a Population (2005) smaller than 5926300? | CREATE TABLE table_48072 (
"State" text,
"Abbreviation" text,
"Capital" text,
"Area (km\u00b2)" real,
"Population (2005)" real,
"Density (2005)" real,
"GDP (% total) (2004)" text,
"GDP per capita (US$) (2004)" real,
"HDI (2005)" real,
"Literacy (2003)" text,
"Infant Mortality... |
SELECT AVG(ngc_number) FROM table_name_59 WHERE apparent_magnitude > 14.2 | What is the average NGC number that has a Apparent magnitude greater than 14.2? | CREATE TABLE table_name_59 (ngc_number INTEGER, apparent_magnitude INTEGER) |
SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow" | Who are the foreign players on team/s that play in Moscow? | CREATE TABLE table_19526911_1 (foreign_players__max_2_ VARCHAR, town VARCHAR) |
SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events GROUP BY date_moved_in ORDER BY date_moved_in | Give me a bar chart that the X-axis is the date_moved_in and the Y-axis is Count them, could you show by the bar in ascending please? | CREATE TABLE Properties (
property_id INTEGER,
property_type_code CHAR(15),
property_address VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Residents (
resident_id INTEGER,
property_id INTEGER,
date_moved_in DATETIME,
date_moved_out DATETIME,
other_details VARCHAR(255)
)
C... |
SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3 | What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3? | CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR) |
SELECT previous_season_2007_2008 FROM table_19526911_1 WHERE website = "www.novavolley.narod.ru" | What are the previous season ranks of teams whose website is www.novavolley.narod.ru? | CREATE TABLE table_19526911_1 (previous_season_2007_2008 VARCHAR, website VARCHAR) |
SELECT County_name, Population FROM county | Show the county name and population of all counties. | CREATE TABLE county (
County_name VARCHAR,
Population VARCHAR
) |
SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986 | What Constellation has a Object type of globular cluster and a NGC number of 5986? | CREATE TABLE table_name_17 (constellation VARCHAR, object_type VARCHAR, ngc_number VARCHAR) |
SELECT MIN(indoor) FROM table_19534874_2 WHERE inspection = 5 | What are the minimum indoor results that have a 5 for inspection? | CREATE TABLE table_19534874_2 (indoor INTEGER, inspection VARCHAR) |
SELECT "Lightweight" FROM table_31598 WHERE "Information Model" = 'no' AND "Flexible" = 'unknown' | What is the lightweight value with no information model and the flexible value is unknown? | CREATE TABLE table_31598 (
"Schemas" text,
"Flexible" text,
"Semantic verification" text,
"Dictionary" text,
"Information Model" text,
"Synonyms and homonyms" text,
"Dialecting" text,
"Web standard" text,
"Transformations" text,
"Lightweight" text,
"Human readable" text
) |
SELECT AVG(bronze) FROM table_name_43 WHERE points < 5 AND gold < 0 | For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals? | CREATE TABLE table_name_43 (bronze INTEGER, points VARCHAR, gold VARCHAR) |
SELECT MAX(written) FROM table_19534874_2 WHERE standard = 2 | What was the maximum number in written when the standard was 2? | CREATE TABLE table_19534874_2 (written INTEGER, standard VARCHAR) |
SELECT "Competition" FROM table_72104 WHERE "1st leg" = '4-1 (h)' | what's the competition where 1st leg is 4-1 (h) | CREATE TABLE table_72104 (
"Season" text,
"Competition" text,
"Round" text,
"Opponents" text,
"1st leg" text,
"2nd leg" text,
"Aggregate" text
) |
SELECT AVG(points) FROM table_name_78 WHERE small_silver > 9 AND club = "aik" AND bronze > 8 | Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have? | CREATE TABLE table_name_78 (points INTEGER, bronze VARCHAR, small_silver VARCHAR, club VARCHAR) |
SELECT COUNT(points) FROM table_19534874_2 WHERE mile_run = 3 | How many point categories are there for the 3 mile run? | CREATE TABLE table_19534874_2 (points VARCHAR, mile_run VARCHAR) |
SELECT "Score" FROM table_47634 WHERE "Date" = '1999-05-31' | WHAT SCORE WAS ON 1999-05-31? | CREATE TABLE table_47634 (
"Opponent" text,
"Res." text,
"Class" text,
"Score" text,
"Date" text,
"Competition" text,
"Notes" text
) |
SELECT COUNT(points) FROM table_name_68 WHERE club = "landskrona bois" AND rank < 18 | How many points did landskrona bois get when they were ranked below 18? | CREATE TABLE table_name_68 (points VARCHAR, club VARCHAR, rank VARCHAR) |
SELECT indoor FROM table_19534874_2 WHERE wing = "NJ" | What is the indoor number for the NJ wing/ | CREATE TABLE table_19534874_2 (indoor VARCHAR, wing VARCHAR) |
SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc" | What was the tries again llanishen rfc? | CREATE TABLE table_name_35 (
tries_against VARCHAR,
club VARCHAR
) |
SELECT opponent FROM table_name_29 WHERE game = 5 | Who was the opponent for game 5? | CREATE TABLE table_name_29 (opponent VARCHAR, game VARCHAR) |
SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER" | What is the indoor number for the NER region? | CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR) |
SELECT COUNT(team) FROM table_27631756_2 WHERE head_coach = "Mahdi Ali" | How many teams have a head coach named mahdi ali? | CREATE TABLE table_27631756_2 (
team VARCHAR,
head_coach VARCHAR
) |
SELECT team FROM table_name_28 WHERE pick > 30 AND position = "c" AND round > 4 | Name the team for pick more than 30 and position of c with round more than 4 | CREATE TABLE table_name_28 (team VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR) |
SELECT winning_span FROM table_1953516_1 WHERE name = "Martin Kaymer" | What is the winning span of the name martin kaymer? | CREATE TABLE table_1953516_1 (winning_span VARCHAR, name VARCHAR) |
SELECT date FROM table_name_33 WHERE region = "europe" AND catalog = "74321 45851 2" | What Date has the Region Europe and a Catalog of 74321 45851 2? | CREATE TABLE table_name_33 (
date VARCHAR,
region VARCHAR,
catalog VARCHAR
) |
SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15 | What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15? | CREATE TABLE table_name_26 (number_of_decimal_digits VARCHAR, total_bits VARCHAR, exponent VARCHAR) |
SELECT winning_span FROM table_1953516_1 WHERE country = "England" AND name = "Paul Casey" | What is the winning span in the country of England with the name of paul casey? | CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE area.area LIKE '%hardw... | What hardware courses in the Winter or Fall of 2002 are offered ? | CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course (
course_id int,
name varchar,
department... |
SELECT COUNT(significand) FROM table_name_41 WHERE number_of_decimal_digits = "~34.0" AND total_bits > 128 | What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits? | CREATE TABLE table_name_41 (significand VARCHAR, number_of_decimal_digits VARCHAR, total_bits VARCHAR) |
SELECT winning_span FROM table_1953516_1 WHERE name = "Bernard Gallacher" | What is the winning span for the name of bernard gallacher? | CREATE TABLE table_1953516_1 (winning_span VARCHAR, name VARCHAR) |
SELECT "Party a" FROM table_25276 WHERE "Runner-up a" = 'M. S. K. Sathiyendran' | Name the party a for m. s. k. sathiyendran runner up | CREATE TABLE table_25276 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
) |
SELECT SUM(sign) FROM table_name_98 WHERE bits_precision > 53 AND type = "double extended (80-bit)" AND total_bits > 80 | What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits? | CREATE TABLE table_name_98 (sign INTEGER, total_bits VARCHAR, bits_precision VARCHAR, type VARCHAR) |
SELECT winning_span FROM table_1953516_1 WHERE rank = "5" | What is the winning span with the rank of 5? | CREATE TABLE table_1953516_1 (winning_span VARCHAR, rank VARCHAR) |
SELECT "Genitive" FROM table_46629 WHERE "Ergative" = 'shen' | What is the genitive for the ergative shen? | CREATE TABLE table_46629 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
) |
SELECT MIN(bits_precision) FROM table_name_32 WHERE total_bits < 16 | What's the lowest bits precision when the total bits are less than 16? | CREATE TABLE table_name_32 (bits_precision INTEGER, total_bits INTEGER) |
SELECT COUNT(scorecard) FROM table_19576091_1 WHERE date = "October 28" | How many scorecards are there for the match on October 28? | CREATE TABLE table_19576091_1 (scorecard VARCHAR, date VARCHAR) |
SELECT order_and_title FROM table_name_6 WHERE nationality = "roman" AND elector = "matteo orsini rosso" | What is the Order and Title with a Nationality with roman, and an Elector with matteo orsini rosso? | CREATE TABLE table_name_6 (
order_and_title VARCHAR,
nationality VARCHAR,
elector VARCHAR
) |
SELECT SUM(years_played) FROM table_name_28 WHERE singles_win_loss = "4-9" AND first_year_played < 1999 | How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999? | CREATE TABLE table_name_28 (years_played INTEGER, singles_win_loss VARCHAR, first_year_played VARCHAR) |
SELECT COUNT(venue) FROM table_19576091_1 WHERE date = "November 6" | How many venues were there for the match on November 6? | CREATE TABLE table_19576091_1 (venue VARCHAR, date VARCHAR) |
SELECT SUM(points) FROM table_name_77 WHERE chassis = "ferrari 125" AND year > 1952 | How many total points were earned with ferrari 125 Chassis after 1952? | CREATE TABLE table_name_77 (
points INTEGER,
chassis VARCHAR,
year VARCHAR
) |
SELECT MAX(game) FROM table_name_29 WHERE record = "12-8-1" | What is the highest game number with a record of 12-8-1? | CREATE TABLE table_name_29 (game INTEGER, record VARCHAR) |
SELECT venue FROM table_19576091_1 WHERE date = "October 10" | What was the venue for the match on October 10? | CREATE TABLE table_19576091_1 (venue VARCHAR, date VARCHAR) |
SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = "Ezequiel Astacio" | Who was the wenning witcher when ezequiel astacio was the losing pitcher? | CREATE TABLE table_13710464_1 (
winning_pitcher VARCHAR,
losing_pitcher VARCHAR
) |
SELECT record FROM table_name_46 WHERE decision = "valiquette" AND november = 23 | What is the record when the decision was valiquette on November 23? | CREATE TABLE table_name_46 (record VARCHAR, decision VARCHAR, november VARCHAR) |
SELECT man_of_the_match FROM table_19576091_1 WHERE result = "Rockets won by 9 wickets" | Who was the man of the match when the Rockets won by 9 wickets? | CREATE TABLE table_19576091_1 (man_of_the_match VARCHAR, result VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.