instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
what's the won with points against being 597
### Response:
|
SELECT won FROM table_13758945_3 WHERE points_against = "597"
|
### Instruction:
Name the number of regular judge when host is bernie chan
### Response:
|
SELECT COUNT("Regular Judge") FROM table_20451 WHERE "Host" = 'Bernie Chan'
|
### Instruction:
What's the report for the True Value 500?
### Response:
|
SELECT report FROM table_10527215_3 WHERE name = "True Value 500"
|
### Instruction:
who is the home team when the away team is ipswich town?
### Response:
|
SELECT "Home team" FROM table_14038 WHERE "Away team" = 'ipswich town'
|
### Instruction:
Who are all the motogp winners when the circuit was Catalunya?
### Response:
|
SELECT "MotoGP winner" FROM table_3642 WHERE "Circuit" = 'Catalunya'
|
### Instruction:
What was the Outcome of the match with a Score of w/o?
### Response:
|
SELECT "Outcome" FROM table_35165 WHERE "Score" = 'w/o'
|
### Instruction:
For part 2 *raid, what is listed for part 3?
### Response:
|
SELECT "Part 3" FROM table_21717 WHERE "Part 2" = '*raid'
|
### Instruction:
Bar graph to show the number of booking end date from different booking end date
### Response:
|
SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings
|
### Instruction:
what are the number of times the date of vacancy was in october ?
### Response:
|
SELECT COUNT(*) FROM table_203_156 WHERE "date of vacancy" = 10
|
### Instruction:
How many freedom indices does the country of Austria have?
### Response:
|
SELECT COUNT("2013 Press Freedom Index") FROM table_1416 WHERE "Country" = 'Austria'
|
### Instruction:
Who is the player of the match at canberra stadium?
### Response:
|
SELECT "Player" FROM table_12675 WHERE "Venue" = 'canberra stadium'
|
### Instruction:
Who was the producer for the film directed by 1997?
### Response:
|
SELECT "Producer" FROM table_40917 WHERE "Director" = '1997'
|
### Instruction:
What is the record of the game before week 5 and a bye game site?
### Response:
|
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye"
|
### Instruction:
If Democratic is 42.5%, what is the city?
### Response:
|
SELECT city FROM table_25200461_9 WHERE democratic = "42.5%"
|
### Instruction:
What Losing bonus has a Points against of 588?
### Response:
|
SELECT "Losing bonus" FROM table_72019 WHERE "Points against" = '588'
|
### Instruction:
What is the height of the player who is from Huntington, WV?
### Response:
|
SELECT height FROM table_name_93 WHERE hometown = "huntington, wv"
|
### Instruction:
Where did the games that had Wake Forest as Acc Team take place?
### Response:
|
SELECT location FROM table_29535057_4 WHERE acc_team = "Wake Forest"
|
### Instruction:
What is the name of the race in Cleveland, Ohio?
### Response:
|
SELECT "Race Name" FROM table_5911 WHERE "City/Location" = 'cleveland, ohio'
|
### Instruction:
What is the status of incumbent Charles Stenholm?
### Response:
|
SELECT status FROM table_1341568_44 WHERE incumbent = "Charles Stenholm"
|
### Instruction:
How many years does Team wal-mart / tide participate?
### Response:
|
SELECT COUNT("Year") FROM table_55385 WHERE "Team" = 'wal-mart / tide'
|
### Instruction:
Which Dist (f) has a Race of irish derby?
### Response:
|
SELECT "Dist (f)" FROM table_79627 WHERE "Race" = 'irish derby'
|
### Instruction:
How many years did Wilson Fittipaldi race?
### Response:
|
SELECT COUNT("Year") FROM table_67130 WHERE "Driver" = 'wilson fittipaldi'
|
### Instruction:
How many seasons was Dave Reid treasurer?
### Response:
|
SELECT COUNT(season) FROM table_16446652_1 WHERE treasurer = "Dave Reid"
|
### Instruction:
Give me a bar chart for the average of team id of each acc road
### Response:
|
SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road
|
### Instruction:
What is the English of chae soo-yeon?
### Response:
|
SELECT "English title" FROM table_54993 WHERE "Role" = 'chae soo-yeon'
|
### Instruction:
What was the incumbent for texas 19?
### Response:
|
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 19"
|
### Instruction:
which model was the first portable device ?
### Response:
|
SELECT "ibm model number" FROM table_203_136 WHERE "case" = 'portable' ORDER BY id LIMIT 1
|
### Instruction:
What was the word on episode number 673?
### Response:
|
SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673
|
### Instruction:
how many women were above the age of 45 when executed ?
### Response:
|
SELECT COUNT(*) FROM table_204_867 WHERE "age\n(at execution)" > 45
|
### Instruction:
Who had a transfer fee of released and played the position of DF?
### Response:
|
SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df"
|
### Instruction:
Name the incumbent for first elected 1956
### Response:
|
SELECT "Incumbent" FROM table_18463 WHERE "First elected" = '1956'
|
### Instruction:
What is player Alexis Bwenge's pick number?
### Response:
|
SELECT pick__number FROM table_10960039_1 WHERE player = "Alexis Bwenge"
|
### Instruction:
what's the record with result being w 21 7
### Response:
|
SELECT record FROM table_14951643_1 WHERE result = "W 21–7"
|
### Instruction:
Who is the player that has a round greater than 2 and a pick bigger than 83?
### Response:
|
SELECT player FROM table_name_5 WHERE round > 2 AND pick > 83
|
### Instruction:
Which province got a swimsuit score of 8.43
### Response:
|
SELECT province FROM table_15081939_4 WHERE swimsuit = "8.43"
|
### Instruction:
How long has the longest song spent in the top 10?
### Response:
|
SELECT MAX(weeks_in_top_10) FROM table_27813010_2
|
### Instruction:
Who ran in the election where Claude Fuller was the incumbent?
### Response:
|
SELECT candidates FROM table_1342338_5 WHERE incumbent = "Claude Fuller"
|
### Instruction:
how many seasons had combined tackles of 70 or more ?
### Response:
|
SELECT COUNT("year") FROM table_204_756 WHERE "combined tackles" >= 70
|
### Instruction:
count the maximum days of hospital stay for patients aged 64 and above .
### Response:
|
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.age >= "64"
|
### Instruction:
Question stats for a week.
### Response:
|
SELECT COUNT(CASE WHEN Score < 0 THEN 1 ELSE 0 END) FROM Posts WHERE CreationDate BETWEEN @start AND @end
|
### Instruction:
What is the date for US catalog CK 9942?
### Response:
|
SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942"
|
### Instruction:
What is moving from esp with transfer fee of youth system?
### Response:
|
SELECT moving_from FROM table_name_64 WHERE country = "esp" AND transfer_fee = "youth system"
|
### Instruction:
Which competition was on August 11, 1996?
### Response:
|
SELECT competition FROM table_name_42 WHERE date = "august 11, 1996"
|
### Instruction:
How did the manager replaced by Michael Oenning depart?
### Response:
|
SELECT manner_of_departure FROM table_name_56 WHERE replaced_by = "michael oenning"
|
### Instruction:
What regular season had a record of 16-12?
### Response:
|
SELECT "Reg. Season" FROM table_56559 WHERE "Record" = '16-12'
|
### Instruction:
How many viewers in the UK did episode 50 have?
### Response:
|
SELECT "UK Total viewers" FROM table_31528 WHERE "Episode no." = '50'
|
### Instruction:
Who is the incumbent in district Texas 15?
### Response:
|
SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15"
|
### Instruction:
Which Country has a To par smaller than 7, and a Place of 1?
### Response:
|
SELECT country FROM table_name_99 WHERE to_par < 7 AND place = "1"
|
### Instruction:
What was the aggregate for the match with a team 2 of Hafia FC?
### Response:
|
SELECT agg FROM table_name_98 WHERE team_2 = "hafia fc"
|
### Instruction:
For natives of St. Louis, Missouri, what was listed under education?
### Response:
|
SELECT education FROM table_name_47 WHERE hometown = "st. louis, missouri"
|
### Instruction:
Show me a bar chart comparing the total number of captains in each rank, rank in ascending by the Rank.
### Response:
|
SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY Rank
|
### Instruction:
Who was the player when the 180s was 15?
### Response:
|
SELECT "Player" FROM table_30077 WHERE "180s" = '15'
|
### Instruction:
When peninsula is the electorate what is the reason?
### Response:
|
SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula"
|
### Instruction:
What's the total number of Heat recorded for the british virgin islands?
### Response:
|
SELECT COUNT(heat) FROM table_name_5 WHERE country = "british virgin islands"
|
### Instruction:
total number of times kyal and kara were the winning couple
### Response:
|
SELECT COUNT(*) FROM table_204_269 WHERE "winning couple" = 'kyal and kara'
|
### Instruction:
tell me the time of patient 8421's hospital admission?
### Response:
|
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 8421
|
### Instruction:
tell me the number of gold medals the dominican republic won .
### Response:
|
SELECT "gold" FROM table_204_785 WHERE "nation" = 'dominican republic'
|
### Instruction:
What was the segment b for Netflix s01e21?
### Response:
|
SELECT segment_b FROM table_name_34 WHERE netflix = "s01e21"
|
### Instruction:
What is the name of the player from purcell, ok?
### Response:
|
SELECT name FROM table_26916717_1 WHERE home_town = "Purcell, OK"
|
### Instruction:
How many production codes were in series 39?
### Response:
|
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39
|
### Instruction:
What is the code nickname where Steve Mayne is the coach?
### Response:
|
SELECT "Nickname" FROM table_73052 WHERE "Coach" = 'Steve Mayne'
|
### Instruction:
What was the season record when the team played against Milwaukee?
### Response:
|
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"
|
### Instruction:
Which captain is managed by gianluca vialli?
### Response:
|
SELECT "Captain" FROM table_80118 WHERE "Manager" = 'gianluca vialli'
|
### Instruction:
When 2012 is the year what is the winning boat?
### Response:
|
SELECT "Winning Boat" FROM table_3103 WHERE "Year" = '2012'
|
### Instruction:
What languages are spoken when call sign XEJAM is used?
### Response:
|
SELECT languages FROM table_14670060_1 WHERE call_sign = "XEJAM"
|
### Instruction:
What was the total score when the guest judge gave a score of 10?
### Response:
|
SELECT "Total" FROM table_30499 WHERE "Guest Judge" = '10'
|
### Instruction:
How many final scores were there on the game at Amsterdam arena?
### Response:
|
SELECT COUNT("Final score") FROM table_3142 WHERE "Game site" = 'Amsterdam ArenA'
|
### Instruction:
Who won when Peter Fleming was a runner-up?
### Response:
|
SELECT "Champion" FROM table_12793 WHERE "Runner-up" = 'peter fleming'
|
### Instruction:
WHAT TAMIL HAS Kannada of budhavara?
### Response:
|
SELECT "Tamil" FROM table_47562 WHERE "Kannada" = 'budhavara'
|
### Instruction:
What was the attendance for the match where cambridge united was the home team?
### Response:
|
SELECT attendance FROM table_name_55 WHERE home_team = "cambridge united"
|
### Instruction:
Who was in the South when EV Bad W rishofen was in the West?
### Response:
|
SELECT south FROM table_name_10 WHERE west = "ev bad wörishofen"
|
### Instruction:
What is ICAO, when Airport is 'Sibulan Airport'?
### Response:
|
SELECT icao FROM table_name_90 WHERE airport = "sibulan airport"
|
### Instruction:
Which school has a decile of 8 and a roll of 705?
### Response:
|
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705
|
### Instruction:
What is the year of appearance for the Prince Albert Raiders?
### Response:
|
SELECT "Years of appearance" FROM table_21893 WHERE "Team" = 'Prince Albert Raiders'
|
### Instruction:
What year was the average attendance 80,388?
### Response:
|
SELECT AVG(year) FROM table_name_24 WHERE attendance = "80,388"
|
### Instruction:
which section did seymour halpern run in
### Response:
|
SELECT "District" FROM table_18412 WHERE "Incumbent" = 'Seymour Halpern'
|
### Instruction:
The 2002 African Cup of Nations was held on what date?
### Response:
|
SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"
|
### Instruction:
Who has a Height of head coach: tam s farag ?
### Response:
|
SELECT "Name" FROM table_12480 WHERE "Height" = 'head coach: tamás faragó'
|
### Instruction:
What is the total capacity for coach Trevor Gleeson?
### Response:
|
SELECT SUM("Capacity") FROM table_9984 WHERE "Coach" = 'trevor gleeson'
|
### Instruction:
where did glenn greenough come from
### Response:
|
SELECT college_junior_club_team FROM table_2850912_8 WHERE player = "Glenn Greenough"
|
### Instruction:
How many top 10s when he had under 1 top 5s?
### Response:
|
SELECT SUM(top_10) FROM table_name_61 WHERE top_5 < 1
|
### Instruction:
What is my average post length?.
### Response:
|
SELECT AVG(LENGTH(Body)) AS Length FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = '##UserId##'
|
### Instruction:
provide the age and death status of robert hyden.
### Response:
|
SELECT demographic.age, demographic.expire_flag FROM demographic WHERE demographic.name = "Robert Hyden"
|
### Instruction:
Name the year for donlavey racing bill davis racing
### Response:
|
SELECT "Year" FROM table_24630 WHERE "Team(s)" = 'Donlavey Racing Bill Davis Racing'
|
### Instruction:
What is the kit manufacturer that has billy bonds as the manager?
### Response:
|
SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds"
|
### Instruction:
What place had a score of 71-70=141?
### Response:
|
SELECT place FROM table_name_8 WHERE score = 71 - 70 = 141
|
### Instruction:
In 2009, how many were runner-up?
### Response:
|
SELECT COUNT("Runner-up") FROM table_22628 WHERE "Year" = '2009'
|
### Instruction:
give the average duration of hospital stay for asian patients.
### Response:
|
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.ethnicity = "ASIAN"
|
### Instruction:
what is the rank of adam gilchrist
### Response:
|
SELECT COUNT(rank) FROM table_19870086_24 WHERE player = "Adam Gilchrist"
|
### Instruction:
what is the original air date for julie warner?
### Response:
|
SELECT "Original air date" FROM table_28784 WHERE "Patient Portrayer" = 'Julie Warner'
|
### Instruction:
What was the title of Ashanti's 2003 rap song?
### Response:
|
SELECT title FROM table_name_83 WHERE year = 2003 AND genre = "rap"
|
### Instruction:
what are the names of the locomotives produced after 1900 ?
### Response:
|
SELECT "name" FROM table_203_223 WHERE "date" > 1900
|
### Instruction:
what is the production in 2010 with rank of 8?
### Response:
|
SELECT "2010" FROM table_67332 WHERE "Rank" = '8'
|
### Instruction:
What player has The United States as the country with 70 as the score?
### Response:
|
SELECT player FROM table_name_91 WHERE country = "united states" AND score = 70
|
### Instruction:
What is the name of the opponent that has a record of 66-69?
### Response:
|
SELECT opponent FROM table_name_46 WHERE record = "66-69"
|
### Instruction:
Who was the first person elected in North Carolina 8?
### Response:
|
SELECT first_elected FROM table_1341738_34 WHERE district = "North Carolina 8"
|
### Instruction:
Which Goals For has a Played larger than 34?
### Response:
|
SELECT MIN("Goals For") FROM table_78945 WHERE "Played" > '34'
|
### Instruction:
Who are all hosts when men's singles is Ma Wenge?
### Response:
|
SELECT "Host" FROM table_30406 WHERE "Mens Singles" = 'Ma Wenge'
|
### Instruction:
Which competition features the 1st round of Club Union Luxembourg?
### Response:
|
SELECT competition FROM table_name_58 WHERE round = "1st round" AND club = "union luxembourg"
|
### Instruction:
Loss of peavy (4 3) is what score?
### Response:
|
SELECT "Score" FROM table_35975 WHERE "Loss" = 'peavy (4–3)'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.