question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the Date of the athlete in the shot put Event? | CREATE TABLE table_name_19 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_19 WHERE event = "shot put" |
What was the away team score at Corio Oval? | CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval" |
How many episode titles have series number 4? | CREATE TABLE table_28859177_2 (title VARCHAR, series__number VARCHAR) | SELECT COUNT(title) FROM table_28859177_2 WHERE series__number = 4 |
What is Chepén's average UBIGEO? | CREATE TABLE table_name_34 (ubigeo INTEGER, province VARCHAR) | SELECT AVG(ubigeo) FROM table_name_34 WHERE province = "chepén" |
What is the distance in 2006? | CREATE TABLE table_name_18 (distance VARCHAR, year VARCHAR) | SELECT distance FROM table_name_18 WHERE year = 2006 |
What is the Sub-Parish called that has a church located in Fresvik? | CREATE TABLE table_name_39 (sub_parish__sokn_ VARCHAR, location_of_the_church VARCHAR) | SELECT sub_parish__sokn_ FROM table_name_39 WHERE location_of_the_church = "fresvik" |
How many members did Europe have the year that America had 403892? | CREATE TABLE table_1914090_2 (europe VARCHAR, america VARCHAR) | SELECT europe FROM table_1914090_2 WHERE america = 403892 |
Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45? | CREATE TABLE table_name_42 (grid INTEGER, team VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_42 WHERE team = "germany" AND laps < 45 |
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft? | CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) | SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft" |
with 6 rounds, and a 52 51/52 chassis, who is the driver? | CREATE TABLE table_name_79 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR) | SELECT driver FROM table_name_79 WHERE rounds = "6" AND chassis = "52 51/52" |
How many settlements are there in total? | CREATE TABLE Settlements (Id VARCHAR) | SELECT COUNT(*) FROM Settlements |
What is the average Total, when Gold is less than 0? | CREATE TABLE table_name_12 (total INTEGER, gold INTEGER) | SELECT AVG(total) FROM table_name_12 WHERE gold < 0 |
What is the Hazmat, when the Type is Rural, and when the number of Tankers is 1? | CREATE TABLE table_name_98 (hazmat VARCHAR, type VARCHAR, tankers VARCHAR) | SELECT hazmat FROM table_name_98 WHERE type = "rural" AND tankers = 1 |
What event was on 26 August 2005? | CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR) | SELECT event FROM table_name_14 WHERE date = "26 august 2005" |
What School/Club Team is Player Howard Wood from? | CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" |
What is the number of candidates for pennsylvania 21 | CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 21" |
What is Team, when High Assists is "Rashard Lewis (4)"? | CREATE TABLE table_name_15 (team VARCHAR, high_assists VARCHAR) | SELECT team FROM table_name_15 WHERE high_assists = "rashard lewis (4)" |
What is the average price for flights from Los Angeles to Honolulu. | CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) | SELECT AVG(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" |
what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7% | CREATE TABLE table_1341586_39 (district VARCHAR, candidates VARCHAR) | SELECT district FROM table_1341586_39 WHERE candidates = "Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%" |
What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25? | CREATE TABLE table_name_98 (top_10 INTEGER, wins VARCHAR, top_25 VARCHAR) | SELECT SUM(top_10) FROM table_name_98 WHERE wins > 2 AND top_25 < 16 |
What is Score, when High Points is "Dwight Howard (25)"? | CREATE TABLE table_name_36 (score VARCHAR, high_points VARCHAR) | SELECT score FROM table_name_36 WHERE high_points = "dwight howard (25)" |
Mike Miller played for what school/club team? | CREATE TABLE table_name_87 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_87 WHERE player = "mike miller" |
what is the object type when the right ascension (j2000) is 11h10m42.8s? | CREATE TABLE table_name_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" |
In what position was the driver who won $60,000? | CREATE TABLE table_25146455_1 (position INTEGER, winnings VARCHAR) | SELECT MIN(position) FROM table_25146455_1 WHERE winnings = "$60,000" |
What is the Total of kyrgyzstan with a Silver smaller than 0? | CREATE TABLE table_name_97 (total INTEGER, nation VARCHAR, silver VARCHAR) | SELECT AVG(total) FROM table_name_97 WHERE nation = "kyrgyzstan" AND silver < 0 |
what season had a score of 1:0 | CREATE TABLE table_name_4 (season VARCHAR, score VARCHAR) | SELECT season FROM table_name_4 WHERE score = "1:0" |
What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30? | CREATE TABLE table_name_96 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR, octal VARCHAR) | SELECT SUM(glyph) FROM table_name_96 WHERE binary < 111001 AND octal < 65 AND hexadecimal < 30 |
what is the points against when the losing bonus is 0 and the club is banwen rfc? | CREATE TABLE table_name_32 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR) | SELECT points_against FROM table_name_32 WHERE losing_bonus = "0" AND club = "banwen rfc" |
Find the name and position of physicians who prescribe some medication whose brand is X? | CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR) | SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X" |
When the # is 4, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR) | SELECT pop__km² FROM table_2252745_1 WHERE _number = 4 |
Which party had a member on August 26, 2008? | CREATE TABLE table_name_95 (party VARCHAR, date VARCHAR) | SELECT party FROM table_name_95 WHERE date = "august 26, 2008" |
Give me the average prices of wines that are produced by appelations in Sonoma County. | CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR) | SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Sonoma" |
Which race had Jacky Ickx as the winner and Clay Regazzoni with the fastest lap? | CREATE TABLE table_name_53 (race VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) | SELECT race FROM table_name_53 WHERE winning_driver = "jacky ickx" AND fastest_lap = "clay regazzoni" |
When was the elector from pisa elevated? | CREATE TABLE table_name_13 (elevated VARCHAR, nationality VARCHAR) | SELECT elevated FROM table_name_13 WHERE nationality = "pisa" |
Which format has a Station of kcbs? | CREATE TABLE table_name_80 (format VARCHAR, station VARCHAR) | SELECT format FROM table_name_80 WHERE station = "kcbs" |
At a longitude of 109.9e, how many features were found? | CREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, longitude VARCHAR) | SELECT COUNT(diameter__km_) FROM table_16799784_3 WHERE longitude = "109.9E" |
What is Candlelight Records format? | CREATE TABLE table_name_98 (format VARCHAR, label VARCHAR) | SELECT format FROM table_name_98 WHERE label = "candlelight records" |
What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian? | CREATE TABLE table_name_95 (location VARCHAR, name_in_malay VARCHAR) | SELECT location FROM table_name_95 WHERE name_in_malay = "kolej kemahiran belia nasional, pontian" |
What is the heat for the time 57.97? | CREATE TABLE table_name_62 (heat VARCHAR, time VARCHAR) | SELECT heat FROM table_name_62 WHERE time = "57.97" |
Who was the opponent of the match in round sf with a result of 0-0? | CREATE TABLE table_name_97 (opponent VARCHAR, round VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_97 WHERE round = "sf" AND result = "0-0" |
What is the name of the award given for the category Mercury Prize? | CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR) | SELECT award FROM table_name_58 WHERE category = "mercury prize" |
What is the highest pick number of the CFL's Toronto Argonauts? | CREATE TABLE table_name_36 (pick__number INTEGER, cfl_team VARCHAR) | SELECT MAX(pick__number) FROM table_name_36 WHERE cfl_team = "toronto argonauts" |
On what title was Stephen Fossatti the director of? | CREATE TABLE table_name_81 (title VARCHAR, director VARCHAR) | SELECT title FROM table_name_81 WHERE director = "stephen fossatti" |
What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson? | CREATE TABLE table_name_4 (laps INTEGER, year VARCHAR, co_drivers VARCHAR) | SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson" |
Who was the driver for the winning team Lawson Team Impul? | CREATE TABLE table_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR) | SELECT winning_driver FROM table_22379931_2 WHERE winning_team = "Lawson Team Impul" |
What is the dissolved date of the parliament assembled on 4 November 1461? | CREATE TABLE table_name_58 (dissolved VARCHAR, assembled VARCHAR) | SELECT dissolved FROM table_name_58 WHERE assembled = "4 november 1461" |
For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year? | CREATE TABLE table_name_14 (year INTEGER, engine VARCHAR, entrant VARCHAR) | SELECT MAX(year) FROM table_name_14 WHERE engine = "maserati straight-6" AND entrant = "h h gould" |
What is the Born-Died date for the Representative of Italy? | CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR) | SELECT born_died FROM table_name_16 WHERE country = "italy" |
What is the total when the finish was t44? | CREATE TABLE table_name_99 (total VARCHAR, finish VARCHAR) | SELECT total FROM table_name_99 WHERE finish = "t44" |
What ending does siangu get for ön? | CREATE TABLE table_name_82 (feminine_ōn_stems VARCHAR, feminine_ō_stems VARCHAR) | SELECT feminine_ōn_stems FROM table_name_82 WHERE feminine_ō_stems = "siangu" |
Tell me the lens zoom for aperture of model s2600 | CREATE TABLE table_name_39 (lens_35mmequiv__zoom VARCHAR, _aperture VARCHAR, model VARCHAR) | SELECT lens_35mmequiv__zoom, _aperture FROM table_name_39 WHERE model = "s2600" |
what is the sum of total when year(s) won is 1985? | CREATE TABLE table_name_55 (total INTEGER, year_s__won VARCHAR) | SELECT SUM(total) FROM table_name_55 WHERE year_s__won = "1985" |
How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? | CREATE TABLE table_name_34 (gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0 |
What was the result of Declan Donnellan's nomination? | CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_23 WHERE nominee = "declan donnellan" |
Which best 10-year period has a best 2-year period of petrosian? | CREATE TABLE table_name_32 (best_10_year_period VARCHAR, best_2_year_period VARCHAR) | SELECT best_10_year_period FROM table_name_32 WHERE best_2_year_period = "petrosian" |
What is the maximum number of wins in the formula 3 euro series? | CREATE TABLE table_24330803_1 (wins INTEGER, series VARCHAR) | SELECT MAX(wins) FROM table_24330803_1 WHERE series = "Formula 3 Euro series" |
What is the score on December 2? | CREATE TABLE table_name_51 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_51 WHERE date = "december 2" |
when was lawrence academy at groton established? | CREATE TABLE table_2439728_1 (founded INTEGER, school VARCHAR) | SELECT MIN(founded) FROM table_2439728_1 WHERE school = "Lawrence Academy at Groton" |
What is the result for the best new musical nominee? | CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_17 WHERE nominee = "best new musical" |
When the share of votes is 33.9%, what's the highest total amount of seats? | CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR) | SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.9%" |
What is the name of the podcast on November 21, 2004? | CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR) | SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 2004" |
What were the highest points for less than 78 laps and on grid 5? | CREATE TABLE table_name_86 (points INTEGER, grid VARCHAR, laps VARCHAR) | SELECT MAX(points) FROM table_name_86 WHERE grid = 5 AND laps < 78 |
What was the home team score for the game played at MCG? | CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_61 WHERE venue = "mcg" |
Who was the runner-up when Mohamed Ali got third? | CREATE TABLE table_16331144_1 (runner_up VARCHAR, third_place VARCHAR) | SELECT runner_up FROM table_16331144_1 WHERE third_place = "Mohamed Ali" |
What did the visiting team score at brunswick street oval? | CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_67 WHERE venue = "brunswick street oval" |
What's the highest division number through the years? | CREATE TABLE table_1990460_1 (division INTEGER) | SELECT MAX(division) FROM table_1990460_1 |
What kind of Winning driver has a Winning constructor of mercer? | CREATE TABLE table_name_18 (winning_driver VARCHAR, winning_constructor VARCHAR) | SELECT winning_driver FROM table_name_18 WHERE winning_constructor = "mercer" |
What is the home team score when the away team is Collingwood? | CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_96 WHERE away_team = "collingwood" |
What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"? | CREATE TABLE table_name_86 (date VARCHAR, time VARCHAR, meet VARCHAR, nationality VARCHAR) | SELECT date FROM table_name_86 WHERE meet = "world championships" AND nationality = "united states" AND time = "1:46.68" |
Name the 2012 with 2013 of 2r and 2009 of 3r | CREATE TABLE table_name_69 (Id VARCHAR) | SELECT 2012 FROM table_name_69 WHERE 2013 = "2r" AND 2009 = "3r" |
What was the record in the game where McWilliams (8) did the most high rebounds? | CREATE TABLE table_19789597_6 (record VARCHAR, high_rebounds VARCHAR) | SELECT record FROM table_19789597_6 WHERE high_rebounds = "McWilliams (8)" |
Find the name, city, country, and altitude (or elevation) of the airports in the city of New York. | CREATE TABLE airports (name VARCHAR, city VARCHAR, country VARCHAR, elevation VARCHAR) | SELECT name, city, country, elevation FROM airports WHERE city = 'New York' |
Peter Hopwood has how many laps in all? | CREATE TABLE table_name_53 (laps VARCHAR, entrant VARCHAR) | SELECT COUNT(laps) FROM table_name_53 WHERE entrant = "peter hopwood" |
Name the number of area where population density 2010 for 514 | CREATE TABLE table_14986292_1 (area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR) | SELECT COUNT(area__km²_) FROM table_14986292_1 WHERE population_density_2010___km²_ = 514 |
How yes votes were there for measure 4? | CREATE TABLE table_256286_60 (yes_votes INTEGER, meas_num VARCHAR) | SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4 |
What's the FA Cup that has a league less than 1? | CREATE TABLE table_name_3 (fa_cup INTEGER, league INTEGER) | SELECT SUM(fa_cup) FROM table_name_3 WHERE league < 1 |
Which class has fewer than 89 points and the Honda team later than 1987? | CREATE TABLE table_name_48 (class VARCHAR, year VARCHAR, points VARCHAR, team VARCHAR) | SELECT class FROM table_name_48 WHERE points < 89 AND team = "honda" AND year > 1987 |
Who is fourth when Anders Martinson USA is second? | CREATE TABLE table_name_98 (fourth VARCHAR, second VARCHAR) | SELECT fourth FROM table_name_98 WHERE second = "anders martinson usa" |
Which attendance has the 25–17–5 record? | CREATE TABLE table_name_93 (attendance VARCHAR, record VARCHAR) | SELECT attendance FROM table_name_93 WHERE record = "25–17–5" |
How many attended the game against the sharks with over 86 points? | CREATE TABLE table_name_99 (attendance INTEGER, points VARCHAR, opponent VARCHAR) | SELECT AVG(attendance) FROM table_name_99 WHERE points > 86 AND opponent = "sharks" |
Find the login name of the course author that teaches the course with name "advanced database". | CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (login_name VARCHAR, author_id VARCHAR) | SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "advanced database" |
What was the loss of the game when the record was 14–8? | CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_90 WHERE record = "14–8" |
How many teams are listed for 3rd wickets? | CREATE TABLE table_1670921_1 (batting_team VARCHAR, wicket VARCHAR) | SELECT COUNT(batting_team) FROM table_1670921_1 WHERE wicket = "3rd" |
What is the population density of bandung regency? | CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, administrative_division VARCHAR) | SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE administrative_division = "Bandung Regency" |
What is the result of the game on April 17 against Los Angeles? | CREATE TABLE table_name_42 (result VARCHAR, road_team VARCHAR, date VARCHAR) | SELECT result FROM table_name_42 WHERE road_team = "los angeles" AND date = "april 17" |
What is GPU Frequency, when Frequency is 1.67 GHz, and when sSpec Number is SLBX9(A0)? | CREATE TABLE table_name_71 (gpu_frequency VARCHAR, frequency VARCHAR, sspec_number VARCHAR) | SELECT gpu_frequency FROM table_name_71 WHERE frequency = "1.67 ghz" AND sspec_number = "slbx9(a0)" |
What was the highest assists for game 3? | CREATE TABLE table_name_7 (high_assists VARCHAR, game VARCHAR) | SELECT high_assists FROM table_name_7 WHERE game = 3 |
What was the province if the electorate was Collingwood? | CREATE TABLE table_27592654_2 (province VARCHAR, electorate VARCHAR) | SELECT province FROM table_27592654_2 WHERE electorate = "Collingwood" |
Name the margin of victory when tournament is algarve open de portugal | CREATE TABLE table_1569625_1 (margin_of_victory VARCHAR, tournament VARCHAR) | SELECT margin_of_victory FROM table_1569625_1 WHERE tournament = "Algarve Open de Portugal" |
What Award was received bby the Motion Picture What's Love Got To Do With It? | CREATE TABLE table_name_97 (award VARCHAR, motion_picture VARCHAR) | SELECT award FROM table_name_97 WHERE motion_picture = "what's love got to do with it" |
Where was the game played the ended with a score of 62-69? | CREATE TABLE table_name_22 (ground VARCHAR, score VARCHAR) | SELECT ground FROM table_name_22 WHERE score = "62-69" |
How many Apps did Player Gilberto with more than 1 Goals have? | CREATE TABLE table_name_64 (apps INTEGER, player VARCHAR, goals VARCHAR) | SELECT AVG(apps) FROM table_name_64 WHERE player = "gilberto" AND goals > 1 |
How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42? | CREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR) | SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = "tsop40/44" AND body_length_mm < 18.42 |
Which player was +4 to par and won the Open in 1995? | CREATE TABLE table_name_3 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_3 WHERE to_par = "+4" AND year_s__won = "1995" |
WHAT IS THE LAPS WITH A GRID OF 26? | CREATE TABLE table_name_7 (laps VARCHAR, grid VARCHAR) | SELECT laps FROM table_name_7 WHERE grid = "26" |
What is the lowest Against, when Opposing Team is Queensland? | CREATE TABLE table_name_92 (against INTEGER, opposing_team VARCHAR) | SELECT MIN(against) FROM table_name_92 WHERE opposing_team = "queensland" |
Who is the race caller when jim mckay and al michaels were s hosts in the year 1987? | CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR) | SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987 |
How many different titles does the episode with production code IP02003 have? | CREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR) | SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = "IP02003" |
What is Method, when Event is "Reality Submission Fighting 2"? | CREATE TABLE table_name_49 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_49 WHERE event = "reality submission fighting 2" |
Tell me the final score for january 9 for cincinnati bengals | CREATE TABLE table_name_96 (final_score VARCHAR, date VARCHAR, host_team VARCHAR) | SELECT final_score FROM table_name_96 WHERE date = "january 9" AND host_team = "cincinnati bengals" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.