answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT year FROM table_22298383_1 WHERE team = "Leo Jackson Racing" | What year did the Leo Jackson Racing team win? | CREATE TABLE table_22298383_1 (year VARCHAR, team VARCHAR) |
SELECT event FROM table_name_88 WHERE round > 2 | Which event has a Round larger than 2? | CREATE TABLE table_name_88 (event VARCHAR, round INTEGER) |
SELECT country FROM table_name_15 WHERE player = "gary koch" | What country does Gary Koch play for? | CREATE TABLE table_name_15 (country VARCHAR, player VARCHAR) |
SELECT venue FROM table_name_85 WHERE h_a_n = "neutral" AND pos < 3 AND score = "141" | Which venue has a neutral H/A/N, lower than position 3 and a score of 141? | CREATE TABLE table_name_85 (venue VARCHAR, score VARCHAR, h_a_n VARCHAR, pos VARCHAR) |
SELECT number FROM table_name_68 WHERE name_of_the_song = "實情" | What is the number of the song named 實情? | CREATE TABLE table_name_68 (number VARCHAR, name_of_the_song VARCHAR) |
SELECT opponent FROM table_1233808_2 WHERE record = "Biggest defeat" | Who was the opponent during the biggest defeat? | CREATE TABLE table_1233808_2 (opponent VARCHAR, record VARCHAR) |
SELECT COUNT(*) FROM Player WHERE HS > 1000 | How many players have more than 1000 hours of training? | CREATE TABLE Player (HS INTEGER) |
SELECT COUNT(distance___ly__) FROM table_1820752_1 WHERE spectral_type = "G1V" | If the spectral type is g1v, what is the total distance amount? | CREATE TABLE table_1820752_1 (distance___ly__ VARCHAR, spectral_type VARCHAR) |
SELECT place FROM table_name_84 WHERE player = "mark brooks" | What place did player mark brooks take? | CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR) |
SELECT home_team AS score FROM table_name_65 WHERE home_team = "footscray" | What did the home team footscray score? | CREATE TABLE table_name_65 (home_team VARCHAR) |
SELECT date FROM table_name_78 WHERE game = "game 7" | On what day was Game 7 of this season played? | CREATE TABLE table_name_78 (date VARCHAR, game VARCHAR) |
SELECT name FROM physician WHERE POSITION LIKE '%senior%' | Find the name of physicians whose position title contains the word 'senior'. | CREATE TABLE physician (name VARCHAR, POSITION VARCHAR) |
SELECT manufacturer FROM table_name_82 WHERE quantity_made = "6" AND quantity_preserved = "1" | What manufacturer made 6 and preserved 1? | CREATE TABLE table_name_82 (manufacturer VARCHAR, quantity_made VARCHAR, quantity_preserved VARCHAR) |
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' | Find the names of stadiums that some Australian swimmers have been to. | CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR) |
SELECT AVG(round) FROM table_name_43 WHERE circuit = "norisring" | What is the round for the Norisring circuit? | CREATE TABLE table_name_43 (round INTEGER, circuit VARCHAR) |
SELECT venue FROM table_name_29 WHERE away_team = "geelong" | What venue features geelong as the away side? | CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR) |
SELECT nationality FROM table_name_67 WHERE position = "center" AND player = "joakim andersson" | Where does center Joakim Andersson come from? | CREATE TABLE table_name_67 (nationality VARCHAR, position VARCHAR, player VARCHAR) |
SELECT manufacturer FROM table_name_68 WHERE rider = "makoto tamada" | Who manufactures Makoto Tamada's vehicle? | CREATE TABLE table_name_68 (manufacturer VARCHAR, rider VARCHAR) |
SELECT time___et__ FROM table_name_49 WHERE location = "memorial stadium" | What time did the game at memorial stadium take place? | CREATE TABLE table_name_49 (time___et__ VARCHAR, location VARCHAR) |
SELECT playoffs FROM table_name_88 WHERE year = "2011" | which playoffs took place during 2011? | CREATE TABLE table_name_88 (playoffs VARCHAR, year VARCHAR) |
SELECT l3_cache FROM table_name_88 WHERE sspec_number = "sr0r2(l1)sr0t6(l1)" | What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)? | CREATE TABLE table_name_88 (l3_cache VARCHAR, sspec_number VARCHAR) |
SELECT MIN(gold) FROM table_name_47 WHERE nation = "malaysia" AND silver < 0 | Which Gold has a Nation of malaysia, and a Silver smaller than 0? | CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT MIN(_number_number) FROM table_23018775_3 WHERE team = "team 3G" | What is tthe lowest number on team 3g? | CREATE TABLE table_23018775_3 (_number_number INTEGER, team VARCHAR) |
SELECT episode FROM table_name_64 WHERE year < 2004 AND nominee_s_ = "john wells" | When the nominee(s) is john wells what is the episode for a year before 2004? | CREATE TABLE table_name_64 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR) |
SELECT law_school_attended FROM table_name_14 WHERE appointed > 2004 AND name = "judge sheila abdus-salaam" | Which law school did judge sheila abdus-salaam attend, who was appointed in 2004? | CREATE TABLE table_name_14 (law_school_attended VARCHAR, appointed VARCHAR, name VARCHAR) |
SELECT aggregate FROM table_name_49 WHERE club = "ajax" | Which aggregate has ajax as the club? | CREATE TABLE table_name_49 (aggregate VARCHAR, club VARCHAR) |
SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = "Jagdgeschwader 26" | Name the aircraft type for jagdgeschwader 26 | CREATE TABLE table_28342423_1 (aircraft_type VARCHAR, parent_unit VARCHAR) |
SELECT tie_no FROM table_name_83 WHERE away_team = "hereford united" | What is the Tie no of Hereford United's Away game? | CREATE TABLE table_name_83 (tie_no VARCHAR, away_team VARCHAR) |
SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = "contact" AND laps = 71 | What team has 0 points and a contact tired/retired, and 71 laps? | CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR) |
SELECT COUNT(asian_team_classification) FROM table_21573750_2 WHERE asian_rider_classification = "Samai Amari" | When samai amari is the asian rider classification how many asian team classifications are there? | CREATE TABLE table_21573750_2 (asian_team_classification VARCHAR, asian_rider_classification VARCHAR) |
SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of edward viii" | Who was the brother of Edward VIII? | CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR) |
SELECT MAX(silver) FROM table_name_32 WHERE total < 1 | What is the highest number of silver medals for a team with total less than 1? | CREATE TABLE table_name_32 (silver INTEGER, total INTEGER) |
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki" | What was the surface type at Takao Suzuki? | CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR) |
SELECT method FROM table_name_53 WHERE time = "4:07" | What is the Method of the match with a Time of 4:07? | CREATE TABLE table_name_53 (method VARCHAR, time VARCHAR) |
SELECT surface FROM table_name_58 WHERE date = "24–25 apr" | Which surface has a Date of 24–25 apr? | CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR) |
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary" | For all games with calgary as home, what is the average number of attendees? | CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR) |
SELECT AVG(points_for) FROM table_name_72 WHERE points_against > 780 AND points < 0 | What is the average Points For when there are Points Against more than 780, and Points smaller than 0? | CREATE TABLE table_name_72 (points_for INTEGER, points_against VARCHAR, points VARCHAR) |
SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961" | Name the total number of Laps for year of 1961 | CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR) |
SELECT region FROM table_name_15 WHERE date = "early september 1999" | Which Region has a Date of early september 1999? | CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR) |
SELECT season FROM table_name_92 WHERE division_two = "fownhope reserves" | Which Season was the Division Two Fownhope Reserves champions? | CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR) |
SELECT prize FROM table_name_11 WHERE event = "ept sanremo" | What is the Prize, when the Event is Ept Sanremo? | CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR) |
SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford" | What was the total number for the Bulls when they were at Old Trafford? | CREATE TABLE table_name_27 (bulls VARCHAR, venue VARCHAR) |
SELECT tournament FROM table_name_55 WHERE score = "2–6, 6–4, 3–6" | What is the Tournament with a Score that is 2–6, 6–4, 3–6? | CREATE TABLE table_name_55 (tournament VARCHAR, score VARCHAR) |
SELECT arena__capacity_ FROM table_14015965_1 WHERE previous_season = "6" | What arena was season 6 played at? | CREATE TABLE table_14015965_1 (arena__capacity_ VARCHAR, previous_season VARCHAR) |
SELECT nat FROM table_name_39 WHERE ship_type = "battlecruiser" AND estimate = "513" | Which nation had a battlecruiser with an estimate of 513? | CREATE TABLE table_name_39 (nat VARCHAR, ship_type VARCHAR, estimate VARCHAR) |
SELECT coverage FROM table_name_5 WHERE frequency = "99.5mhz" | What is the coverage for the 99.5mhz frequency? | CREATE TABLE table_name_5 (coverage VARCHAR, frequency VARCHAR) |
SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS) | Show all the distinct product names with price higher than the average. | CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER) |
SELECT COUNT(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants" | What's the total attendance of games against the New York Giants after week 13? | CREATE TABLE table_name_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT name FROM table_1220125_4 WHERE launched = "30 September 1943" | What is the name for 30 september 1943? | CREATE TABLE table_1220125_4 (name VARCHAR, launched VARCHAR) |
SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = "16377-9" | How many figures are there for wheels for LMS numbers 16377-9? | CREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR) |
SELECT live + 7 AS _day_dvr_total_viewers FROM table_24222929_3 WHERE share = "8" | How many total viewers (combined Live and SD) watched the episode with a share of 8? | CREATE TABLE table_24222929_3 (live VARCHAR, share VARCHAR) |
SELECT MIN(assists) FROM table_name_37 WHERE league = "wchl" AND goals < 65 | In the WCHL League, what is the last Assists with less than 65 Goals? | CREATE TABLE table_name_37 (assists INTEGER, league VARCHAR, goals VARCHAR) |
SELECT DISTINCT template_type_code FROM Templates | Show all distinct template type codes for all templates. | CREATE TABLE Templates (template_type_code VARCHAR) |
SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012" | Which player has less than 201 games, is ranked 2, and played between 2007-2012? | CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR) |
SELECT MAX(points) FROM table_29572583_19 WHERE rank = 17 | How many points are listed when the rank is 17? | CREATE TABLE table_29572583_19 (points INTEGER, rank VARCHAR) |
SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id | Which professional did not operate any treatment on dogs? List the professional's id, role and email. | CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, email_address VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) |
SELECT MAX(no_in_season) FROM table_2226817_8 WHERE production_code = "7.01" | How many seasons have the production code 7.01 for an episode? | CREATE TABLE table_2226817_8 (no_in_season INTEGER, production_code VARCHAR) |
SELECT type FROM table_name_27 WHERE eu_council_presidency = "uk" AND president_in_office = "john major" | What is the type for EU Council Presidency of UK and John Major as President-in-Office? | CREATE TABLE table_name_27 (type VARCHAR, eu_council_presidency VARCHAR, president_in_office VARCHAR) |
SELECT winner FROM table_23157997_13 WHERE mountains_classification = "Tom Zirbel" AND points_classification = "Thomas Soladay" | Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification? | CREATE TABLE table_23157997_13 (winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) |
SELECT party FROM table_26129220_2 WHERE district = 27 | What is the party for district 27? | CREATE TABLE table_26129220_2 (party VARCHAR, district VARCHAR) |
SELECT d_47_o FROM table_name_80 WHERE d_48_o = "r 9" | Name the D 47 O with D 48 O of r 9 | CREATE TABLE table_name_80 (d_47_o VARCHAR, d_48_o VARCHAR) |
SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts" | Name the venue for eng by 6 wkts | CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR) |
SELECT COUNT(week) FROM table_name_17 WHERE date = "december 18, 1960" | What is the Week number on December 18, 1960? | CREATE TABLE table_name_17 (week VARCHAR, date VARCHAR) |
SELECT SUM(points) FROM table_name_65 WHERE entrant = "escuderia bandeirantes" AND year < 1952 | What is the number of points for the Entrant of escuderia bandeirantes earlier than 1952? | CREATE TABLE table_name_65 (points INTEGER, entrant VARCHAR, year VARCHAR) |
SELECT original_artist FROM table_29756040_1 WHERE order__number = "1" | Which artists have order # 1? | CREATE TABLE table_29756040_1 (original_artist VARCHAR, order__number VARCHAR) |
SELECT party FROM table_1342233_5 WHERE first_elected > 1939.0 | Which party has a first elected number bigger than 1939.0? | CREATE TABLE table_1342233_5 (party VARCHAR, first_elected INTEGER) |
SELECT opponent FROM table_27539535_5 WHERE record = "5-18-5" | Against what team did the Islanders have a 5-18-5 record? | CREATE TABLE table_27539535_5 (opponent VARCHAR, record VARCHAR) |
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13 | What is the rank number with 562-506 goals before season 13? | CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR) |
SELECT disposition_of_ship FROM table_name_37 WHERE tonnage = "t" AND ship_name = "bacchus" | The ship named Bacchus with a tonnage of t had what disposition of ship? | CREATE TABLE table_name_37 (disposition_of_ship VARCHAR, tonnage VARCHAR, ship_name VARCHAR) |
SELECT candidates FROM table_1342393_17 WHERE incumbent = "James O'Connor" | who is the the candidates with incumbent being james o'connor | CREATE TABLE table_1342393_17 (candidates VARCHAR, incumbent VARCHAR) |
SELECT AVG(year) FROM table_name_28 WHERE country = "u.s." AND location = "edmond , ok" | What is the average Year, when Country is "U.S.", and when Location is "Edmond , OK"? | CREATE TABLE table_name_28 (year INTEGER, country VARCHAR, location VARCHAR) |
SELECT nfl_team FROM table_10650711_1 WHERE player = "Clifford Charlton" | what's the nfl team where player is clifford charlton | CREATE TABLE table_10650711_1 (nfl_team VARCHAR, player VARCHAR) |
SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12" | Which Winner has a Score of 1 – 0, and a Season of 2011–12? | CREATE TABLE table_name_30 (winner VARCHAR, score VARCHAR, season VARCHAR) |
SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative" | What are the market city/market(s) for Rapid City Alternative format? | CREATE TABLE table_134987_3 (target_city__market VARCHAR, city_of_license VARCHAR, format VARCHAR) |
SELECT event FROM table_name_70 WHERE position = "8th" | What is the event that is in 8th position? | CREATE TABLE table_name_70 (event VARCHAR, position VARCHAR) |
SELECT location FROM table_16078390_2 WHERE team_nickname = "Wolves" | Where is the university located that's nicknamed the Wolves? | CREATE TABLE table_16078390_2 (location VARCHAR, team_nickname VARCHAR) |
SELECT date FROM table_name_21 WHERE circuit = "winton motor raceway" | What's the date of the circuit Winton Motor Raceway? | CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR) |
SELECT away_team FROM table_name_16 WHERE home_team = "carlton" | Who was Carlton's away team opponents? | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) |
SELECT away_team AS score FROM table_name_41 WHERE away_team = "fitzroy" | I want the away team score for away team of fitzroy | CREATE TABLE table_name_41 (away_team VARCHAR) |
SELECT artist FROM table_name_50 WHERE issue_price = "$49.95" AND year = 2010 | Who was the artist that had $49.95 as the issue price for the 2010 year? | CREATE TABLE table_name_50 (artist VARCHAR, issue_price VARCHAR, year VARCHAR) |
SELECT venue FROM table_name_21 WHERE tickets_sold___available = "4,700 / 4,700 (100%)" | Which Venue has an amount of Tickets Sold/ Available of 4,700 / 4,700 (100%)? | CREATE TABLE table_name_21 (venue VARCHAR, tickets_sold___available VARCHAR) |
SELECT currency FROM table_2764267_2 WHERE negotiable_debt_at_mid_2005___us_dollar_bn_equivalent_ = 1300 | Name the currency for negotiable debt being 1300 | CREATE TABLE table_2764267_2 (currency VARCHAR, negotiable_debt_at_mid_2005___us_dollar_bn_equivalent_ VARCHAR) |
SELECT AVG(start_term) FROM table_name_58 WHERE end_term = 1912 | What is the average Start term with a 1912 end term? | CREATE TABLE table_name_58 (start_term INTEGER, end_term VARCHAR) |
SELECT COUNT(premiere) FROM table_11926114_1 WHERE english_title = "Survivor's Law II" | How many premier episodes were there with the title survivor's law ii? | CREATE TABLE table_11926114_1 (premiere VARCHAR, english_title VARCHAR) |
SELECT result FROM table_1341897_6 WHERE district = "Arkansas 5" | What was the result in the Arkansas 5 district election? | CREATE TABLE table_1341897_6 (result VARCHAR, district VARCHAR) |
SELECT date FROM table_name_55 WHERE goal = 3 | Which date has 3 as the goal? | CREATE TABLE table_name_55 (date VARCHAR, goal VARCHAR) |
SELECT home_town FROM table_12032893_1 WHERE high_school = "Catholic University" | Which home town was the high school Catholic University located in? | CREATE TABLE table_12032893_1 (home_town VARCHAR, high_school VARCHAR) |
SELECT week FROM table_name_16 WHERE finalist = "marcelo ríos" | what is the week when the finalist is marcelo ríos? | CREATE TABLE table_name_16 (week VARCHAR, finalist VARCHAR) |
SELECT result FROM table_name_19 WHERE year > 1997 AND competition = "world group, semifinals" | what is the result for the world group, semifinals after the year 1997? | CREATE TABLE table_name_19 (result VARCHAR, year VARCHAR, competition VARCHAR) |
SELECT MAX(goals) FROM table_name_91 WHERE minutes = 2428 | What was the highest number of goals when 2428 minutes were played? | CREATE TABLE table_name_91 (goals INTEGER, minutes VARCHAR) |
SELECT runner_s__up FROM table_name_19 WHERE margin_of_victory = "3 strokes" AND winning_score = –6(65 - 70 - 70 - 69 = 274) | Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes? | CREATE TABLE table_name_19 (runner_s__up VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT MAX(round) FROM table_name_77 WHERE opponent = "jr schumacher" | What is the highest round reached by an oppo ent of JR schumacher? | CREATE TABLE table_name_77 (round INTEGER, opponent VARCHAR) |
SELECT COUNT(team_coxy) FROM table_25816476_2 WHERE air_date = "24 January 2010" AND team_guest_captain = "Gail Porter" | How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter? | CREATE TABLE table_25816476_2 (team_coxy VARCHAR, air_date VARCHAR, team_guest_captain VARCHAR) |
SELECT home FROM table_name_7 WHERE record = "4-3" | What home team has a record of 4-3? | CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR) |
SELECT visitor FROM table_name_98 WHERE date = "23 november 2007" | Who is the visitor team on 23 November 2007? | CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR) |
SELECT COUNT(rank) FROM table_name_46 WHERE name = "ku hyo-jin" | What did Ku Hyo-Jin rank? | CREATE TABLE table_name_46 (rank VARCHAR, name VARCHAR) |
SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny" | Who is the winner who attended college at Connecticut and is from North Syracuse, NY? | CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_22879323_10 WHERE date = "April 7" | How many high rebounds were there on April 7? | CREATE TABLE table_22879323_10 (high_rebounds VARCHAR, date VARCHAR) |
SELECT season FROM table_name_29 WHERE country = "belgium" AND goals = "1" | What season had Belgium and 1 goal? | CREATE TABLE table_name_29 (season VARCHAR, country VARCHAR, goals VARCHAR) |
SELECT venue FROM table_name_24 WHERE league = "ncaa" AND founded < 1965 AND club = "penn state nittany lions men's ice hockey" | Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey? | CREATE TABLE table_name_24 (venue VARCHAR, club VARCHAR, league VARCHAR, founded VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.