instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the highest urban population for Guangxi province?
### Response:
| SELECT MAX("Urban Population (2010)") FROM table_8969 WHERE "Province" = 'guangxi' |
### Instruction:
how many district with incumbent being lindy boggs
### Response:
| SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs" |
### Instruction:
how many games had at least 40,000 spectators in attendance ?
### Response:
| SELECT COUNT(*) FROM table_203_673 WHERE "attendance" >= 40000 |
### Instruction:
What episode had the last appearances of the late wife of mac taylor?
### Response:
| SELECT last_appearance FROM table_11240028_3 WHERE relationship = "Late wife of Mac Taylor" |
### Instruction:
Name the total number of ERP W when the call sign is w217bf
### Response:
| SELECT COUNT(erp_w) FROM table_name_8 WHERE call_sign = "w217bf" |
### Instruction:
what is the number of pieces where the person is charley hoffman
### Response:
| SELECT COUNT(reset_points) FROM table_28498999_6 WHERE player = "Charley Hoffman" |
### Instruction:
Show the Thai name of wan phruehatsabodi?
### Response:
| SELECT "Thai name" FROM table_61947 WHERE "Transcription" = 'wan phruehatsabodi' |
### Instruction:
Name the number of ratings for bruce forsyth
### Response:
| SELECT COUNT(ratings) FROM table_29135051_2 WHERE guest_s_ = "Bruce Forsyth" |
### Instruction:
Show all the locations with at least two cinemas with capacity above 300.
### Response:
| SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) >= 2 |
### Instruction:
How many members did Europe have the year that America had 403892?
### Response:
| SELECT europe FROM table_1914090_2 WHERE america = 403892 |
### Instruction:
Get all Users who have posted answers for a certain tag.
### Response:
| SELECT DISTINCT OwnerUserId FROM Posts WHERE ParentId IN (SELECT PostId FROM PostTags WHERE TagId = '5990') |
### Instruction:
When was there a result of 8-1 and a score of 8-1?
### Response:
| SELECT date FROM table_name_92 WHERE result = "8-1" AND score = "8-1" |
### Instruction:
Which surface has an Opponent of fernando verdasco?
### Response:
| SELECT "Surface" FROM table_55036 WHERE "Opponent" = 'fernando verdasco' |
### Instruction:
When John Senden was the runner-up, what was the To Par?
### Response:
| SELECT "To par" FROM table_15462 WHERE "Runner(s)-up" = 'john senden' |
### Instruction:
Who got the loss for the game ending in a record of 55-41?
### Response:
| SELECT "Loss" FROM table_70541 WHERE "Record" = '55-41' |
### Instruction:
how many points did the nuggets win by on april 9 ?
### Response:
| SELECT "score" - "score" FROM table_204_833 WHERE "date" = 'april 9' |
### Instruction:
What was the score of the match where paris sg (d1) was team 1?
### Response:
| SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)" |
### Instruction:
What was the score on April 6, 2008?
### Response:
| SELECT "Score" FROM table_36599 WHERE "Date" = 'april 6, 2008' |
### Instruction:
Who wrote the episode with production code 1AJN05?
### Response:
| SELECT "Written by" FROM table_25763 WHERE "Production code" = '1AJN05' |
### Instruction:
Specify the age and primary disease of patient id 2560
### Response:
| SELECT demographic.age, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" |
### Instruction:
What Valley Vista has a Willow Canyon of 2169?
### Response:
| SELECT valley_vista FROM table_name_47 WHERE willow_canyon = "2169" |
### Instruction:
Which Gold has a Rank of 15, and a Total smaller than 2?
### Response:
| SELECT AVG(gold) FROM table_name_99 WHERE rank = "15" AND total < 2 |
### Instruction:
What episode number is the episode with a segment on thinning shears?
### Response:
| SELECT MIN("Episode") FROM table_19908 WHERE "Segment A" = 'Thinning Shears' |
### Instruction:
In the Indianapolis Sweepstakes race session, what is the championship?
### Response:
| SELECT championship FROM table_name_72 WHERE session = "race" AND event = "indianapolis sweepstakes" |
### Instruction:
When was the match with a result of sa by 10 wkts?
### Response:
| SELECT "Date" FROM table_70520 WHERE "Result" = 'sa by 10 wkts' |
### Instruction:
What is the fewest gold medals when the bronze medals is greater than 5?
### Response:
| SELECT MIN("Gold") FROM table_63731 WHERE "Bronze" > '5' |
### Instruction:
Return the total revenue of companies with headquarters in Tokyo or Taiwan.
### Response:
| SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Taiwan' |
### Instruction:
Name all the team clasification where the combination classification is mederic clain
### Response:
| SELECT "Team classification" FROM table_19855 WHERE "Combination classification" = 'Mederic Clain' |
### Instruction:
Can undergraduates do 285 ?
### Response:
| SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 285 |
### Instruction:
How many runs allowed did the team ranked 2 with more than 2 losses have?
### Response:
| SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2 |
### Instruction:
What is the least apparent magnitude for all constellations from hydra?
### Response:
| SELECT MIN(apparent_magnitude) FROM table_name_31 WHERE constellation = "hydra" |
### Instruction:
how long was joseph lyons in office ?
### Response:
| SELECT "total time in\noffice" FROM table_204_812 WHERE "prime minister" = 'joseph lyons' |
### Instruction:
What is the Season Outcome, when the School is Sussex Tech?
### Response:
| SELECT "Season Outcome" FROM table_70862 WHERE "School" = 'sussex tech' |
### Instruction:
For the player fero lasagavibau who has the lowest start?
### Response:
| SELECT MIN("Start") FROM table_32916 WHERE "Player" = 'fero lasagavibau' |
### Instruction:
What is GTO Winning Team Mike Keyser's RND number?
### Response:
| SELECT "Rnd" FROM table_18904 WHERE "GTO Winning Team" = 'Mike Keyser' |
### Instruction:
What current club does the player born in 1984 play for?
### Response:
| SELECT current_club FROM table_12962773_12 WHERE year_born = 1984 |
### Instruction:
Segment B of aerospace fuel lines is what netflix episode?
### Response:
| SELECT "Netflix" FROM table_75008 WHERE "Segment B" = 'aerospace fuel lines' |
### Instruction:
Tell me the 2012 when 2005 is 314
### Response:
| SELECT 2012 FROM table_name_82 WHERE 2005 = "314" |
### Instruction:
What does the inactive state for University of Texas, El Paso?
### Response:
| SELECT "Inactive" FROM table_73339 WHERE "Institution" = 'University of Texas, El Paso' |
### Instruction:
What was the score of the game when the attendance was 1,644?
### Response:
| SELECT "Score" FROM table_70580 WHERE "Attendance" = '1,644' |
### Instruction:
Which one of the songs was originally performed by Rickie Lee Jones?
### Response:
| SELECT song_choice FROM table_12310814_1 WHERE original_artist = "Rickie Lee Jones" |
### Instruction:
Compare the distribution of the players' gender using a bar chart, and rank in descending by the bar please.
### Response:
| SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY Gender DESC |
### Instruction:
Who had a points average with 0 extra points and 0 field goals?
### Response:
| SELECT AVG(points) FROM table_name_33 WHERE extra_points = 0 AND field_goals > 0 |
### Instruction:
What is the average round of the rw position player from the United States?
### Response:
| SELECT AVG(round) FROM table_name_18 WHERE nationality = "united states" AND position = "rw" |
### Instruction:
What is the record for the Detroit Pistons on March 7?
### Response:
| SELECT record FROM table_name_82 WHERE opponent = "detroit pistons" AND date = "march 7" |
### Instruction:
How many centerfold models were there when the cover model was Torrie Wilson?
### Response:
| SELECT COUNT("Centerfold model") FROM table_20228 WHERE "Cover model" = 'Torrie Wilson' |
### Instruction:
Which player was a running back from San Jose State?
### Response:
| SELECT "Player" FROM table_76745 WHERE "Position" = 'running back' AND "College" = 'san jose state' |
### Instruction:
What is the Launched which is on 3 may 2001?
### Response:
| SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001" |
### Instruction:
How many laps did the driver with the yamaha manufacturer go on grid 3?
### Response:
| SELECT laps FROM table_name_61 WHERE manufacturer = "yamaha" AND grid = 3 |
### Instruction:
Name the language for villa 1167
### Response:
| SELECT "Language" FROM table_27390 WHERE "Villa Alcal\u00e1 Municipality" = '1167' |
### Instruction:
What is the withdraw date for secr no. 771?
### Response:
| SELECT date_withdrawn FROM table_17607663_1 WHERE secr_no = 771 |
### Instruction:
Tell me the venue for extra of short race and year less than 1999
### Response:
| SELECT venue FROM table_name_90 WHERE extra = "short race" AND year < 1999 |
### Instruction:
what is the maximum aircraft movements with airport being liverpool
### Response:
| SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = "Liverpool" |
### Instruction:
How many points did the opponent score on Sept. 14?
### Response:
| SELECT MAX("Opponents") FROM table_20948 WHERE "Date" = 'Sept. 14' |
### Instruction:
what is the date of birth and language of subject id 2560?
### Response:
| SELECT demographic.dob, demographic.language FROM demographic WHERE demographic.subject_id = "2560" |
### Instruction:
who is the only player whose last team was chemosvit svit ?
### Response:
| SELECT "name" FROM table_204_847 WHERE "last team" = 'chemosvit svit' |
### Instruction:
How many points were scored when the Chassis is BRM p25?
### Response:
| SELECT "Pts." FROM table_80267 WHERE "Chassis" = 'brm p25' |
### Instruction:
What is the party for the incumbent Wyche Fowler?
### Response:
| SELECT "Party" FROM table_18279 WHERE "Incumbent" = 'Wyche Fowler' |
### Instruction:
WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO?
### Response:
| SELECT "2nd leg" FROM table_9351 WHERE "Team 2" = 'haro' |
### Instruction:
How many ends were won where the blank ends are smaller than 3.0?
### Response:
| SELECT Ends AS won FROM table_25718552_2 WHERE blank_ends < 3.0 |
### Instruction:
Who was the director when the writer(s) was John W. Bloch?
### Response:
| SELECT "Director" FROM table_24171 WHERE "Writer(s)" = 'John W. Bloch' |
### Instruction:
Name the most points against when points for is 860
### Response:
| SELECT MAX(pts_agst) FROM table_13018116_1 WHERE pts_for = 860 |
### Instruction:
Who played mens doubles for the 1999 kobe tour?
### Response:
| SELECT "Mens Doubles" FROM table_30312 WHERE "Year Location" = '1999 Kobe' |
### Instruction:
Return a line on what are all the calendar dates and day Numbers?, and rank in descending by the X-axis.
### Response:
| SELECT Calendar_Date, Day_Number FROM Ref_Calendar ORDER BY Calendar_Date DESC |
### Instruction:
Who got the pole position if the supporting is USAC National Midget Series?
### Response:
| SELECT pole_position FROM table_25459168_2 WHERE supporting = "USAC National Midget Series" |
### Instruction:
What was the Winning Score on May 29, 1977?
### Response:
| SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977" |
### Instruction:
what is age and gender of subject name cynthia gomez?
### Response:
| SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.name = "Cynthia Gomez" |
### Instruction:
Visualize the relationship between School_ID and ACC_Percent , and group by attribute All_Neutral.
### Response:
| SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY All_Neutral |
### Instruction:
WHAT IS THE GERMAN NAME OF LIBERALISM?
### Response:
| SELECT "Name (German)" FROM table_49042 WHERE "Ideology" = 'liberalism' |
### Instruction:
Which Date has a Rockets score of 94, and a Game of 66?
### Response:
| SELECT date FROM table_name_21 WHERE rockets_score = 94 AND game = 66 |
### Instruction:
What is the minimum capacity of Dundee United's stadium?
### Response:
| SELECT MIN(capacity) FROM table_11208143_9 WHERE team = "Dundee United" |
### Instruction:
count the number of patients whose days of hospital stay is greater than 2?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "2" |
### Instruction:
List each test result and its count in descending order of count. Visualize by bar chart.
### Response:
| SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC |
### Instruction:
Name the number for margin of victory being 3 strokes
### Response:
| SELECT COUNT(no) FROM table_21469545_2 WHERE margin_of_victory = "3 strokes" |
### Instruction:
Name the Losing BP with 22 played and 9 Try BP.
### Response:
| SELECT losing_bp FROM table_name_72 WHERE played = "22" AND try_bp = "9" |
### Instruction:
What was the place and how many people attended the game on July 11?
### Response:
| SELECT "Location/Attendance" FROM table_22611 WHERE "Date" = 'July 11' |
### Instruction:
Which teams had the 1st position and entered 1 race?
### Response:
| SELECT "Team" FROM table_40246 WHERE "Races" = '1' AND "Position" = '1st' |
### Instruction:
What tournament what held in Cincinnati in 2009?
### Response:
| SELECT "2009" FROM table_15307 WHERE "Tournament" = 'cincinnati' |
### Instruction:
which opponent did kindley have the most victories against ?
### Response:
| SELECT "opponent" FROM table_202_233 GROUP BY "opponent" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
Name the average ERP W and call sign of w237br
### Response:
| SELECT AVG("ERP W") FROM table_75360 WHERE "Call sign" = 'w237br' |
### Instruction:
Which Free polite has a Genitive 3 of *ni-da?
### Response:
| SELECT "Free polite" FROM table_40796 WHERE "Genitive 3" = '*ni-da' |
### Instruction:
What time did the season finale air on May 20, 2003?
### Response:
| SELECT timeslot FROM table_name_43 WHERE finale = "may 20, 2003" |
### Instruction:
What was the total number of episodes that had a 3-1 vote?
### Response:
| SELECT COUNT(episode) FROM table_24122653_2 WHERE vote = "3-1" |
### Instruction:
Who is the authority for the coed Eastbourne school?
### Response:
| SELECT "Authority" FROM table_69166 WHERE "Area" = 'eastbourne' AND "Gender" = 'coed' |
### Instruction:
Paddy Wallace who plays the position of fly-half has how many Caps?
### Response:
| SELECT caps FROM table_name_97 WHERE position = "fly-half" AND player = "paddy wallace" |
### Instruction:
What is the lowest game number when the record was 26-24-9?
### Response:
| SELECT MIN(game) FROM table_name_58 WHERE record = "26-24-9" |
### Instruction:
What is Year is Walt Disney Pictures Imagemovers Digital?
### Response:
| SELECT SUM("Year") FROM table_13744 WHERE "Studio(s)" = 'walt disney pictures imagemovers digital' |
### Instruction:
How many series were directed by Rob Renzetti?
### Response:
| SELECT COUNT(no_in_series) FROM table_18734298_1 WHERE directed_by = "Rob Renzetti" |
### Instruction:
who wrote the most music for c.v. sridhars movies ?
### Response:
| SELECT "music" FROM table_203_204 GROUP BY "music" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
How many Spanish word is there for the Portuguese bem-vindo?
### Response:
| SELECT COUNT(spanish) FROM table_26614365_5 WHERE portuguese = "Bem-vindo" |
### Instruction:
What was the result when incumbent John R. Tyson was elected?
### Response:
| SELECT result FROM table_1342426_3 WHERE incumbent = "John R. Tyson" |
### Instruction:
which state other than goa had 3 candidates ?
### Response:
| SELECT "state" FROM table_203_562 WHERE "state" <> 'goa' AND "no. of candidates" = 3 |
### Instruction:
Give me the comparison about gender_mf over the middle_name by a bar chart.
### Response:
| SELECT middle_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name |
### Instruction:
How many patients were born before the year 2071?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2071" |
### Instruction:
What is the College of the WR Player from SWC Conf?
### Response:
| SELECT "College" FROM table_65742 WHERE "Conf." = 'swc' AND "Pos." = 'wr' |
### Instruction:
What competition had a final round in the finals and the final position winners?
### Response:
| SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals" |
### Instruction:
what is date of birth and primary disease of subject name david trammell?
### Response:
| SELECT demographic.dob, demographic.diagnosis FROM demographic WHERE demographic.name = "David Trammell" |
### Instruction:
Specify the code of the drug Doxazosin
### Response:
| SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Doxazosin" |
### Instruction:
what is subject name and insurance of subject id 2560?
### Response:
| SELECT demographic.name, demographic.insurance FROM demographic WHERE demographic.subject_id = "2560" |
### Instruction:
What is Date when Runner-up is Sof a Mul novich ( per )?
### Response:
| SELECT date FROM table_name_92 WHERE runner_up = "sofía mulánovich ( per )" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.