answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
|
|---|---|---|
SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval"
|
What is the score for the home team when the venue is Junction Oval?
|
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
|
SELECT overview FROM table_name_79 WHERE threat_level = "medium"
|
What is the Overview with a medium Threat Level?
|
CREATE TABLE table_name_79 (overview VARCHAR, threat_level VARCHAR)
|
SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1)
|
What are all the customer phone numbers under the most popular policy type?
|
CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
|
SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = "pegasus" AND ngc_number = "7318a"
|
What is Pegasus' right ascension with a 7318a NGC?
|
CREATE TABLE table_name_67 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
|
SELECT MIN(season) FROM table_name_47 WHERE assists < 13 AND minutes < 91
|
What is the earliest year that Assists were less than 13 and minutes were under 91?
|
CREATE TABLE table_name_47 (season INTEGER, assists VARCHAR, minutes VARCHAR)
|
SELECT place FROM table_name_53 WHERE country = "canada"
|
What place has Canada as the country?
|
CREATE TABLE table_name_53 (place VARCHAR, country VARCHAR)
|
SELECT lead FROM table_name_70 WHERE second = "cathrine norberg" AND third = "anna rindeskog"
|
Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?
|
CREATE TABLE table_name_70 (lead VARCHAR, second VARCHAR, third VARCHAR)
|
SELECT finish FROM table_name_35 WHERE qual = "130.928"
|
What was Dick Rathmann's Finish the year he Qualed at 130.928?
|
CREATE TABLE table_name_35 (finish VARCHAR, qual VARCHAR)
|
SELECT COUNT(nickname) FROM table_262527_1 WHERE institution = "Southwestern College"
|
what is the total number of nicknames for southwestern college?
|
CREATE TABLE table_262527_1 (nickname VARCHAR, institution VARCHAR)
|
SELECT MAX(enrollment) FROM table_name_73 WHERE location = "kendallville"
|
What's the enrollment for Kendallville?
|
CREATE TABLE table_name_73 (enrollment INTEGER, location VARCHAR)
|
SELECT AVG(round) FROM table_name_38 WHERE player = "martin havlat"
|
What is the average round for martin havlat?
|
CREATE TABLE table_name_38 (round INTEGER, player VARCHAR)
|
SELECT time FROM table_name_14 WHERE set_3 = "25–16"
|
What time has a Set 3 of 25–16?
|
CREATE TABLE table_name_14 (time VARCHAR, set_3 VARCHAR)
|
SELECT league_goals FROM table_28730459_3 WHERE league_matches = 10 AND tebe_career = "2003"
|
What is the number of league goals for players with 10 league matches and a TeBe career of 2003?
|
CREATE TABLE table_28730459_3 (league_goals VARCHAR, league_matches VARCHAR, tebe_career VARCHAR)
|
SELECT location FROM table_name_36 WHERE method = "decision" AND record = "1-2"
|
Which location led to a decision and a record of 1-2?
|
CREATE TABLE table_name_36 (location VARCHAR, method VARCHAR, record VARCHAR)
|
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
|
Show the prices of publications whose publisher is either "Person" or "Wiley"
|
CREATE TABLE publication (Price VARCHAR, Publisher VARCHAR)
|
SELECT team_1 FROM table_19294812_2 WHERE team_2 = "Koper"
|
Who is team 1 when team 2 is koper?
|
CREATE TABLE table_19294812_2 (team_1 VARCHAR, team_2 VARCHAR)
|
SELECT background FROM table_name_20 WHERE result = "07 fired in task 6 (2009-04-05)"
|
What is the Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)?
|
CREATE TABLE table_name_20 (background VARCHAR, result VARCHAR)
|
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
|
For each classroom, report the classroom number and the number of grades using it.
|
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
|
SELECT drawn FROM table_name_60 WHERE lost = "1"
|
Can you name the drawn with a Lost of 1?
|
CREATE TABLE table_name_60 (drawn VARCHAR, lost VARCHAR)
|
SELECT win__percentage FROM table_name_74 WHERE 2010 = "98"
|
What is the win percentage when 2010 was 98?
|
CREATE TABLE table_name_74 (win__percentage VARCHAR)
|
SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*"
|
what is the perfect of mass when the molecules is 1.74e14*?
|
CREATE TABLE table_name_58 (percent_of_mass VARCHAR, molecules VARCHAR)
|
SELECT opponent FROM table_name_37 WHERE date = "december 12, 1993"
|
Who played on december 12, 1993?
|
CREATE TABLE table_name_37 (opponent VARCHAR, date VARCHAR)
|
SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = "MU, 2-1"
|
Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?
|
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_neutral_site VARCHAR)
|
SELECT average FROM table_27268238_4 WHERE team = "Gloucestershire"
|
If the team is Gloucestershire, what is the average?
|
CREATE TABLE table_27268238_4 (average VARCHAR, team VARCHAR)
|
SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = "no" AND s_default_argument = "no" AND functions = "no" AND eval_function = "no"
|
What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?
|
CREATE TABLE table_name_10 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)
|
SELECT opponent FROM table_name_36 WHERE venue = "south end grounds"
|
Which team did the Boston Beaneaters host at the South End Grounds?
|
CREATE TABLE table_name_36 (opponent VARCHAR, venue VARCHAR)
|
SELECT date FROM table_name_23 WHERE venue = "round 3"
|
When did the venue of round 3 happen?
|
CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR)
|
SELECT run_2 FROM table_name_73 WHERE country = "australia" AND run_1 < 53.75
|
What is the run 2 of the athlete from Australia with a run 1 less than 53.75?
|
CREATE TABLE table_name_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR)
|
SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 79
|
what is the number of the wc matches if the matches were 79
|
CREATE TABLE table_30085411_1 (WC INTEGER, matches VARCHAR)
|
SELECT SUM(pick) FROM table_name_95 WHERE year = 2009 AND round < 2 AND nba_club = "denver nuggets"
|
What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?
|
CREATE TABLE table_name_95 (pick INTEGER, nba_club VARCHAR, year VARCHAR, round VARCHAR)
|
SELECT MAX(week) FROM table_10647401_1 WHERE stadium = "Memorial stadium"
|
What week corresponds to the last one to be played at the memorial stadium?
|
CREATE TABLE table_10647401_1 (week INTEGER, stadium VARCHAR)
|
SELECT score FROM table_name_29 WHERE record = "1-2-1"
|
What is the score of the game that has a record of 1-2-1?
|
CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR)
|
SELECT average_ratings FROM table_18539834_2 WHERE tv_station = "TV Asahi"
|
What is the average rating for tv asahi?
|
CREATE TABLE table_18539834_2 (average_ratings VARCHAR, tv_station VARCHAR)
|
SELECT SUM(against) FROM table_name_97 WHERE played > 22
|
How many games were played against when the team played more than 22 total?
|
CREATE TABLE table_name_97 (against INTEGER, played INTEGER)
|
SELECT MIN(crowd) FROM table_name_49 WHERE venue = "mcg"
|
What was the crowd when the VFL played MCG?
|
CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)
|
SELECT MIN(episodes) FROM table_14855908_3 WHERE dvd_name = "Season 1"
|
How many episodes were released in the season 1 DVD?
|
CREATE TABLE table_14855908_3 (episodes INTEGER, dvd_name VARCHAR)
|
SELECT COUNT(wins) FROM table_name_17 WHERE points < 1
|
What is the total number of Wins, when Points is less than 1?
|
CREATE TABLE table_name_17 (wins VARCHAR, points INTEGER)
|
SELECT COUNT(attendance) FROM table_name_86 WHERE location = "groves stadium • winston-salem, nc" AND result = "l 0-14"
|
What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14?
|
CREATE TABLE table_name_86 (attendance VARCHAR, location VARCHAR, result VARCHAR)
|
SELECT source FROM table_name_88 WHERE knight = "2%"
|
What source has a Knight of 2%?
|
CREATE TABLE table_name_88 (source VARCHAR, knight VARCHAR)
|
SELECT act FROM table_28180840_15 WHERE name_name_of_act = "Zhu Xiaoming"
|
What is the name of the performance zhu xiaoming performed?
|
CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)
|
SELECT winning_team FROM table_name_75 WHERE fastest_lap = "brendon hartley" AND pole_position = "oliver turvey" AND circuit = "spa-francorchamps" AND winning_driver = "brendon hartley"
|
Which Winning Team has the Fastest Lap of brendon hartley, and a Pole Position of oliver turvey, and a Circuit of spa-francorchamps, and the Winning Driver of brendon hartley?
|
CREATE TABLE table_name_75 (winning_team VARCHAR, winning_driver VARCHAR, circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
|
SELECT contestant FROM table_20754016_2 WHERE height__cm_ = 173
|
What contestant is 173 cm tall?
|
CREATE TABLE table_20754016_2 (contestant VARCHAR, height__cm_ VARCHAR)
|
SELECT pick FROM table_name_61 WHERE college = "boston college"
|
College of boston college has what pick?
|
CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR)
|
SELECT episodes FROM table_name_47 WHERE tv_station = "ntv" AND japanese_title = "たったひとつの恋"
|
How many episodes when the tv station is ntv and the japanese title is たったひとつの恋?
|
CREATE TABLE table_name_47 (episodes VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)
|
SELECT date FROM table_1315616_1 WHERE mediator = "Keiichi Ubukata" AND red_team_host = "Mitsuko Mori"
|
On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?
|
CREATE TABLE table_1315616_1 (date VARCHAR, mediator VARCHAR, red_team_host VARCHAR)
|
SELECT year_s__won FROM table_name_11 WHERE total = 286
|
What years won have a total of 286?
|
CREATE TABLE table_name_11 (year_s__won VARCHAR, total VARCHAR)
|
SELECT MIN(round) FROM table_name_58 WHERE college = "southern"
|
What is the lowest round for Southern College?
|
CREATE TABLE table_name_58 (round INTEGER, college VARCHAR)
|
SELECT zone FROM table_name_41 WHERE camp_type = "d/s" AND area = "bl9"
|
What zone has camp type D/S in area Bl9?
|
CREATE TABLE table_name_41 (zone VARCHAR, camp_type VARCHAR, area VARCHAR)
|
SELECT opponent FROM table_name_60 WHERE week = 14
|
Which Opponent had a week of 14?
|
CREATE TABLE table_name_60 (opponent VARCHAR, week VARCHAR)
|
SELECT points FROM table_name_71 WHERE points_for = "points for"
|
What is Points, when Points For is "points for"?
|
CREATE TABLE table_name_71 (points VARCHAR, points_for VARCHAR)
|
SELECT driver FROM table_name_40 WHERE entrant = "marlboro mclaren peugeot"
|
Who drove the Marlboro Mclaren Peugeot?
|
CREATE TABLE table_name_40 (driver VARCHAR, entrant VARCHAR)
|
SELECT COUNT(DISTINCT i_id) FROM review
|
How many different items were reviewed by some users?
|
CREATE TABLE review (i_id VARCHAR)
|
SELECT lost FROM table_name_78 WHERE points_for = "528"
|
What lost has 528 as the points?
|
CREATE TABLE table_name_78 (lost VARCHAR, points_for VARCHAR)
|
SELECT COUNT(laps) FROM table_name_24 WHERE grid = 19
|
What is the total laps for grid 19?
|
CREATE TABLE table_name_24 (laps VARCHAR, grid VARCHAR)
|
SELECT Election_Cycle, COUNT(*) FROM VOTING_RECORD GROUP BY Election_Cycle
|
For each election cycle, report the number of voting records.
|
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
|
SELECT MIN(ave__no) FROM table_name_28 WHERE name = "livigno alps"
|
Which AVE-No has a Name of livigno alps?
|
CREATE TABLE table_name_28 (ave__no INTEGER, name VARCHAR)
|
SELECT MAX(week) FROM table_name_78 WHERE attendance = "bye"
|
Which week was the team's bye week?
|
CREATE TABLE table_name_78 (week INTEGER, attendance VARCHAR)
|
SELECT street_address FROM table_name_73 WHERE name = "the palazzo"
|
The Palazzo's street address is listed as what?
|
CREATE TABLE table_name_73 (street_address VARCHAR, name VARCHAR)
|
SELECT winning_driver FROM table_name_45 WHERE round = 9
|
Which Winning Driver has a Round of 9?
|
CREATE TABLE table_name_45 (winning_driver VARCHAR, round VARCHAR)
|
SELECT result FROM table_name_38 WHERE date = "26 jan 2005"
|
What is the Result on 26 jan 2005?
|
CREATE TABLE table_name_38 (result VARCHAR, date VARCHAR)
|
SELECT cover_date FROM table_name_59 WHERE story_title = "spacehikers (part 2)"
|
What is the Cover Date of the Story Title Spacehikers (Part 2)?
|
CREATE TABLE table_name_59 (cover_date VARCHAR, story_title VARCHAR)
|
SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" AND points < 5
|
Which Attendance has a Score of 4–3, and Points smaller than 5?
|
CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR)
|
SELECT nationality FROM table_name_86 WHERE round > 8
|
What nationality has a higher round than 8?
|
CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER)
|
SELECT home FROM table_name_66 WHERE visitor = "raptors"
|
What is the home team of the game with the Raptors as the visitor team?
|
CREATE TABLE table_name_66 (home VARCHAR, visitor VARCHAR)
|
SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901
|
Name the most interview for minnesota and average more than 7.901
|
CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR)
|
SELECT joined FROM table_262514_1 WHERE nickname = "Ravens"
|
What is every year for joined with the Ravens nickname?
|
CREATE TABLE table_262514_1 (joined VARCHAR, nickname VARCHAR)
|
SELECT score FROM table_23453931_8 WHERE points = 62
|
What was the score when they had 62 points?
|
CREATE TABLE table_23453931_8 (score VARCHAR, points VARCHAR)
|
SELECT opponent FROM table_name_53 WHERE date = "september 28, 1951"
|
Which Opponent has a Date of september 28, 1951?
|
CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR)
|
SELECT award_description_s_ FROM table_name_84 WHERE format_s_ = "album"
|
What are the award description with Format album?
|
CREATE TABLE table_name_84 (award_description_s_ VARCHAR, format_s_ VARCHAR)
|
SELECT partner FROM table_name_20 WHERE opponent = "michaëlla krajicek eleni daniilidou"
|
Name the partner with opponent of michaëlla krajicek eleni daniilidou
|
CREATE TABLE table_name_20 (partner VARCHAR, opponent VARCHAR)
|
SELECT total_votes FROM table_name_29 WHERE election > 2001 AND share_of_votes = "44.5%"
|
What is the vote total for elections after 2001 with 44.5% participation?
|
CREATE TABLE table_name_29 (total_votes VARCHAR, election VARCHAR, share_of_votes VARCHAR)
|
SELECT name FROM table_name_96 WHERE spread = 69
|
What name has a spread of 69?
|
CREATE TABLE table_name_96 (name VARCHAR, spread VARCHAR)
|
SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez"
|
Which date was hermanos rodríguez the location?
|
CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR)
|
SELECT MAX(grid) FROM table_name_1 WHERE laps = 55
|
What is the highest grid that has 55 laps?
|
CREATE TABLE table_name_1 (grid INTEGER, laps VARCHAR)
|
SELECT MIN(laps) FROM table_name_12 WHERE rank = "32"
|
What is the fewest number of laps completed by a rank 32?
|
CREATE TABLE table_name_12 (laps INTEGER, rank VARCHAR)
|
SELECT COUNT(district) FROM table_name_57 WHERE democratic = "nicholas von stein"
|
How many districts featured the democrat nicholas von stein?
|
CREATE TABLE table_name_57 (district VARCHAR, democratic VARCHAR)
|
SELECT COUNT(guests) FROM table_name_89 WHERE ship_name = "rv indochina" AND crew < 28
|
What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?
|
CREATE TABLE table_name_89 (guests VARCHAR, ship_name VARCHAR, crew VARCHAR)
|
SELECT type FROM table_name_50 WHERE name__pinyin_ = "guangjia"
|
What is the type of Guangjia?
|
CREATE TABLE table_name_50 (type VARCHAR, name__pinyin_ VARCHAR)
|
SELECT date FROM table_name_44 WHERE week < 8 AND result = "bye"
|
When was the game before week 8 with a result of bye?
|
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR, result VARCHAR)
|
SELECT party FROM table_name_79 WHERE member = "ralph jacobi"
|
To what party does Ralph Jacobi belong?
|
CREATE TABLE table_name_79 (party VARCHAR, member VARCHAR)
|
SELECT company FROM table_name_14 WHERE director = "simon stone" AND year < 2011
|
What company does Simon Stone direct earlier than 2011?
|
CREATE TABLE table_name_14 (company VARCHAR, director VARCHAR, year VARCHAR)
|
SELECT COUNT(class) FROM table_14342210_13 WHERE player = "Everett Sweeley"
|
How many entries are there for Class for the player Everett Sweeley?
|
CREATE TABLE table_14342210_13 (class VARCHAR, player VARCHAR)
|
SELECT draw FROM table_name_5 WHERE team = "skra warszawa"
|
What is the Draw for skra warszawa?
|
CREATE TABLE table_name_5 (draw VARCHAR, team VARCHAR)
|
SELECT swimmer FROM table_name_64 WHERE year < 2011 AND time = "53.06"
|
What is Swimmer, when Year is less than 2011, and when Time is "53.06"?
|
CREATE TABLE table_name_64 (swimmer VARCHAR, year VARCHAR, time VARCHAR)
|
SELECT SUM(crowd) FROM table_name_56 WHERE venue = "princes park"
|
How large was the crowd when they played at princes park?
|
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR)
|
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi"
|
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
|
CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)
|
SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3
|
Show the names of the three most recent festivals.
|
CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
|
SELECT MIN(stumped) FROM table_19870086_24 WHERE dismissals = 13
|
what is the least number of stumps in a game with 13 dismissals
|
CREATE TABLE table_19870086_24 (stumped INTEGER, dismissals VARCHAR)
|
SELECT champion FROM table_11214772_1 WHERE semi_finalist__number2 = "NA" AND location = "Morrisville, NC"
|
who is the champion where semi-finalist #2 is na and location is morrisville, nc
|
CREATE TABLE table_11214772_1 (champion VARCHAR, semi_finalist__number2 VARCHAR, location VARCHAR)
|
SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = "truncated dodecahedron"
|
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
|
CREATE TABLE table_name_28 (vertices INTEGER, dual_archimedean_solid VARCHAR)
|
SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier"
|
On which date was the manager fired and replaced by Albert Cartier?
|
CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
|
SELECT FacID FROM Faculty WHERE Sex = 'M'
|
Show ids for all the male faculty.
|
CREATE TABLE Faculty (FacID VARCHAR, Sex VARCHAR)
|
SELECT MIN(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
|
what is the minimum attendance with stadium being cotton bowl
|
CREATE TABLE table_14102379_4 (attendance INTEGER, stadium VARCHAR)
|
SELECT circuit FROM table_name_15 WHERE winning_driver = "scott pruett"
|
Which Circuit has a Winning driver of scott pruett?
|
CREATE TABLE table_name_15 (circuit VARCHAR, winning_driver VARCHAR)
|
SELECT points_classification FROM table_18733814_2 WHERE stage = 19
|
When 19 is the stage who is the points classification?
|
CREATE TABLE table_18733814_2 (points_classification VARCHAR, stage VARCHAR)
|
SELECT line FROM table_name_62 WHERE platform = "3"
|
Which Line has a Platform of 3?
|
CREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR)
|
SELECT quantity_made FROM table_name_97 WHERE class = "330"
|
How many have a class of 330?
|
CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR)
|
SELECT league AS Cup FROM table_22357065_1 WHERE nation = "Northern Ireland"
|
Name the league cup for northern ireland
|
CREATE TABLE table_22357065_1 (league VARCHAR, nation VARCHAR)
|
SELECT semifinals FROM table_1745820_5 WHERE round_of_32 = "Bye"
|
When there was a bye in the round of 32, what was the result in the round of 16?
|
CREATE TABLE table_1745820_5 (semifinals VARCHAR, round_of_32 VARCHAR)
|
SELECT season FROM table_name_53 WHERE league = "wcjhl" AND assists = 86
|
In what Season were there 86 Assists in the WCJHL League?
|
CREATE TABLE table_name_53 (season VARCHAR, league VARCHAR, assists VARCHAR)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.