answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT pole_position FROM table_name_86 WHERE grand_prix = "french grand prix" | CREATE TABLE table_name_86 (pole_position VARCHAR, grand_prix VARCHAR) | Who had the pole at the French Grand Prix? |
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix" | CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR) | Who constructed the car that won the Canadian Grand Prix? |
SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher" | CREATE TABLE table_name_18 (fastest_lap VARCHAR, winning_driver VARCHAR) | When Michael Schumacher won the race, who had the fastest lap? |
SELECT school FROM table_name_72 WHERE college = "kentucky" AND height = "6-7" | CREATE TABLE table_name_72 (school VARCHAR, college VARCHAR, height VARCHAR) | For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School? |
SELECT school FROM table_name_40 WHERE player = "terrence jones" | CREATE TABLE table_name_40 (school VARCHAR, player VARCHAR) | What School did Terrence Jones play for? |
SELECT player FROM table_name_42 WHERE height = "6-3" | CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR) | What Player(s) have a Height of 6-3? |
SELECT nba_draft FROM table_name_41 WHERE height = "6-9" AND college = "kentucky" | CREATE TABLE table_name_41 (nba_draft VARCHAR, height VARCHAR, college VARCHAR) | For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft? |
SELECT score FROM table_name_84 WHERE date = "february 9" | CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) | What was the score on February 9? |
SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983 | CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR) | What is the average point total for arrows racing team before 1983? |
SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" | CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR) | What team has jordan 193 chassis after 1990? |
SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8" | CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR) | How many points for the cosworth v8 engine after 1985? |
SELECT constructor FROM table_name_6 WHERE grid < 2 | CREATE TABLE table_name_6 (constructor VARCHAR, grid INTEGER) | What is the constructor for the driver with grid less than 2? |
SELECT position FROM table_name_12 WHERE player = "aaron williams" | CREATE TABLE table_name_12 (position VARCHAR, player VARCHAR) | What Position did Aaron Williams play? |
SELECT years_for_jazz FROM table_name_43 WHERE position = "guard" AND school_club_team = "notre dame" | CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, school_club_team VARCHAR) | At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play? |
SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield" | CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR) | Which School/Club Team did Andre Wakefield play for? |
SELECT nationality FROM table_name_59 WHERE position = "guard" AND school_club_team = "notre dame" | CREATE TABLE table_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame? |
SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" | CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) | What School/Club Team is Player Howard Wood from? |
SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams" | CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR) | What School/Club Team is Player Aaron Williams from? |
SELECT street_address FROM table_name_9 WHERE floors = "5" | CREATE TABLE table_name_9 (street_address VARCHAR, floors VARCHAR) | What is the street address of the building with 5 floors? |
SELECT street_address FROM table_name_94 WHERE floors = "40" | CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR) | What is the street address of the building with 40 floors? |
SELECT years_as_tallest FROM table_name_53 WHERE floors = "44" | CREATE TABLE table_name_53 (years_as_tallest VARCHAR, floors VARCHAR) | What were the years the building with 44 floors was tallest? |
SELECT street_address FROM table_name_20 WHERE name = "oliver building" | CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR) | What is the street address of Oliver Building? |
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north" | CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR) | Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north? |
SELECT MIN(rank) FROM table_name_64 WHERE constituency = "strathkelvin and bearsden" | CREATE TABLE table_name_64 (rank INTEGER, constituency VARCHAR) | Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden? |
SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" | CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR) | Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross? |
SELECT time_retired FROM table_name_59 WHERE laps = 75 | CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) | What's the Time/Retired of Laps of 75? |
SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = "+ 1:09.4" | CREATE TABLE table_name_99 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) | Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4? |
SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4 | CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR) | Hows many Laps are in a Grid of 4? |
SELECT venue FROM table_name_42 WHERE away_team = "collingwood" | CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) | What venue did the away team Collingwood play at? |
SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia park" | CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) | What is the score of the away team that played at Kardinia Park? |
SELECT away_team FROM table_name_2 WHERE venue = "kardinia park" | CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR) | What is the name of the away team that played at Kardinia Park? |
SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye" | CREATE TABLE table_name_40 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) | What is the attendance in the bye week after week 5? |
SELECT location FROM table_name_1 WHERE time = "1:59:12" | CREATE TABLE table_name_1 (location VARCHAR, time VARCHAR) | What location had 1:59:12 in time? |
SELECT away_team AS score FROM table_name_79 WHERE away_team = "north melbourne" | CREATE TABLE table_name_79 (away_team VARCHAR) | What is the score for the away team of north melbourne? |
SELECT home_team FROM table_name_46 WHERE venue = "victoria park" | CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR) | Which home team plays at victoria park? |
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913 | CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR) | what is the competition for the event team all-round in the year before 1913? |
SELECT event FROM table_name_60 WHERE year < 1913 AND position = "2nd" | CREATE TABLE table_name_60 (event VARCHAR, year VARCHAR, position VARCHAR) | what is the event for the year less than 1913 with the position of 2nd? |
SELECT competition FROM table_name_8 WHERE venue = "paris" AND position = "1st" AND event = "parallel bars" | CREATE TABLE table_name_8 (competition VARCHAR, event VARCHAR, venue VARCHAR, position VARCHAR) | what is the competition in paris for the parallel bars with a position of 1st? |
SELECT competition FROM table_name_78 WHERE year > 1911 AND position = "1st" AND event = "rings" | CREATE TABLE table_name_78 (competition VARCHAR, event VARCHAR, year VARCHAR, position VARCHAR) | what is the competition in a year after 1911 with the position of 1st for the rings? |
SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris" | CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR) | what is the year that the position was 1st in paris? |
SELECT home_team FROM table_name_16 WHERE venue = "mcg" | CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) | Which team plays their home matches at the mcg Venue? |
SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007" | CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR) | What host has an original air date of june 11, 2007? |
SELECT location FROM table_name_96 WHERE record = "3-2" | CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR) | Where is the location of a team with a 3-2 record? |
SELECT res FROM table_name_67 WHERE record = "4-2" | CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR) | What is the result of the team with the 4-2 record? |
SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda" | CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) | What was St Kilda's away team score? |
SELECT AVG(crowd) FROM table_name_41 WHERE venue = "moorabbin oval" | CREATE TABLE table_name_41 (crowd INTEGER, venue VARCHAR) | What was the attendance at Moorabbin Oval? |
SELECT away_team FROM table_name_48 WHERE home_team = "melbourne" | CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR) | Who was Melbourne's away team opponent? |
SELECT crowd FROM table_name_19 WHERE away_team = "footscray" | CREATE TABLE table_name_19 (crowd VARCHAR, away_team VARCHAR) | What was the attendance at the Footscray away game? |
SELECT competition FROM table_name_54 WHERE date = "14 june 2008" | CREATE TABLE table_name_54 (competition VARCHAR, date VARCHAR) | Tell me the competition that happened on 14 june 2008 |
SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's" | CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR) | Tell me the score for Venue of tanteen recreation ground, st. george's |
SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008" | CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR) | How many weeks are associated with Season 3 – spring 2008? |
SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski" | CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR) | Who won when robert kudelski finished with under 13 weeks? |
SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3" | CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR) | What is the average attendance when Brewers are the opponent with a score of 6–3? |
SELECT loss FROM table_name_81 WHERE date = "june 10" | CREATE TABLE table_name_81 (loss VARCHAR, date VARCHAR) | What loss occurred on June 10? |
SELECT opponent FROM table_name_36 WHERE score = "5–4" | CREATE TABLE table_name_36 (opponent VARCHAR, score VARCHAR) | Who is the opponent with a score of 5–4? |
SELECT week FROM table_name_70 WHERE result = "w 28-17" | CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR) | What is the week for Result of w 28-17? |
SELECT AVG(attendance) FROM table_name_45 WHERE date = "october 26, 1947" | CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR) | What is the avarage Attendance for the Date of october 26, 1947? |
SELECT years FROM table_name_70 WHERE name = "arapohue school" | CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR) | Can you tell me the Years that has the Name of arapohue school? |
SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86 | CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR) | Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86? |
SELECT COUNT(roll) FROM table_name_95 WHERE area = "aranga" | CREATE TABLE table_name_95 (roll VARCHAR, area VARCHAR) | Can you tell me the total number of Roll that has the Area of aranga? |
SELECT name FROM table_name_95 WHERE roll > 419 | CREATE TABLE table_name_95 (name VARCHAR, roll INTEGER) | Can you tell me the Name that has the Roll larger than 419? |
SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448 | CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) | Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? |
SELECT attendance FROM table_name_70 WHERE result = "w 51-21" | CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR) | Which Attendance has a Result of w 51-21? |
SELECT away_team FROM table_name_98 WHERE venue = "arden street oval" | CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR) | Who was the Away team at Arden Street Oval? |
SELECT AVG(top_25) FROM table_name_27 WHERE wins > 0 | CREATE TABLE table_name_27 (top_25 INTEGER, wins INTEGER) | What is the average top-25 value for majors that have more than 0 wins? |
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 | CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR) | What is the most number of cuts made that had more than 7 events played and more than 2 top-25s? |
SELECT AVG(cuts_made) FROM table_name_54 WHERE top_25 < 2 | CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 INTEGER) | For top-25 values under 2, what is the average number of cuts made? |
SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th" | CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR) | With a dail of 24th and more than 57 seats, what is the election? |
SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166 | CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR) | with shares of 45.3% and total seats less than 166. what is the greatest number of seat? |
SELECT MAX(total_seats) FROM table_name_82 WHERE seats = 77 AND share_of_votes = "44.2%" | CREATE TABLE table_name_82 (total_seats INTEGER, seats VARCHAR, share_of_votes VARCHAR) | with a share of 44.2% and 77 seats, what is the greatest seat total? |
SELECT long FROM table_name_60 WHERE year = "1994" | CREATE TABLE table_name_60 (long VARCHAR, year VARCHAR) | What is the long in 1994? |
SELECT team FROM table_name_6 WHERE long = "67" | CREATE TABLE table_name_6 (team VARCHAR, long VARCHAR) | Which team has a long of 67? |
SELECT ravg FROM table_name_27 WHERE ratt = "9" | CREATE TABLE table_name_27 (ravg VARCHAR, ratt VARCHAR) | What is the RAvg of the year with Ratt of 9? |
SELECT ratt FROM table_name_97 WHERE long = "78" | CREATE TABLE table_name_97 (ratt VARCHAR, long VARCHAR) | What is the Ratt of the year with a 78 long? |
SELECT team FROM table_name_64 WHERE ravg = "1.3" | CREATE TABLE table_name_64 (team VARCHAR, ravg VARCHAR) | Which team has a Ravg of 1.3? |
SELECT rate FROM table_name_55 WHERE year = "17 years" | CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR) | What is the rate of 17 years? |
SELECT samurai FROM table_name_97 WHERE stampede = "t. mask" | CREATE TABLE table_name_97 (samurai VARCHAR, stampede VARCHAR) | Name the samurai for stampede of t. mask |
SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18" | CREATE TABLE table_name_3 (series VARCHAR, home VARCHAR, date VARCHAR) | Which series is based in Toronto on may 18? |
SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22" | CREATE TABLE table_name_43 (attendance INTEGER, home VARCHAR, date VARCHAR) | What is the combined crowd in Vancouver on may 22? |
SELECT 2012 FROM table_name_82 WHERE 2005 = "314" | CREATE TABLE table_name_82 (Id VARCHAR) | Tell me the 2012 when 2005 is 314 |
SELECT position FROM table_name_85 WHERE caps = 13 | CREATE TABLE table_name_85 (position VARCHAR, caps VARCHAR) | What position does the player with 13 caps play? |
SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald" | CREATE TABLE table_name_30 (caps INTEGER, player VARCHAR) | How many caps for mike macdonald? |
SELECT position FROM table_name_1 WHERE round < 3 | CREATE TABLE table_name_1 (position VARCHAR, round INTEGER) | Tell me the position for round less than 3 |
SELECT nationality FROM table_name_19 WHERE position = "d" | CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR) | Name the nationality for d |
SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red" | CREATE TABLE table_name_15 (fuel__trans VARCHAR, colour VARCHAR) | What sort of Fuel/Trans does the Grey & Red locomotive have? |
SELECT status FROM table_name_34 WHERE name = "the cub/john" | CREATE TABLE table_name_34 (status VARCHAR, name VARCHAR) | What is the status of the Cub/John locomotive? |
SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric" | CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR) | What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric? |
SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service" | CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR) | What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service? |
SELECT colour FROM table_name_42 WHERE built = "minirail 1954" | CREATE TABLE table_name_42 (colour VARCHAR, built VARCHAR) | What is the color of the locomotive built by Minirail 1954? |
SELECT COUNT(round) FROM table_name_65 WHERE res = "win" AND event = "sf 5: stadium" | CREATE TABLE table_name_65 (round VARCHAR, res VARCHAR, event VARCHAR) | What's the total number of rounds with a win result at the sf 5: stadium event? |
SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado" | CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) | What location was fábio maldonado the opponent at? |
SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4 | CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR) | How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4? |
SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 5 | CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR) | What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5? |
SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r" | CREATE TABLE table_name_69 (tournament VARCHAR) | What tournament is listed as A in 1972 and 2R in 1975? |
SELECT career_w_l FROM table_name_82 WHERE 1976 = "a" | CREATE TABLE table_name_82 (career_w_l VARCHAR) | What is theW-L of the tournament listed as A for 1976? |
SELECT 1977 FROM table_name_12 WHERE tournament = "us open" | CREATE TABLE table_name_12 (tournament VARCHAR) | What is the listing for the US Open in 1977? |
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r" | CREATE TABLE table_name_23 (career_w_l VARCHAR) | What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974? |
SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" | CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR) | What is the combined consumption of 1.6 16v? |
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque" | CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR) | What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code? |
SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796" | CREATE TABLE table_name_85 (combined_consumption VARCHAR, code VARCHAR) | What is the combined consumption of the engine with the code k9k 796? |
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.