question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What was the result in 2007 when the 2011 was F and 2009 was W? | CREATE TABLE table_name_16 (Id VARCHAR) | SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w" |
What County has Dublin as the Opposition? | CREATE TABLE table_name_78 (county VARCHAR, opposition VARCHAR) | SELECT county FROM table_name_78 WHERE opposition = "dublin" |
What was the largest crowd for an away Carlton game? | CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_54 WHERE away_team = "carlton" |
How many touchdowns did the left guard took? | CREATE TABLE table_25711913_2 (touchdowns INTEGER, position VARCHAR) | SELECT MAX(touchdowns) FROM table_25711913_2 WHERE position = "Left guard" |
What is the chassis more recent than 1967? | CREATE TABLE table_name_90 (chassis VARCHAR, year INTEGER) | SELECT chassis FROM table_name_90 WHERE year > 1967 |
What 2009 has 345 as the 2007? | CREATE TABLE table_name_33 (Id VARCHAR) | SELECT 2009 FROM table_name_33 WHERE 2007 = "345" |
How many numbers belong to the player with 10 assists? | CREATE TABLE table_25401874_1 (number VARCHAR, assists VARCHAR) | SELECT COUNT(number) FROM table_25401874_1 WHERE assists = 10 |
Name the school that was founded in 1950 | CREATE TABLE table_1973648_1 (institution VARCHAR, founded VARCHAR) | SELECT institution FROM table_1973648_1 WHERE founded = 1950 |
Which Bronze has a Silver of 2, and a Total smaller than 5? | CREATE TABLE table_name_15 (bronze INTEGER, silver VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_15 WHERE silver = 2 AND total < 5 |
What is the vault score for the total of 56.635? | CREATE TABLE table_11542215_3 (vault VARCHAR, total VARCHAR) | SELECT vault FROM table_11542215_3 WHERE total = "56.635" |
Tell me the years competed for panthers | CREATE TABLE table_name_97 (years_competed VARCHAR, nickname VARCHAR) | SELECT years_competed FROM table_name_97 WHERE nickname = "panthers" |
When johannesburg is the hometown who is the contestant? | CREATE TABLE table_18626383_2 (contestant VARCHAR, hometown VARCHAR) | SELECT contestant FROM table_18626383_2 WHERE hometown = "Johannesburg" |
Who had a rank under 17 with a total of 119? | CREATE TABLE table_name_30 (athlete VARCHAR, rank VARCHAR, total VARCHAR) | SELECT athlete FROM table_name_30 WHERE rank < 17 AND total = "119" |
How many total rounds did Damon Hill come in First Place? | CREATE TABLE table_1137694_3 (round VARCHAR, winning_driver VARCHAR) | SELECT COUNT(round) FROM table_1137694_3 WHERE winning_driver = "Damon Hill" |
What was Stockholm's score when Malmo scored 2? | CREATE TABLE table_name_54 (stockholm VARCHAR, malmö VARCHAR) | SELECT stockholm FROM table_name_54 WHERE malmö = "2" |
what is the outcome when the tournament is san diego and the opponent is ann grossman? | CREATE TABLE table_name_40 (outcome VARCHAR, tournament VARCHAR, opponent VARCHAR) | SELECT outcome FROM table_name_40 WHERE tournament = "san diego" AND opponent = "ann grossman" |
How many values for high assists when the game is 81? | CREATE TABLE table_23248869_10 (high_assists VARCHAR, game VARCHAR) | SELECT COUNT(high_assists) FROM table_23248869_10 WHERE game = 81 |
Attendance larger than 55,189 is which average game? | CREATE TABLE table_name_25 (game INTEGER, attendance INTEGER) | SELECT AVG(game) FROM table_name_25 WHERE attendance > 55 OFFSET 189 |
What is the model number with a release price of $303, and a sSpec number of sr14q(c0)? | CREATE TABLE table_name_2 (model_number VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR) | SELECT model_number FROM table_name_2 WHERE release_price___usd__ = "$303" AND sspec_number = "sr14q(c0)" |
What type of school has the nickname the Oilers? | CREATE TABLE table_262560_2 (type VARCHAR, nickname VARCHAR) | SELECT type FROM table_262560_2 WHERE nickname = "Oilers" |
what is the written by and production code is 3wab03? | CREATE TABLE table_20726262_4 (writtenby VARCHAR, production_code VARCHAR) | SELECT writtenby FROM table_20726262_4 WHERE production_code = "3WAB03" |
What was the score when Fred Couples played in the United States and placed t9? | CREATE TABLE table_name_26 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) | SELECT score FROM table_name_26 WHERE country = "united states" AND place = "t9" AND player = "fred couples" |
Name the directed by for 15.15 viewers | CREATE TABLE table_16617011_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) | SELECT directed_by FROM table_16617011_1 WHERE us_viewers__millions_ = "15.15" |
What is the organisation type and id of the organisation which has the most number of research staff? | CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) | SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 |
Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000. | CREATE TABLE entrepreneur (Investor VARCHAR, Money_Requested INTEGER) | SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 |
what is the team nickname when joined tschl is 2010 and home arena is kettering rec center and the team website is dayton hockey? | CREATE TABLE table_name_68 (team_nickname VARCHAR, team_website VARCHAR, joined_tschl VARCHAR, home_arena VARCHAR) | SELECT team_nickname FROM table_name_68 WHERE joined_tschl = 2010 AND home_arena = "kettering rec center" AND team_website = "dayton hockey" |
Why did Majid bagherinia leave? | CREATE TABLE table_22297198_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) | SELECT manner_of_departure FROM table_22297198_3 WHERE outgoing_manager = "Majid Bagherinia" |
What was the date when the attendance was n/a and the Man of the Match was unknown? | CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR, man_of_the_match VARCHAR) | SELECT date FROM table_name_32 WHERE attendance = "n/a" AND man_of_the_match = "unknown" |
What is the largest crowd when essendon is the home team? | CREATE TABLE table_16388506_1 (crowd INTEGER, home_team VARCHAR) | SELECT MAX(crowd) FROM table_16388506_1 WHERE home_team = "Essendon" |
What film has a leading man of adolphe menjou in 1939? | CREATE TABLE table_name_91 (film VARCHAR, leading_man VARCHAR, year VARCHAR) | SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939 |
What district is the parish Milburn in? | CREATE TABLE table_name_85 (district VARCHAR, name VARCHAR) | SELECT district FROM table_name_85 WHERE name = "milburn" |
What team had a draw of 0? | CREATE TABLE table_name_29 (team VARCHAR, draw VARCHAR) | SELECT team FROM table_name_29 WHERE draw = "0" |
What was the result of the game with more than 12 goals at Pasadena? | CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR, venue VARCHAR) | SELECT result FROM table_name_80 WHERE goal > 12 AND venue = "pasadena" |
What is the Date that has MARTIN of 7–9% and no Undecided? | CREATE TABLE table_name_93 (date VARCHAR, undecided VARCHAR, martin VARCHAR) | SELECT date FROM table_name_93 WHERE undecided = "–" AND martin = "7–9%" |
What was the date for Westport? | CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_33 WHERE venue = "westport" |
At a longitude of 321.9e, what is the latitude of the features found? | CREATE TABLE table_16799784_3 (latitude VARCHAR, longitude VARCHAR) | SELECT latitude FROM table_16799784_3 WHERE longitude = "321.9E" |
What is the surface for the Volos tournament? | CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_46 WHERE tournament = "volos" |
How many people attended the game whose score was 1-1? | CREATE TABLE table_name_62 (attendance VARCHAR, record VARCHAR) | SELECT attendance FROM table_name_62 WHERE record = "1-1" |
What was the rank of the player in lane 6? | CREATE TABLE table_name_73 (rank INTEGER, lane VARCHAR) | SELECT AVG(rank) FROM table_name_73 WHERE lane = 6 |
Which Year has an Expenditure of 55, and an Income smaller than 36.2? | CREATE TABLE table_name_7 (year INTEGER, expenditure VARCHAR, income VARCHAR) | SELECT MIN(year) FROM table_name_7 WHERE expenditure = 55 AND income < 36.2 |
What is the 1st prize of the tournament in Scotland? | CREATE TABLE table_name_95 (location VARCHAR) | SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = "scotland" |
How many races took place on the Indianapolis Motor Speedway track? | CREATE TABLE table_22673956_1 (race_name VARCHAR, track VARCHAR) | SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = "Indianapolis Motor Speedway" |
What was 2009, when 2001 was, "not masters series"? | CREATE TABLE table_name_5 (Id VARCHAR) | SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series" |
Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112 | CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR) | SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112 |
Who is the driver for laps of 45 | CREATE TABLE table_name_62 (driver VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_62 WHERE laps = 45 |
What was the venue when the score was 7-1? | CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_name_93 WHERE score = "7-1" |
How many ships are there? | CREATE TABLE ship (Id VARCHAR) | SELECT COUNT(*) FROM ship |
What is Quantitiy Made, when Quantity Preserved is "4-4-0 — oooo — american"? | CREATE TABLE table_name_23 (quantity_made VARCHAR, quantity_preserved VARCHAR) | SELECT quantity_made FROM table_name_23 WHERE quantity_preserved = "4-4-0 — oooo — american" |
What is the result for the Outer Critics Circle award earlier than 2004? | CREATE TABLE table_name_6 (result VARCHAR, award VARCHAR, year VARCHAR) | SELECT result FROM table_name_6 WHERE award = "outer critics circle award" AND year < 2004 |
What song has a draw more than 4 in 1st place? | CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR) | SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st" |
What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2? | CREATE TABLE table_name_62 (average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR) | SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2 |
what is the largest city where the province is eastern cape? | CREATE TABLE table_17416221_1 (largest_city VARCHAR, province VARCHAR) | SELECT largest_city FROM table_17416221_1 WHERE province = "Eastern Cape" |
What was the outcome of the match with a score of 3-6, 2-6? | CREATE TABLE table_name_52 (outcome VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_52 WHERE score = "3-6, 2-6" |
What was Rudy Harris' pick number in round 4? | CREATE TABLE table_name_25 (pick INTEGER, round VARCHAR, player VARCHAR) | SELECT MAX(pick) FROM table_name_25 WHERE round = "round 4" AND player = "rudy harris" |
Which player went to college at Saint Mary's? | CREATE TABLE table_10812938_3 (player VARCHAR, college VARCHAR) | SELECT player FROM table_10812938_3 WHERE college = "Saint Mary's" |
What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? | CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR) | SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn" |
Where was the tourney when UCLA won the regular season? | CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR) | SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "UCLA" |
Which transfer window ends after 2006? | CREATE TABLE table_name_95 (transfer_window VARCHAR, ends INTEGER) | SELECT transfer_window FROM table_name_95 WHERE ends > 2006 |
Which Current Club has a Player of bassem balaa? | CREATE TABLE table_name_97 (current_club VARCHAR, player VARCHAR) | SELECT current_club FROM table_name_97 WHERE player = "bassem balaa" |
What is the rank of the time of 6:30.53? | CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_89 WHERE time = "6:30.53" |
what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84? | CREATE TABLE table_name_46 (wkts INTEGER, ovrs VARCHAR, econ VARCHAR) | SELECT SUM(wkts) FROM table_name_46 WHERE ovrs > 2 AND econ > 7.84 |
Who was the team guest captain for episode 2? | CREATE TABLE table_25816476_2 (team_guest_captain VARCHAR, episode VARCHAR) | SELECT team_guest_captain FROM table_25816476_2 WHERE episode = 2 |
In 1979 when Jimmy Connors was the runner-up what was the score? | CREATE TABLE table_name_74 (score VARCHAR, runner_up VARCHAR, year VARCHAR) | SELECT score FROM table_name_74 WHERE runner_up = "jimmy connors" AND year < 1979 |
How many goals against were scored when the position was higher than 1 and the played was higher than 10? | CREATE TABLE table_name_17 (goals_against VARCHAR, position VARCHAR, played VARCHAR) | SELECT COUNT(goals_against) FROM table_name_17 WHERE position > 1 AND played > 10 |
Which host has more than 11 episodes? | CREATE TABLE table_name_95 (host VARCHAR, _number_of_episodes INTEGER) | SELECT host FROM table_name_95 WHERE _number_of_episodes > 11 |
What is the engine for the car with 3 points? | CREATE TABLE table_name_6 (engine VARCHAR, points VARCHAR) | SELECT engine FROM table_name_6 WHERE points = 3 |
Who was running for office in the California 10 district? | CREATE TABLE table_1341690_5 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341690_5 WHERE district = "California 10" |
What CFL team got the player from york? | CREATE TABLE table_28059992_5 (cfl_team VARCHAR, college VARCHAR) | SELECT cfl_team FROM table_28059992_5 WHERE college = "York" |
What numbered game did they play on april 5? | CREATE TABLE table_27755603_11 (game INTEGER, date VARCHAR) | SELECT MAX(game) FROM table_27755603_11 WHERE date = "April 5" |
What episode in the series is TV broadcast s03e20? | CREATE TABLE table_15861776_1 (no_in_series VARCHAR, tv_broadcast VARCHAR) | SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = "S03E20" |
Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round? | CREATE TABLE table_name_37 (year INTEGER, manager VARCHAR, playoffs VARCHAR) | SELECT MIN(year) FROM table_name_37 WHERE manager = "bobby dews" AND playoffs = "lost in 1st round" |
What visitor has march 26 as the date? | CREATE TABLE table_name_17 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_17 WHERE date = "march 26" |
What is the lowest game that has a drawn less than 0? | CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER) | SELECT MIN(games) FROM table_name_26 WHERE drawn < 0 |
When 13 is the share (18-49) what is the rank (timeslot)? | CREATE TABLE table_28980706_4 (rank__timeslot_ VARCHAR, share__18_49_ VARCHAR) | SELECT rank__timeslot_ FROM table_28980706_4 WHERE share__18_49_ = 13 |
Which driver has a Time/Retired of 2:45:46.2? | CREATE TABLE table_name_44 (driver VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_44 WHERE time_retired = "2:45:46.2" |
What wins has WPct of 0.2? | CREATE TABLE table_name_82 (wins VARCHAR, wpct VARCHAR) | SELECT wins FROM table_name_82 WHERE wpct = "0.2" |
When Essendon played away; where did they play? | CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_50 WHERE away_team = "essendon" |
Name the average total for gold less than 1 and rank less than 5 | CREATE TABLE table_name_38 (total INTEGER, gold VARCHAR, rank VARCHAR) | SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 5 |
What ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy? | CREATE TABLE table_name_81 (ship VARCHAR, country VARCHAR, builder VARCHAR) | SELECT ship FROM table_name_81 WHERE country = "royal navy" AND builder = "palmers shipbuilding and iron company" |
what is the most amount of cattle where they live in british columbia | CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) | SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia" |
Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18 |
For delegate is mcdonough, patrick l. pat mcdonough, specify all the district. | CREATE TABLE table_27050336_7 (district VARCHAR, delegate VARCHAR) | SELECT district FROM table_27050336_7 WHERE delegate = "McDonough, Patrick L. Pat McDonough" |
What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057? | CREATE TABLE table_name_84 (evening_gown INTEGER, interview VARCHAR, preliminaries VARCHAR) | SELECT SUM(evening_gown) FROM table_name_84 WHERE interview = 9.22 AND preliminaries > 9.057 |
What was the score on March 4? | CREATE TABLE table_name_22 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_22 WHERE date = "march 4" |
What is the highest played that has a drawn less than 9, 36 as the difference, with a lost greater than 7? | CREATE TABLE table_name_60 (played INTEGER, lost VARCHAR, drawn VARCHAR, difference VARCHAR) | SELECT MAX(played) FROM table_name_60 WHERE drawn < 9 AND difference = "36" AND lost > 7 |
Which of the networks originate in Xalapa? | CREATE TABLE table_2899987_2 (network VARCHAR, origin VARCHAR) | SELECT network FROM table_2899987_2 WHERE origin = "Xalapa" |
How many championships were won for arena football? | CREATE TABLE table_21564794_3 (championships_in_st_louis VARCHAR, sport VARCHAR) | SELECT championships_in_st_louis FROM table_21564794_3 WHERE sport = "Arena Football" |
Which episode was directed by steven depaul | CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR) | SELECT title FROM table_11665016_2 WHERE directed_by = "Steven DePaul" |
How much money did the player ranked above 3 with under 28 events earn? | CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR) | SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3 |
Which date had a final score of 20-27? | CREATE TABLE table_name_58 (date VARCHAR, final_score VARCHAR) | SELECT date FROM table_name_58 WHERE final_score = "20-27" |
How many were in the crowd at the Junction Oval venue? | CREATE TABLE table_name_15 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_15 WHERE venue = "junction oval" |
What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end? | CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, overall VARCHAR, position VARCHAR) | SELECT AVG(round) FROM table_name_87 WHERE overall > 238 AND position = "defensive end" AND school_club_team = "wisconsin" |
What are the states or counties of the address of the stores with marketing region code "CA"? | CREATE TABLE Addresses (State_County VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Marketing_Region_Code VARCHAR) | SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = "CA" |
What is the sum of goals for the 2004/05 Season? | CREATE TABLE table_name_48 (goals INTEGER, season VARCHAR) | SELECT SUM(goals) FROM table_name_48 WHERE season = "2004/05" |
What is the smallest number of runs? | CREATE TABLE table_26041144_10 (runs INTEGER) | SELECT MIN(runs) FROM table_26041144_10 |
How many years have a Result of nominated? | CREATE TABLE table_name_42 (year VARCHAR, result VARCHAR) | SELECT COUNT(year) FROM table_name_42 WHERE result = "nominated" |
What is the number of position where the pick number is 43? | CREATE TABLE table_10975034_5 (position VARCHAR, pick__number VARCHAR) | SELECT COUNT(position) FROM table_10975034_5 WHERE pick__number = 43 |
What date was the record 20–16? | CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_38 WHERE record = "20–16" |
What is the time when the set 1 is 21–25? | CREATE TABLE table_name_48 (time VARCHAR, set_1 VARCHAR) | SELECT time FROM table_name_48 WHERE set_1 = "21–25" |
how many times is the fuel propulsion is cng? | CREATE TABLE table_10007452_3 (fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR) | SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = "CNG" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.