question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
Which tournament has an opponent in the final of nadia petrova and a score of 6–3, 4–6, 6–1?? | CREATE TABLE table_name_22 (tournament VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = "nadia petrova" AND score = "6–3, 4–6, 6–1" |
Baldwin Locomotive Works, also with works number 40864, is listed as what number? | CREATE TABLE table_name_2 (number VARCHAR, builder VARCHAR, works_number VARCHAR) | SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864 |
What is the highest rank Mount Elbert has? | CREATE TABLE table_name_12 (rank INTEGER, mountain_peak VARCHAR) | SELECT MAX(rank) FROM table_name_12 WHERE mountain_peak = "mount elbert" |
What was Lambert's song choice in the top 13? | CREATE TABLE table_21501511_1 (song_choice VARCHAR, week__number VARCHAR) | SELECT song_choice FROM table_21501511_1 WHERE week__number = "Top 13" |
Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood? | CREATE TABLE table_name_39 (place VARCHAR, player VARCHAR, country VARCHAR, money___$__ VARCHAR) | SELECT place FROM table_name_39 WHERE country = "united states" AND money___$__ > 0 AND player = "craig wood" |
What is the Birthplace, when the Name is Bob Mcvey? | CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR) | SELECT birthplace FROM table_name_76 WHERE name = "bob mcvey" |
Who was the winning team at the Homestead-Miami Speedway? | CREATE TABLE table_name_74 (winning_team VARCHAR, circuit VARCHAR) | SELECT winning_team FROM table_name_74 WHERE circuit = "homestead-miami speedway" |
List all themes from the top 9. | CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR) | SELECT theme FROM table_23871828_1 WHERE week__number = "Top 9" |
Which Opponent has a Record of 0-3? | CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_83 WHERE record = "0-3" |
What theme name has the original artist of Dolly Parton? | CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR) | SELECT theme FROM table_15796100_1 WHERE original_artist = "Dolly Parton" |
What is the total number of years that prof. aditya naraian purohit won? | CREATE TABLE table_name_76 (year VARCHAR, name VARCHAR) | SELECT COUNT(year) FROM table_name_76 WHERE name = "prof. aditya naraian purohit" |
Who are the Runner(s)-up with a Margin of 3 strokes? | CREATE TABLE table_name_49 (runner_s__up VARCHAR, margin VARCHAR) | SELECT runner_s__up FROM table_name_49 WHERE margin = "3 strokes" |
On buses ranging in numbr 401-484, what is the lowest width that one longer thna 25 feet can have? | CREATE TABLE table_name_36 (width__inches_ INTEGER, length__feet_ VARCHAR, numbers VARCHAR) | SELECT MIN(width__inches_) FROM table_name_36 WHERE length__feet_ > 25 AND numbers = "401-484" |
How many poles when British formula renault 2.0 series and f/laps 1? | CREATE TABLE table_22056184_1 (poles INTEGER, series VARCHAR, f_laps VARCHAR) | SELECT MIN(poles) FROM table_22056184_1 WHERE series = "British Formula Renault 2.0" AND f_laps = 1 |
Name the most game for december 22 | CREATE TABLE table_15872814_4 (game INTEGER, date VARCHAR) | SELECT MAX(game) FROM table_15872814_4 WHERE date = "December 22" |
what is the college for keenan robinson when overall is more than 102? | CREATE TABLE table_name_55 (college VARCHAR, overall VARCHAR, name VARCHAR) | SELECT college FROM table_name_55 WHERE overall > 102 AND name = "keenan robinson" |
how many times is the transfer window, summer and the name sinclair? | CREATE TABLE table_name_83 (apps VARCHAR, transfer_window VARCHAR, name VARCHAR) | SELECT COUNT(apps) FROM table_name_83 WHERE transfer_window = "summer" AND name = "sinclair" |
Which Champion has a Coeff of 1.000? | CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR) | SELECT champions FROM table_name_85 WHERE coeff = "1.000" |
Show order ids and the number of products in each order. | CREATE TABLE Order_items (order_id VARCHAR, product_id VARCHAR) | SELECT order_id, COUNT(DISTINCT product_id) FROM Order_items GROUP BY order_id |
What is every score for the opponent of Atlanta Thrashers? | CREATE TABLE table_23486853_8 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_23486853_8 WHERE opponent = "Atlanta Thrashers" |
What is the title track that is 3:50 and arranged by Tarek Akef? | CREATE TABLE table_name_59 (title VARCHAR, arranger VARCHAR, length VARCHAR) | SELECT title FROM table_name_59 WHERE arranger = "tarek akef" AND length = "3:50" |
What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill? | CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) | SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = "june 30, 2005" |
What is the average date of the game with the Detroit Red Wings as the opponent? | CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR) | SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings" |
What college has Chito Victolero? | CREATE TABLE table_name_38 (college VARCHAR, player VARCHAR) | SELECT college FROM table_name_38 WHERE player = "chito victolero" |
What tyre was used in Kyalami? | CREATE TABLE table_name_81 (tyre VARCHAR, circuit VARCHAR) | SELECT tyre FROM table_name_81 WHERE circuit = "kyalami" |
How many episodes have a premier date of july 24, 2006 | CREATE TABLE table_2140071_7 (external_link VARCHAR, premier_date VARCHAR) | SELECT COUNT(external_link) FROM table_2140071_7 WHERE premier_date = "July 24, 2006" |
What country has a total greater than 270, with sandy lyle as the player? | CREATE TABLE table_name_94 (country VARCHAR, total VARCHAR, player VARCHAR) | SELECT country FROM table_name_94 WHERE total > 270 AND player = "sandy lyle" |
On what day was Game 48 played? | CREATE TABLE table_name_39 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_39 WHERE game = 48 |
What pick number did the linebacker from the denver broncos get? | CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR, team VARCHAR) | SELECT pick FROM table_name_34 WHERE position = "linebacker" AND team = "denver broncos" |
In what tournament is there a result of 46-18? | CREATE TABLE table_name_28 (tournament VARCHAR, result VARCHAR) | SELECT tournament FROM table_name_28 WHERE result = "46-18" |
for the drumset name td-15k how many snare pads are | CREATE TABLE table_2889300_6 (snare_pad VARCHAR, drumset_name VARCHAR) | SELECT COUNT(snare_pad) FROM table_2889300_6 WHERE drumset_name = "TD-15K" |
What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn? | CREATE TABLE table_name_9 (lost INTEGER, drawn VARCHAR, against VARCHAR, points VARCHAR) | SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 18 |
Find the total savings balance of all accounts except the account with name ‘Brown’. | CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR) | SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown' |
In what stadium did a game result in a final scoreline reading 27-34? | CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR) | SELECT stadium FROM table_name_30 WHERE final_score = "27-34" |
What is the time where the record is 10-1? | CREATE TABLE table_name_66 (time VARCHAR, record VARCHAR) | SELECT time FROM table_name_66 WHERE record = "10-1" |
Who was the Leading Scorer in the Game with a Score of 96-87? | CREATE TABLE table_name_90 (Leading VARCHAR, score VARCHAR) | SELECT Leading AS scorer FROM table_name_90 WHERE score = "96-87" |
What is the team 1 with cementarnica as team 2? | CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_20 WHERE team_2 = "cementarnica" |
How many males speak Russian? | CREATE TABLE table_name_3 (males VARCHAR, language VARCHAR) | SELECT males FROM table_name_3 WHERE language = "russian" |
What was the GDP (in millions USD) of Indonesia in 2009? | CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ VARCHAR, country___territory VARCHAR) | SELECT COUNT(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Indonesia" |
During what week was the July 10 game played? | CREATE TABLE table_21796261_4 (week VARCHAR, date VARCHAR) | SELECT week FROM table_21796261_4 WHERE date = "July 10" |
What is the latest season number for a show with a production code of 816? | CREATE TABLE table_19422702_1 (no_in_season INTEGER, production_code VARCHAR) | SELECT MAX(no_in_season) FROM table_19422702_1 WHERE production_code = 816 |
What was the title for the Undercard of Stevenson/Bellew? | CREATE TABLE table_25840200_1 (titles VARCHAR, notes VARCHAR) | SELECT titles FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew" |
What is the Icelandic title for the Norweigan titled galgeblomsten? | CREATE TABLE table_name_28 (icelandic_title VARCHAR, norwegian_title VARCHAR) | SELECT icelandic_title FROM table_name_28 WHERE norwegian_title = "galgeblomsten" |
Which Nominee has an Award Ceremony of tony award, and a Category of the best performance by a leading actor in a musical? | CREATE TABLE table_name_73 (nominee VARCHAR, award_ceremony VARCHAR, category VARCHAR) | SELECT nominee FROM table_name_73 WHERE award_ceremony = "tony award" AND category = "best performance by a leading actor in a musical" |
What are the cyrillic and other names of the settlement whose population is 6591? | CREATE TABLE table_2562572_26 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR) | SELECT cyrillic_name_other_names FROM table_2562572_26 WHERE population__2011_ = 6591 |
What is the record with 23 points and a visitor of Chicago? | CREATE TABLE table_name_70 (record VARCHAR, points VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_70 WHERE points = 23 AND visitor = "chicago" |
What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13? | CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR) | SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13 |
What is the result for a year later than 2002? | CREATE TABLE table_name_1 (result VARCHAR, year INTEGER) | SELECT result FROM table_name_1 WHERE year > 2002 |
What is the total number of purchases for members with level 6? | CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR) | SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 |
Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds? | CREATE TABLE table_name_92 (driver VARCHAR, rounds VARCHAR, tyre VARCHAR, chassis VARCHAR) | SELECT driver FROM table_name_92 WHERE tyre = "d" AND chassis = "bt11" AND rounds = "8" |
What is the average goals for Essi Sainio? | CREATE TABLE table_name_54 (goals INTEGER, name VARCHAR) | SELECT AVG(goals) FROM table_name_54 WHERE name = "essi sainio" |
Who is the second member that was elected in 1555? | CREATE TABLE table_name_34 (elected VARCHAR) | SELECT 2 AS nd_member FROM table_name_34 WHERE elected = "1555" |
What series episode has deli meats under segment B? | CREATE TABLE table_name_98 (series_ep VARCHAR, segment_b VARCHAR) | SELECT series_ep FROM table_name_98 WHERE segment_b = "deli meats" |
Find all the songs that do not have a lead vocal. | CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR) | SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead" |
What is the number of the game when the opponent was the New York Islanders, and a February less than 24? | CREATE TABLE table_name_62 (game INTEGER, opponent VARCHAR, february VARCHAR) | SELECT SUM(game) FROM table_name_62 WHERE opponent = "new york islanders" AND february < 24 |
Which IATA is associated with China and an ICAO of ZSPD? | CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR) | SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd" |
What party was the winning one in the elections in the California 30 district? | CREATE TABLE table_1341663_6 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1341663_6 WHERE district = "California 30" |
When el cibao is the geographical region and the height is 1.80 who is the contestant? | CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR, geographical_regions VARCHAR) | SELECT contestant FROM table_18618707_1 WHERE height = "1.80" AND geographical_regions = "El Cibao" |
Which High rebounds has a Game smaller than 9, and a Opponent of detroit? | CREATE TABLE table_name_94 (high_rebounds VARCHAR, game VARCHAR, opponent VARCHAR) | SELECT high_rebounds FROM table_name_94 WHERE game < 9 AND opponent = "detroit" |
The Qual of 120.006 took place in what year? | CREATE TABLE table_name_62 (year VARCHAR, qual VARCHAR) | SELECT year FROM table_name_62 WHERE qual = "120.006" |
What day did they play cambridge united? | CREATE TABLE table_name_51 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_51 WHERE opponent = "cambridge united" |
Show the names and details of all the staff members. | CREATE TABLE Staff (Name VARCHAR, Other_Details VARCHAR) | SELECT Name, Other_Details FROM Staff |
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface? | CREATE TABLE table_name_41 (championship VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) | SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–2" |
What division was on HBO PPV? | CREATE TABLE table_25840200_1 (division VARCHAR, tv VARCHAR) | SELECT division FROM table_25840200_1 WHERE tv = "HBO PPV" |
Tell me the north america for september 18, 2009 | CREATE TABLE table_name_64 (north_america VARCHAR, europe VARCHAR) | SELECT north_america FROM table_name_64 WHERE europe = "september 18, 2009" |
What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford? | CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR) | SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford" |
What is the average when interview is 9.465 and evening gown is less than 9.454? | CREATE TABLE table_name_28 (average INTEGER, interview VARCHAR, evening_gown VARCHAR) | SELECT SUM(average) FROM table_name_28 WHERE interview = 9.465 AND evening_gown < 9.454 |
How many titles are there for the episode written by Tom Scharpling? | CREATE TABLE table_25716401_1 (title VARCHAR, written_by VARCHAR) | SELECT COUNT(title) FROM table_25716401_1 WHERE written_by = "Tom Scharpling" |
List all cartoon directed by "Ben Jones". | CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR) | SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" |
How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times? | CREATE TABLE table_name_76 (drawn INTEGER, lost VARCHAR, position VARCHAR, team VARCHAR) | SELECT SUM(drawn) FROM table_name_76 WHERE position < 12 AND team = "clitheroe" AND lost > 4 |
Which mean interview number had an average of more than 9.233, a swimsuit stat of more than 9.473, and an evening gown score of more than 9.671? | CREATE TABLE table_name_79 (interview INTEGER, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR) | SELECT AVG(interview) FROM table_name_79 WHERE average > 9.233 AND swimsuit = 9.473 AND evening_gown > 9.671 |
How may population figures are given for Settimo Torinese | CREATE TABLE table_1449176_1 (population VARCHAR, common_of VARCHAR) | SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese" |
How much did Jeff Burton win? | CREATE TABLE table_25146455_1 (winnings VARCHAR, driver VARCHAR) | SELECT winnings FROM table_25146455_1 WHERE driver = "Jeff Burton" |
What was the result of the game from 10 October 2009? | CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_47 WHERE date = "10 october 2009" |
What is the highest swimsuit score of the contestant with a higher than 9.55 interview score, and evening gown of 9.75, and an average higher than 9.67? | CREATE TABLE table_name_63 (swimsuit INTEGER, average VARCHAR, interview VARCHAR, evening_gown VARCHAR) | SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.67 |
What are the average spectators from the Group H Round? | CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR) | SELECT AVG(spectators) FROM table_name_60 WHERE round = "group h" |
Which Loera has a Source of surveyusa, and a Date of may 16–may 18, 2008? | CREATE TABLE table_name_47 (loera VARCHAR, source VARCHAR, date VARCHAR) | SELECT loera FROM table_name_47 WHERE source = "surveyusa" AND date = "may 16–may 18, 2008" |
Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7 | CREATE TABLE table_name_68 (wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR) | SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7 |
Who did they play at Atlanta-Fulton County Stadium? | CREATE TABLE table_name_20 (opponent VARCHAR, game_site VARCHAR) | SELECT opponent FROM table_name_20 WHERE game_site = "atlanta-fulton county stadium" |
What is the package/option for the calcio content? | CREATE TABLE table_name_53 (package_option VARCHAR, content VARCHAR) | SELECT package_option FROM table_name_53 WHERE content = "calcio" |
What circuit did Rupert Keegan win in round 8? | CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) | SELECT circuit FROM table_name_21 WHERE winning_driver = "rupert keegan" AND round = 8 |
What is the sum of wins for teams with against under 1067? | CREATE TABLE table_name_16 (wins INTEGER, against INTEGER) | SELECT SUM(wins) FROM table_name_16 WHERE against < 1067 |
which team #1 played again chalkida | CREATE TABLE table_21434618_1 (team__number1 VARCHAR, team__number2 VARCHAR) | SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida" |
Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26 | CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26 |
What are the names that had a finalist score of 2? | CREATE TABLE table_14286908_1 (school VARCHAR, finalists VARCHAR) | SELECT school FROM table_14286908_1 WHERE finalists = 2 |
What is the motive before 2007? | CREATE TABLE table_name_25 (motive VARCHAR, year INTEGER) | SELECT motive FROM table_name_25 WHERE year < 2007 |
For the location of quezon city , metro manila what is the athletic nickname? | CREATE TABLE table_22171978_1 (athletic_nickname VARCHAR, location VARCHAR) | SELECT athletic_nickname FROM table_22171978_1 WHERE location = "Quezon City , Metro Manila" |
Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani? | CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani" |
Name the nation for 8 june 1983 for marlies gohr | CREATE TABLE table_name_27 (nation VARCHAR, date VARCHAR, athlete VARCHAR) | SELECT nation FROM table_name_27 WHERE date = "8 june 1983" AND athlete = "marlies gohr" |
What country had a winner in 1907? | CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR) | SELECT country FROM table_name_55 WHERE year = 1907 |
What is the time when ss12 is stage? | CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR) | SELECT time FROM table_21578303_2 WHERE stage = "SS12" |
On what date was game 3 played? | CREATE TABLE table_name_44 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_44 WHERE game = 3 |
What were the points in the year when his Wins were 0, his Podiums were 0, and he drove in 4 races? | CREATE TABLE table_name_60 (points VARCHAR, races VARCHAR, wins VARCHAR, podiums VARCHAR) | SELECT points FROM table_name_60 WHERE wins = "0" AND podiums = "0" AND races = "4" |
How many degrees does the engineering department offer? | CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR) | SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' |
What day were credentials presented for vermont? | CREATE TABLE table_name_35 (credentials_presented VARCHAR, state VARCHAR) | SELECT credentials_presented FROM table_name_35 WHERE state = "vermont" |
Can you tell me the Overall Record that has the Away Team of miami? | CREATE TABLE table_name_46 (overall_record VARCHAR, away_team VARCHAR) | SELECT overall_record FROM table_name_46 WHERE away_team = "miami" |
Name the weekly rank for sunday, june 14, 2009 | CREATE TABLE table_name_43 (weekly_rank VARCHAR, airdate VARCHAR) | SELECT weekly_rank FROM table_name_43 WHERE airdate = "sunday, june 14, 2009" |
how many first elected with district being new york2 | CREATE TABLE table_1341549_33 (first_elected VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_1341549_33 WHERE district = "New York2" |
What is the average cost of procedures that physician John Wen was trained in? | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR) | SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" |
Who was the winner during the 2009 season? | CREATE TABLE table_name_42 (winner VARCHAR, season VARCHAR) | SELECT winner FROM table_name_42 WHERE season = 2009 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.