instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the ERP W number where the frequency is smaller than 91.1?
### Response:
| SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1 |
### Instruction:
Name the college/junior club team for jimmy jones
### Response:
| SELECT "College/junior/club team" FROM table_2091 WHERE "Player" = 'Jimmy Jones' |
### Instruction:
Number of Questions before introducing bounties to SO.
### Response:
| SELECT COUNT(Id) FROM Posts WHERE CreationDate < '2009-01-27' AND PostTypeId = 1 |
### Instruction:
What was the manner of departure for the team whose incoming manager was George Burley?
### Response:
| SELECT "Manner of departure" FROM table_28802 WHERE "Incoming manager" = 'George Burley' |
### Instruction:
What was the score of the 2014 World Cup Qualification?
### Response:
| SELECT "Score" FROM table_40532 WHERE "Competition" = '2014 world cup qualification' |
### Instruction:
Which Arena has Points larger than 28, and a Date of december 14?
### Response:
| SELECT arena FROM table_name_2 WHERE points > 28 AND date = "december 14" |
### Instruction:
How many rounds did Alex Ardoin achieved a fastest lap?
### Response:
| SELECT COUNT(round) FROM table_25459168_2 WHERE fastest_lap = "Alex Ardoin" |
### Instruction:
In what season did Omar Thomas play, with a jersey number larger than 15?
### Response:
| SELECT season FROM table_name_81 WHERE number > 15 AND name = "omar thomas" |
### Instruction:
What is the vault score for the total of 56.635?
### Response:
| SELECT vault FROM table_11542215_3 WHERE total = "56.635" |
### Instruction:
Which position was picked before 63, for Oklahoma College?
### Response:
| SELECT "Position" FROM table_65135 WHERE "Pick" < '63' AND "College" = 'oklahoma' |
### Instruction:
What is the rank of the time of 6:30.53?
### Response:
| SELECT COUNT("Rank") FROM table_79208 WHERE "Time" = '6:30.53' |
### Instruction:
Which City has a State of massachusetts, and a School of northeastern university?
### Response:
| SELECT city FROM table_name_59 WHERE state = "massachusetts" AND school = "northeastern university" |
### Instruction:
Which Record has a High rebounds of luc mbah a moute (11)?
### Response:
| SELECT record FROM table_name_42 WHERE high_rebounds = "luc mbah a moute (11)" |
### Instruction:
Which city has a conference of LCC2 and a year earlier than 2009?
### Response:
| SELECT city FROM table_name_70 WHERE year < 2009 AND conference = "lcc2" |
### Instruction:
Which constructor is from ITA with a rank less than 13?
### Response:
| SELECT "Constructor" FROM table_53365 WHERE "Country" = 'ita' AND "Rank" < '13' |
### Instruction:
what other types of brakes are listed on this chart besides vacuum ?
### Response:
| SELECT DISTINCT ("brakes") FROM table_204_131 WHERE "brakes" <> 'vacuum' |
### Instruction:
When the game was played at Mile High Stadium before week 9, what was the result?
### Response:
| SELECT result FROM table_name_87 WHERE week < 9 AND game_site = "mile high stadium" |
### Instruction:
What is 2000, when Tournament is 'Canada Masters'?
### Response:
| SELECT "2000" FROM table_44361 WHERE "Tournament" = 'canada masters' |
### Instruction:
What is the total number of areas that are called Nanqiao District?
### Response:
| SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = "Nanqiao District" |
### Instruction:
how many tournaments has he won by 3 or more strokes ?
### Response:
| SELECT COUNT("tournament") FROM table_203_151 WHERE "margin of\nvictory" >= 3 |
### Instruction:
Which Rank that is on september 9, 2004?
### Response:
| SELECT "Rank" FROM table_13872 WHERE "Date" = 'september 9, 2004' |
### Instruction:
Bar chart x axis all games y axis acc_percent, and could you show in desc by the X-axis?
### Response:
| SELECT All_Games, ACC_Percent FROM basketball_match ORDER BY All_Games DESC |
### Instruction:
Which time/retired has a qual of 144.02?
### Response:
| SELECT "Time/Retired" FROM table_58505 WHERE "Qual" = '144.02' |
### Instruction:
What is the date of entry for the UK Albums Top 75 chart?
### Response:
| SELECT date_of_entry FROM table_1160304_2 WHERE chart = "UK Albums Top 75" |
### Instruction:
Who had third place when the champions is ban k ostrava (1)?
### Response:
| SELECT third_place FROM table_2429942_2 WHERE champions = "Baník Ostrava (1)" |
### Instruction:
What is the local name for January 7, 2013?
### Response:
| SELECT "Local Name" FROM table_62525 WHERE "2013 Date" = 'january 7' |
### Instruction:
What is the airdate when the director is george spenton-foster
### Response:
| SELECT airdate FROM table_15739098_1 WHERE director = "George Spenton-Foster" |
### Instruction:
what is age and religion of subject id 29961?
### Response:
| SELECT demographic.age, demographic.religion FROM demographic WHERE demographic.subject_id = "29961" |
### Instruction:
Find the zip code in which the average mean visibility is lower than 10.
### Response:
| SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_visibility_miles) < 10 |
### Instruction:
Answers beginning with a keyword.
### Response:
| SELECT Id AS "post_link", Body FROM Posts WHERE PostTypeId = 2 AND Body LIKE '<p>##keyword##%' ORDER BY LENGTH(Body) |
### Instruction:
What is the highest capacity that has stadio marcello torre as the stadium?
### Response:
| SELECT MAX(capacity) FROM table_name_80 WHERE stadium = "stadio marcello torre" |
### Instruction:
What Score has an Opponent of nina bratchikova?
### Response:
| SELECT "Score" FROM table_61015 WHERE "Opponent" = 'nina bratchikova' |
### Instruction:
How many Points have an Against smaller than 43, and a Position smaller than 1?
### Response:
| SELECT SUM(points) FROM table_name_49 WHERE against < 43 AND position < 1 |
### Instruction:
What is the fewest number of top-5s for events with more than 1 win?
### Response:
| SELECT MIN("Top-5") FROM table_40942 WHERE "Wins" > '1' |
### Instruction:
What is the date Listed of the Bridge Built CA.1876?
### Response:
| SELECT "Listed" FROM table_49983 WHERE "Built" = 'ca.1876' |
### Instruction:
Which LE-5 Model has an LE-5A of 130?
### Response:
| SELECT "LE-5 Model" FROM table_42415 WHERE "LE-5A" = '130' |
### Instruction:
Who was in the South in the 2004-05 season?
### Response:
| SELECT "South" FROM table_45931 WHERE "Season" = '2004-05' |
### Instruction:
What was the production code of the episode written by Anthony Sparks?
### Response:
| SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks" |
### Instruction:
What type of surface did Thomaz Bellucci play against tommy robredo?
### Response:
| SELECT "Surface" FROM table_48015 WHERE "Opponent" = 'tommy robredo' |
### Instruction:
Select Post History by List of Ids.
### Response:
| SELECT Id, PostHistoryTypeId, CreationDate, UserId FROM PostHistory WHERE PostId IN ('##IdPostList##') ORDER BY PostId, CreationDate |
### Instruction:
How many air dates where directed by jim donovan?
### Response:
| SELECT COUNT(us_air_date) FROM table_18424435_5 WHERE directed_by = "Jim Donovan" |
### Instruction:
What is the verb for the Proto-Polynesian word *mohe?
### Response:
| SELECT "Verb" FROM table_40805 WHERE "Proto-Polynesian" = '*mohe' |
### Instruction:
What was the total number of first down on October 23?
### Response:
| SELECT COUNT(first_downs) FROM table_15847691_2 WHERE date = "October 23" |
### Instruction:
What is every original language for book series Little House on the Prairie?
### Response:
| SELECT original_language FROM table_2512935_8 WHERE book_series = "Little House on the Prairie" |
### Instruction:
Which team had 64 laps and 13 points?
### Response:
| SELECT "Team" FROM table_37670 WHERE "Laps" = '64' AND "Points" = '13' |
### Instruction:
On which Surface will Estrella Cabeza Candela play?
### Response:
| SELECT "Surface" FROM table_43851 WHERE "Opponent" = 'estrella cabeza candela' |
### Instruction:
How long is the XXX track used by the Minnesota Vikings?
### Response:
| SELECT time FROM table_name_14 WHERE team_s_ = "minnesota vikings" AND artist_s_ = "xxx" |
### Instruction:
What club was in Netherlands and had 22 goals?
### Response:
| SELECT "Club" FROM table_58840 WHERE "Country" = 'netherlands' AND "Goals" = '22' |
### Instruction:
Which Channel has an Aspect of 4:3 and a Programming of me-tv?
### Response:
| SELECT channel FROM table_name_10 WHERE aspect = "4:3" AND programming = "me-tv" |
### Instruction:
What was segment C when segment D was fluorescent tubes?
### Response:
| SELECT segment_c FROM table_15187735_1 WHERE segment_d = "Fluorescent Tubes" |
### Instruction:
how many times was the qualifying score 60.750?
### Response:
| SELECT COUNT("Event") FROM table_17991 WHERE "Qualifying Score" = '60.750' |
### Instruction:
What was the time for the bout against Amanda Lavoy, which went under 3 rounds?
### Response:
| SELECT time FROM table_name_71 WHERE round < 3 AND opponent = "amanda lavoy" |
### Instruction:
Which tournament had a 2008 result of 1R?
### Response:
| SELECT tournament FROM table_name_85 WHERE 2006 = "a" AND 2008 = "1r" |
### Instruction:
What is the score of the game that 33,531 people went too?
### Response:
| SELECT "Score" FROM table_38783 WHERE "Attendance" = '33,531' |
### Instruction:
How many Malaysia Cups have 0 for the total with a league greater than 0?
### Response:
| SELECT COUNT(malaysia_cup) FROM table_name_2 WHERE total = 0 AND league > 0 |
### Instruction:
What is the lowest score that Bob Tway get when he placed t5?
### Response:
| SELECT MIN(score) FROM table_name_70 WHERE place = "t5" AND player = "bob tway" |
### Instruction:
In what Place was the Silver won by vladimir vesselov ( urs )?
### Response:
| SELECT "Place" FROM table_59276 WHERE "Silver" = 'vladimir vesselov ( urs )' |
### Instruction:
What is the home team score of the Ghantoot Racing and Polo Club Ground?
### Response:
| SELECT home_team AS score FROM table_name_25 WHERE ground = "ghantoot racing and polo club" |
### Instruction:
what are all the playoffs for regular season is 1st, atlantic division
### Response:
| SELECT "Playoffs" FROM table_72099 WHERE "Regular Season" = '1st, Atlantic Division' |
### Instruction:
How many players named victor h nescu played?
### Response:
| SELECT COUNT(points) AS won FROM table_24431264_16 WHERE player = "Victor Hănescu" |
### Instruction:
Name the administrative division for 95391
### Response:
| SELECT "Administrative division" FROM table_19779 WHERE "Population (2010 Census)" = '95391' |
### Instruction:
What was the date of the game when the Devils had a record of 21 14 3?
### Response:
| SELECT date FROM table_name_49 WHERE record = "21–14–3" |
### Instruction:
How many positions are there for RB1 Motorsports?
### Response:
| SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = "RB1 Motorsports" |
### Instruction:
What is the record of the game with 18,084 in attendance?
### Response:
| SELECT "Record" FROM table_55897 WHERE "Attendance" = '18,084' |
### Instruction:
What's the whole range of united states where road race is ottawa marathon
### Response:
| SELECT COUNT("Country") FROM table_28345 WHERE "Road race" = 'Ottawa Marathon' |
### Instruction:
what is the wins when the f/laps is test driver and team is lotus racing?
### Response:
| SELECT wins FROM table_name_20 WHERE f_laps = "test driver" AND team = "lotus racing" |
### Instruction:
Tell me the name for first elected more than 1988 and district of mason
### Response:
| SELECT name FROM table_name_4 WHERE first_elected > 1988 AND district = "mason" |
### Instruction:
Who was the association that Daniel Mananta belonged to after 2011?
### Response:
| SELECT association FROM table_name_54 WHERE nominee = "daniel mananta" AND year > 2011 |
### Instruction:
What is the total number of Game, when Record is '11-17-7'?
### Response:
| SELECT COUNT(game) FROM table_name_34 WHERE record = "11-17-7" |
### Instruction:
which interferometer has the highest maximum baseline ?
### Response:
| SELECT "interferometer and observing mode" FROM table_203_279 ORDER BY "maximum baseline (m)" DESC LIMIT 1 |
### Instruction:
What is the location of the team who's captain is Miodrag D udovi ?
### Response:
| SELECT "Location" FROM table_2224 WHERE "Team Captain" = 'Miodrag Džudović' |
### Instruction:
how many times has psychiatry consultation - suicide precautions been ordered?
### Response:
| SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'psychiatry consultation - suicide precautions' |
### Instruction:
what was the most marathons that pavel loskutov ran in any year ?
### Response:
| SELECT COUNT(*) FROM table_203_270 GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
How many semifinals did ferhat pehlivan attend?
### Response:
| SELECT COUNT(semifinals) FROM table_27294107_11 WHERE athlete = "Ferhat Pehlivan" |
### Instruction:
how many total wins did the team have in 1948
### Response:
| SELECT COUNT(*) FROM table_204_795 WHERE "result" = 'win' AND "date" = 1948 |
### Instruction:
What was the episode number that had 797000 viewers?
### Response:
| SELECT no FROM table_25737761_3 WHERE viewing_figure = 797000 |
### Instruction:
Which name has more than 14 points with less than 1 draw?
### Response:
| SELECT "Name" FROM table_8893 WHERE "Points" > '14' AND "Drawn" < '1' |
### Instruction:
What is the 2012 of the hamburg masters?
### Response:
| SELECT "2012" FROM table_61447 WHERE "Tournament" = 'hamburg masters' |
### Instruction:
What studio did Paul Greengrass direct in 2007?
### Response:
| SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul greengrass" |
### Instruction:
immune disorder ( such as hiv / aids )
### Response:
| SELECT * FROM table_train_259 WHERE immune_deficiency_disorder = 1 OR hiv_infection = 1 |
### Instruction:
what is the home team when the away team is frickley colliery?
### Response:
| SELECT "Home team" FROM table_49267 WHERE "Away team" = 'frickley colliery' |
### Instruction:
List the titles of episodes written by Anne Cofell Saunders.
### Response:
| SELECT title FROM table_26464364_1 WHERE written_by = "Anne Cofell Saunders" |
### Instruction:
how many division southwest was there when division east was babi
### Response:
| SELECT COUNT(division_southwest) FROM table_17881033_1 WHERE division_east = "Babi" |
### Instruction:
What is the highest total medals winter athlete Clara Hughes has?
### Response:
| SELECT MAX(total) FROM table_name_41 WHERE type = "winter" AND athlete = "clara hughes" |
### Instruction:
what is language and death status of subject id 3623?
### Response:
| SELECT demographic.language, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "3623" |
### Instruction:
What is the height in inches of contestants who are from the province of La Rioja?
### Response:
| SELECT height__in_ FROM table_23476629_2 WHERE province = "La Rioja" |
### Instruction:
what is date of birth and gender of subject id 87275?
### Response:
| SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.subject_id = "87275" |
### Instruction:
Who directed the episode with the production code of 6AKY11?
### Response:
| SELECT directed_by FROM table_28027307_1 WHERE production_code = "6AKY11" |
### Instruction:
what is marital status and gender of subject name kenneth koeller?
### Response:
| SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Kenneth Koeller" |
### Instruction:
hemoglobin levels > 10.6 mmol / l;
### Response:
| SELECT * FROM table_test_12 WHERE hemoglobin_a1c_hba1c > 10.6 |
### Instruction:
Find the total population of the districts where the area is bigger than the average city area.
### Response:
| SELECT SUM(city_population) FROM district WHERE city_area > (SELECT AVG(city_area) FROM district) |
### Instruction:
What is the ISBN of the book with a first edition in May 2011?
### Response:
| SELECT "ISBN" FROM table_58123 WHERE "First edition" = 'may 2011' |
### Instruction:
Name the number one singles for week 1 being 5
### Response:
| SELECT number_one_single_s_ FROM table_27441210_20 WHERE weeks_at__number1 = 5 |
### Instruction:
Return a line chart about the change of monthly_rental over date_address_from .
### Response:
| SELECT date_address_from, monthly_rental FROM Student_Addresses ORDER BY monthly_rental DESC |
### Instruction:
how many temples are in takamatsu ?
### Response:
| SELECT COUNT("temple") FROM table_204_841 WHERE "city/town/village" = 'takamatsu' |
### Instruction:
What was the largest founded year for schools having enrollment of exactly 696?
### Response:
| SELECT MAX("Founded") FROM table_23911 WHERE "Enrollment" = '696' |
### Instruction:
How many professors who has a either Ph.D. or MA degree?
### Response:
| SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' |
### Instruction:
Which Coach has a Most Improved of rory thompson?
### Response:
| SELECT "Coach" FROM table_44907 WHERE "Most Improved" = 'rory thompson' |
### Instruction:
What is the lowest Poles with a Season that is larger than 2009?
### Response:
| SELECT MIN("Poles") FROM table_5415 WHERE "Season" > '2009' |
### Instruction:
How many odd of winning have 6th as the division?
### Response:
| SELECT odds_of_winning__1in_ FROM table_20195922_3 WHERE divisions = "6th" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.