answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT nhl_team FROM table_name_75 WHERE pick = "74" | Tell me the nhl team for 74 | CREATE TABLE table_name_75 (nhl_team VARCHAR, pick VARCHAR) |
SELECT position FROM table_name_26 WHERE player = "tim barnett" | What position does tim barnett play? | CREATE TABLE table_name_26 (position VARCHAR, player VARCHAR) |
SELECT home_team FROM table_name_30 WHERE venue = "victoria park" | What team plays their home games in Victoria Park? | CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR) |
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee" | Who had the most high assists from Milwaukee? | CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR) |
SELECT pos FROM table_name_31 WHERE driver = "stacy compton" | What was Stacy Compton's position? | CREATE TABLE table_name_31 (pos VARCHAR, driver VARCHAR) |
SELECT MAX(points) FROM table_name_71 WHERE laps = 70 AND grid > 16 | What are the most points Lap 70 had with a grid larger than 16? | CREATE TABLE table_name_71 (points INTEGER, laps VARCHAR, grid VARCHAR) |
SELECT coach FROM table_name_19 WHERE year = "1953" | Who was the coach in 1953? | CREATE TABLE table_name_19 (coach VARCHAR, year VARCHAR) |
SELECT COUNT(pop_¹) FROM table_name_10 WHERE prefecture = "ibaraki" | Name the total number of pop for ibaraki | CREATE TABLE table_name_10 (pop_¹ VARCHAR, prefecture VARCHAR) |
SELECT goals_for FROM table_1253396_5 WHERE overall_record = "12-9-7" | The Dallas Burn had a 12-9-7 record and what number of goals for? | CREATE TABLE table_1253396_5 (goals_for VARCHAR, overall_record VARCHAR) |
SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won" | Name the nomination in 2011 that won | CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR) |
SELECT title FROM table_11695215_1 WHERE written_by = "John A. Norris" | What episode was writted by John A. Norris? | CREATE TABLE table_11695215_1 (title VARCHAR, written_by VARCHAR) |
SELECT rider FROM table_name_92 WHERE time = "1:06.02.0" | Which Rider has a 1:06.02.0 Time? | CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR) |
SELECT SUM(points) FROM table_name_38 WHERE year = 1992 | Name the sum of points for 1992 | CREATE TABLE table_name_38 (points INTEGER, year VARCHAR) |
SELECT name FROM table_name_1 WHERE a_league = "150 (4)" | Which player has an A-League of 150 (4)? | CREATE TABLE table_name_1 (name VARCHAR, a_league VARCHAR) |
SELECT SUM(grid) FROM table_name_80 WHERE time_retired = "+8.180 secs" AND laps < 47 | What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps? | CREATE TABLE table_name_80 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT season FROM table_name_30 WHERE third = "zach jacobson" | Which season has Zach Jacobson in third? | CREATE TABLE table_name_30 (season VARCHAR, third VARCHAR) |
SELECT label FROM table_name_68 WHERE region = "united states" AND format = "cassette" | What Label has a Region of united states, and a Format of cassette? | CREATE TABLE table_name_68 (label VARCHAR, region VARCHAR, format VARCHAR) |
SELECT class FROM table_name_52 WHERE number < 4 AND built = "1988" | Which class had a number under 4 and was built in 1988? | CREATE TABLE table_name_52 (class VARCHAR, number VARCHAR, built VARCHAR) |
SELECT third FROM table_name_25 WHERE teams = 13 AND season = 1996 | What country came in third when there were 13 teams in 1996? | CREATE TABLE table_name_25 (third VARCHAR, teams VARCHAR, season VARCHAR) |
SELECT MAX(year) FROM table_name_7 WHERE winning_constructor = "ferrari 166 fl" | What is the latest year that has ferrari 166 fl as the winning constructor? | CREATE TABLE table_name_7 (year INTEGER, winning_constructor VARCHAR) |
SELECT country FROM table_19001175_1 WHERE name = "Hideki Noda Category:Articles with hCards" | Name the country for hideki noda category:articles with hcards | CREATE TABLE table_19001175_1 (country VARCHAR, name VARCHAR) |
SELECT COUNT(team_s_) FROM table_1507423_4 WHERE position = "76th" | How many teams had a 76th position finish? | CREATE TABLE table_1507423_4 (team_s_ VARCHAR, position VARCHAR) |
SELECT country FROM table_name_22 WHERE total < 289 AND finish = "t2" | Which country has a total less than 289 and finished t2? | CREATE TABLE table_name_22 (country VARCHAR, total VARCHAR, finish VARCHAR) |
SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924" | Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924? | CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR) |
SELECT duration FROM table_245801_2 WHERE spacecraft = "Salyut 7 – VE-4 – EVA 1" | When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration? | CREATE TABLE table_245801_2 (duration VARCHAR, spacecraft VARCHAR) |
SELECT name FROM table_name_84 WHERE heat = 4 AND rank < 23 AND result = "55.91" | What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91? | CREATE TABLE table_name_84 (name VARCHAR, result VARCHAR, heat VARCHAR, rank VARCHAR) |
SELECT weight FROM table_name_86 WHERE club = "maadi" | What is Weight, when Club is "Maadi"? | CREATE TABLE table_name_86 (weight VARCHAR, club VARCHAR) |
SELECT became_acharya_on FROM table_name_12 WHERE name_of_acharya = "acharya shree koshalendraprasadji maharaj" | When did acharya shree koshalendraprasadji maharaj become acharya? | CREATE TABLE table_name_12 (became_acharya_on VARCHAR, name_of_acharya VARCHAR) |
SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000 | Find the organisation ids and details of the organisations which are involved in | CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR) |
SELECT report FROM table_name_11 WHERE race_name = "v grand prix de paris" | Name the report for v grand prix de paris | CREATE TABLE table_name_11 (report VARCHAR, race_name VARCHAR) |
SELECT party FROM table_name_86 WHERE incumbent = "stanyarne wilson" | What party has an incumbent of Stanyarne Wilson? | CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR) |
SELECT winner FROM table_name_26 WHERE fourth = "selby riddle" | Who was the Winner when Selby Riddle came in Fourth? | CREATE TABLE table_name_26 (winner VARCHAR, fourth VARCHAR) |
SELECT listed FROM table_name_79 WHERE county = "canyon" | When was the historic place listed that's in canyon county? | CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR) |
SELECT place FROM table_name_92 WHERE country = "united states" AND player = "jerry barber" | What place did Jerry Barber of the United States come in at? | CREATE TABLE table_name_92 (place VARCHAR, country VARCHAR, player VARCHAR) |
SELECT MIN(rank) FROM table_name_54 WHERE notes = "fb" AND athlete = "andre vonarburg" | What is the lowest rank for Andre Vonarburg, when the notes are FB? | CREATE TABLE table_name_54 (rank INTEGER, notes VARCHAR, athlete VARCHAR) |
SELECT team FROM table_29181479_3 WHERE game = 5 | Which team was the opponent in game 5? | CREATE TABLE table_29181479_3 (team VARCHAR, game VARCHAR) |
SELECT location_attendance FROM table_22879262_7 WHERE game = 27 | what is the location attendance for game 27? | CREATE TABLE table_22879262_7 (location_attendance VARCHAR, game VARCHAR) |
SELECT home FROM table_name_33 WHERE date = "december 10" | What is the Home on december 10? | CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR) |
SELECT to_par FROM table_name_57 WHERE player = "steve elkington" | What was steve elkington's to par? | CREATE TABLE table_name_57 (to_par VARCHAR, player VARCHAR) |
SELECT MIN(against) FROM table_name_21 WHERE draws < 0 | What is the smallest number against when the draws are less than 0? | CREATE TABLE table_name_21 (against INTEGER, draws INTEGER) |
SELECT nation_represented FROM table_name_1 WHERE year = 2012 | Which nation won the boxing championship in 2012? | CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR) |
SELECT points_against FROM table_name_54 WHERE try_bonus = "4" AND lost = "10" | For a Lost of 10 and a Try Bonus of 4, what are the points against them? | CREATE TABLE table_name_54 (points_against VARCHAR, try_bonus VARCHAR, lost VARCHAR) |
SELECT date FROM table_name_11 WHERE opponents = "scottish football league xi" AND score = "1-5" | When were scottish football league xi the opponents with a score of 1-5? | CREATE TABLE table_name_11 (date VARCHAR, opponents VARCHAR, score VARCHAR) |
SELECT event FROM table_name_71 WHERE athlete = "ali ekranpour" | What is the event result for athlete Ali Ekranpour? | CREATE TABLE table_name_71 (event VARCHAR, athlete VARCHAR) |
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id | Show names of all high school students who do not have any friends. | CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR) |
SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = "lucon" | How many different classes of verbs are there whose part 3 is lucon? | CREATE TABLE table_1745843_6 (class VARCHAR, part_3 VARCHAR) |
SELECT MAX(crowd) FROM table_name_49 WHERE away_team = "hawthorn" | What is the largest crowd when the away team is Hawthorn? | CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR) |
SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts" | How many people attended the match when Manchester United played against the Hearts? | CREATE TABLE table_name_95 (attendance INTEGER, opponents VARCHAR) |
SELECT MAX(first_elected) FROM table_2668347_17 | Name the most first elected | CREATE TABLE table_2668347_17 (first_elected INTEGER) |
SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7 | Name the birth date for shirt number 7 | CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR) |
SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") | Find the first name and gender of the student who has allergy to milk but not cat. | CREATE TABLE Student (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Has_allergy (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR) |
SELECT record FROM table_name_78 WHERE opponent = "san francisco warriors" | What is Record, when Opponent is San Francisco Warriors? | CREATE TABLE table_name_78 (record VARCHAR, opponent VARCHAR) |
SELECT laps FROM table_name_96 WHERE driver = "olivier panis" | How many laps does olivier panis have? | CREATE TABLE table_name_96 (laps VARCHAR, driver VARCHAR) |
SELECT park FROM table_2665085_1 WHERE name = "Boardwalk Bullet" | What park is Boardwalk Bullet located in? | CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) |
SELECT yacht AS type FROM table_25561560_2 WHERE yacht = "ICAP Leopard" | What is the yacht type of Icap Leopard? | CREATE TABLE table_25561560_2 (yacht VARCHAR) |
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266 | When the Winning score is 68-65-65-68=266, what is the Margin of victory? | CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT AVG(year) FROM table_name_68 WHERE class = "car" AND stages_won = "0" AND position = "dnf" | What is the average year that has a car that won 0 stages with a position of DNF? | CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, class VARCHAR, stages_won VARCHAR) |
SELECT MIN(dynamo) FROM table_name_12 WHERE spartak > 9 AND competition = "totals" AND draw > 24 | what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24? | CREATE TABLE table_name_12 (dynamo INTEGER, draw VARCHAR, spartak VARCHAR, competition VARCHAR) |
SELECT first_name, last_name FROM players ORDER BY birth_date | List the first and last name of all players in the order of birth date. | CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR) |
SELECT value FROM table_name_40 WHERE british_name = "maxima" | what is the value when the british name is maxima? | CREATE TABLE table_name_40 (value VARCHAR, british_name VARCHAR) |
SELECT team FROM table_name_99 WHERE state_province = "missouri" AND est = "1963" | Which team is located in missouri and was established in 1963? | CREATE TABLE table_name_99 (team VARCHAR, state_province VARCHAR, est VARCHAR) |
SELECT title FROM table_name_7 WHERE peak_position = 10 AND weeks_on_chart < 19 | What is the title of the single with the peak position of 10 and weeks on chart is less than 19? | CREATE TABLE table_name_7 (title VARCHAR, peak_position VARCHAR, weeks_on_chart VARCHAR) |
SELECT audition_city FROM table_name_81 WHERE callback_venue = "amelia island plantation" | Which audition city held callbacks at Amelia Island Plantation? | CREATE TABLE table_name_81 (audition_city VARCHAR, callback_venue VARCHAR) |
SELECT rounds FROM table_name_87 WHERE chassis = "thl2" | How many rounds have a chassis of thl2? | CREATE TABLE table_name_87 (rounds VARCHAR, chassis VARCHAR) |
SELECT AVG(pos) FROM table_name_82 WHERE car__number = 59 | What was the average position of car number 59? | CREATE TABLE table_name_82 (pos INTEGER, car__number VARCHAR) |
SELECT 2 AS nd_throw FROM table_17265535_7 WHERE equation = "1 × 9² + 4 × 9 + 0" | If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw? | CREATE TABLE table_17265535_7 (equation VARCHAR) |
SELECT iata FROM table_name_39 WHERE airport = "leonardo da vinci-fiumicino airport" | What is the IATA of Leonardo da Vinci-Fiumicino Airport? | CREATE TABLE table_name_39 (iata VARCHAR, airport VARCHAR) |
SELECT home_captain FROM table_name_13 WHERE venue = "oval" | Who was the Home captain that played at the venue Oval? | CREATE TABLE table_name_13 (home_captain VARCHAR, venue VARCHAR) |
SELECT agg FROM table_name_65 WHERE team_2 = "cementarnica" | When Cementarnica is team 2 what is the aggregate score? | CREATE TABLE table_name_65 (agg VARCHAR, team_2 VARCHAR) |
SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149" | what is june 10-11 when march 27-29 is 149? | CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT team FROM table_2208838_4 WHERE average = "20.4" | Which team had an average of 20.4? | CREATE TABLE table_2208838_4 (team VARCHAR, average VARCHAR) |
SELECT MAX(laps) FROM table_name_93 WHERE grid = 16 | What's the most laps when grid is 16? | CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR) |
SELECT date_of_vacancy FROM table_10592536_8 WHERE team = "Manchester City" AND replaced_by = "Mark Hughes" | What is the date of vacancy when the team is manchester city and replaced by is mark hughes? | CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR) |
SELECT MIN(week) FROM table_17861179_1 WHERE game_site = "Shea Stadium" | What is the week where the game site is Shea Stadium? | CREATE TABLE table_17861179_1 (week INTEGER, game_site VARCHAR) |
SELECT MIN(goals) FROM table_name_20 WHERE goal_ratio = 0.14 AND debut_in_europe < 1995 | What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995? | CREATE TABLE table_name_20 (goals INTEGER, goal_ratio VARCHAR, debut_in_europe VARCHAR) |
SELECT closure_date FROM table_name_70 WHERE region = "north east england" | What date was the ensemble in North East England closed? | CREATE TABLE table_name_70 (closure_date VARCHAR, region VARCHAR) |
SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0 | Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0? | CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR) |
SELECT country FROM table_name_99 WHERE player = "tom watson" | What is Country, when Player is "Tom Watson"? | CREATE TABLE table_name_99 (country VARCHAR, player VARCHAR) |
SELECT MAX(year_joined) FROM table_name_10 WHERE location = "crawfordsville" | When did crawfordsville join? | CREATE TABLE table_name_10 (year_joined INTEGER, location VARCHAR) |
SELECT MIN(population__2000_) FROM table_2144436_1 WHERE barangay = "Panlicsian" | What was the populati in 2000 for Panlicsian? | CREATE TABLE table_2144436_1 (population__2000_ INTEGER, barangay VARCHAR) |
SELECT AVG(UnitPrice) FROM TRACK | What is the average unit price of all the tracks? | CREATE TABLE TRACK (UnitPrice INTEGER) |
SELECT AVG(LifeExpectancy) FROM country WHERE Region = "Central Africa" | What is the average expected life expectancy for countries in the region of Central Africa? | CREATE TABLE country (LifeExpectancy INTEGER, Region VARCHAR) |
SELECT trofeo_fast_team FROM table_12261806_2 WHERE stage = "2" | Name the trofeo fast team of stage 2 | CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR) |
SELECT AVG(capacity) FROM stadium WHERE opening_year = 2005 | What is the average capacity of the stadiums that were opened in year 2005? | CREATE TABLE stadium (capacity INTEGER, opening_year VARCHAR) |
SELECT record FROM table_27723228_8 WHERE high_points = "Chris Paul (16)" | What was the record when chris paul (16) had the high points? | CREATE TABLE table_27723228_8 (record VARCHAR, high_points VARCHAR) |
SELECT AVG(year) FROM table_name_70 WHERE date = "february 24" | Which is the average year with the date of February 24? | CREATE TABLE table_name_70 (year INTEGER, date VARCHAR) |
SELECT home_team FROM table_name_67 WHERE venue = "glenferrie oval" | Which home team played at Glenferrie Oval? | CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(school) FROM table_11677100_17 WHERE player = "Bubba Starling" | How many schools did Bubba Starling attend? | CREATE TABLE table_11677100_17 (school VARCHAR, player VARCHAR) |
SELECT COUNT(track_no) FROM table_28715942_2 WHERE track = "Let Love Be Your Energy" | How many tracks have the title let love be your energy? | CREATE TABLE table_28715942_2 (track_no VARCHAR, track VARCHAR) |
SELECT number FROM table_name_77 WHERE position = "k" | What is the number for the player that has a k position? | CREATE TABLE table_name_77 (number VARCHAR, position VARCHAR) |
SELECT COUNT(attendance) FROM table_23718905_6 WHERE stadium = "Sun Devil stadium" | How many different items appear in he attendance column at Sun Devil Stadium? | CREATE TABLE table_23718905_6 (attendance VARCHAR, stadium VARCHAR) |
SELECT away_team AS score FROM table_name_38 WHERE home_team = "footscray" | What is the away side score when footscray is the home side? | CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR) |
SELECT name_of_deity FROM table_name_29 WHERE name_of_the_state_where_found_in_india = "bihar" | What is the name of the deity that the state of Bihar was named after? | CREATE TABLE table_name_29 (name_of_deity VARCHAR, name_of_the_state_where_found_in_india VARCHAR) |
SELECT date FROM table_name_58 WHERE score = "199 (–17)" | What is the Date of the tournament with a score of 199 (–17)? | CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR) |
SELECT launched FROM table_name_97 WHERE name = "minerva" | what builder launched the name minerva | CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR) |
SELECT sport FROM table_name_56 WHERE games = "1960 rome" AND event = "men's freestyle welterweight" | What sport in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight? | CREATE TABLE table_name_56 (sport VARCHAR, games VARCHAR, event VARCHAR) |
SELECT home FROM table_11964047_5 WHERE streak = "L3" AND leading_scorer = "Roy : 23" | what's the home team where streak is l3 and leading scorer is roy : 23 | CREATE TABLE table_11964047_5 (home VARCHAR, streak VARCHAR, leading_scorer VARCHAR) |
SELECT cyclist FROM table_name_85 WHERE nation = "belgium" | Who was the cyclist from Belgium? | CREATE TABLE table_name_85 (cyclist VARCHAR, nation VARCHAR) |
SELECT COUNT(company) FROM table_20174050_24 WHERE title = "Deadly Download" | how many companies released an audiobook titled deadly download | CREATE TABLE table_20174050_24 (company VARCHAR, title VARCHAR) |
SELECT AVG(number) FROM table_name_90 WHERE name = "cooper, c. kenneth" AND year_end > 1984 | Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984? | CREATE TABLE table_name_90 (number INTEGER, name VARCHAR, year_end VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.