answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT away_team FROM table_name_41 WHERE home_team = "footscray" | Which team played Footscray? | CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR) |
SELECT school_club_team FROM table_10015132_7 WHERE player = "Rudy Gay" | what school is rudy gay from | CREATE TABLE table_10015132_7 (school_club_team VARCHAR, player VARCHAR) |
SELECT team_captain FROM table_name_42 WHERE stadium = "regenboogstadion" | Who is the team captain of Regenboogstadion? | CREATE TABLE table_name_42 (team_captain VARCHAR, stadium VARCHAR) |
SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0 | Which Time/Retired has Laps smaller than 100, and Points larger than 0? | CREATE TABLE table_name_99 (time_retired VARCHAR, laps VARCHAR, points VARCHAR) |
SELECT second FROM table_name_54 WHERE nation = "france" | When did France come in second? | CREATE TABLE table_name_54 (second VARCHAR, nation VARCHAR) |
SELECT province FROM table_name_56 WHERE icao = "vmmc" | which Province has a ICAO of vmmc? | CREATE TABLE table_name_56 (province VARCHAR, icao VARCHAR) |
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps" | What pick number was marc deschamps? | CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR) |
SELECT favorite_professional_sport FROM table_name_91 WHERE 2005 = "17.1%" | What is listed the Favorite Professional Sport that's got a 2005 of 17.1%? | CREATE TABLE table_name_91 (favorite_professional_sport VARCHAR) |
SELECT SUM(silver) FROM table_name_99 WHERE rank = 3 AND nation = "france" AND bronze < 0 | what is the sum of silver when the rank is 3, nation is france and bronze is less than 0? | CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR) |
SELECT date FROM table_name_64 WHERE circuit = "wanneroo park" | What date is the circuit at wanneroo park? | CREATE TABLE table_name_64 (date VARCHAR, circuit VARCHAR) |
SELECT tv_season FROM table_name_4 WHERE season > 2 AND ranking = "#5" | Which TV season has a Season larger than 2, and a Ranking of #5? | CREATE TABLE table_name_4 (tv_season VARCHAR, season VARCHAR, ranking VARCHAR) |
SELECT MIN(samples_taken) FROM table_18943444_1 WHERE product = "蒙牛牌嬰幼兒配方乳粉" | What is the smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ? | CREATE TABLE table_18943444_1 (samples_taken INTEGER, product VARCHAR) |
SELECT constructor FROM table_name_87 WHERE grid = 17 | Which Constructor has a Grid of 17? | CREATE TABLE table_name_87 (constructor VARCHAR, grid VARCHAR) |
SELECT date FROM table_name_28 WHERE location = "zurich" AND result = 10.07 | When was Steve Williams in Zurich and his result was 10.07? | CREATE TABLE table_name_28 (date VARCHAR, location VARCHAR, result VARCHAR) |
SELECT occupation FROM table_name_90 WHERE residence = "red bank" | What job is at red bank? | CREATE TABLE table_name_90 (occupation VARCHAR, residence VARCHAR) |
SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4" | What is the result of the away game played on August 4? | CREATE TABLE table_name_15 (result VARCHAR, home_away VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_76 WHERE away_team = "st kilda" | Name the venue where St Kilda was the opposing away team | CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) |
SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls" | Where is runner-up Betsy Rawls from? | CREATE TABLE table_name_76 (location VARCHAR, runner_s__up VARCHAR) |
SELECT market_value__billion_$_ FROM table_1682026_6 WHERE sales__billion_$_ = "172.7" | What is the market value of a company in billions that has 172.7 billion in sales? | CREATE TABLE table_1682026_6 (market_value__billion_$_ VARCHAR, sales__billion_$_ VARCHAR) |
SELECT writer_s_ FROM table_name_57 WHERE recipient = "parkville pictures ltd" | Who was the writer when Parkville Pictures Ltd was the recipient? | CREATE TABLE table_name_57 (writer_s_ VARCHAR, recipient VARCHAR) |
SELECT venue FROM table_name_94 WHERE team = "belshina" | what is the venue of belshina | CREATE TABLE table_name_94 (venue VARCHAR, team VARCHAR) |
SELECT date FROM table_name_97 WHERE format = "stereo lp" | Which date is in stereo lp format? | CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR) |
SELECT total_trips__am_pm_ FROM table_name_47 WHERE operated_by = "atlantic coast charters" | What trips are operated by Atlantic coast charters? | CREATE TABLE table_name_47 (total_trips__am_pm_ VARCHAR, operated_by VARCHAR) |
SELECT date FROM table_17972193_1 WHERE opponent = "at Los Angeles Rams" | When was the game played when the opponent was 'at Los Angeles Rams'? | CREATE TABLE table_17972193_1 (date VARCHAR, opponent VARCHAR) |
SELECT start_date_of__first__term FROM table_25182437_1 WHERE date_of_birth = "1961-08-09 9 August 1961" | If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term? | CREATE TABLE table_25182437_1 (start_date_of__first__term VARCHAR, date_of_birth VARCHAR) |
SELECT party FROM table_1342256_5 WHERE incumbent = "Clyde T. Ellis" | What party does clyde t. ellis represent? | CREATE TABLE table_1342256_5 (party VARCHAR, incumbent VARCHAR) |
SELECT song_title FROM table_29547777_1 WHERE result__placement_ = "to the Live Shows" | What the title of the song when the result is to the live shows? | CREATE TABLE table_29547777_1 (song_title VARCHAR, result__placement_ VARCHAR) |
SELECT 2011 FROM table_name_24 WHERE tournament = "indian wells" | Which 2011's tournament was Indian Wells? | CREATE TABLE table_name_24 (tournament VARCHAR) |
SELECT date FROM table_name_17 WHERE tie_no = "15" | When has a Tie no of 15? | CREATE TABLE table_name_17 (date VARCHAR, tie_no VARCHAR) |
SELECT race_name FROM table_name_50 WHERE circuit = "pergusa" | What is the name of the race that has the pergusa Circuit? | CREATE TABLE table_name_50 (race_name VARCHAR, circuit VARCHAR) |
SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b" | What were the remarks for the coach having a class from 1928 of Cid-21B? | CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR) |
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara") | display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR) |
SELECT wheel_arrangement FROM table_name_1 WHERE year_made = "1910" | What wheel arrangement was made in 1910? | CREATE TABLE table_name_1 (wheel_arrangement VARCHAR, year_made VARCHAR) |
SELECT league_goals FROM table_name_39 WHERE fa_cup_apps = 2 | Which league goals has FA cup apps of 2? | CREATE TABLE table_name_39 (league_goals VARCHAR, fa_cup_apps VARCHAR) |
SELECT SUM(year) FROM table_name_85 WHERE class = "350cc" AND rank = "16th" AND wins > 0 | What year was she on a 350cc class bike, ranked 16th, with over 0 wins? | CREATE TABLE table_name_85 (year INTEGER, wins VARCHAR, class VARCHAR, rank VARCHAR) |
SELECT actor FROM table_name_66 WHERE character = "glen cole" | What actor plays glen cole? | CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR) |
SELECT rounds FROM table_name_27 WHERE driver = "frédéric vervisch" | How many rounds did frédéric vervisch go? | CREATE TABLE table_name_27 (rounds VARCHAR, driver VARCHAR) |
SELECT competition FROM table_name_77 WHERE venue = "stavanger" | What competition was contested at stavanger? | CREATE TABLE table_name_77 (competition VARCHAR, venue VARCHAR) |
SELECT location FROM table_name_57 WHERE students = "na" AND year_opened = "2005" | What location was the campus opened in 2005 with students listed as na? | CREATE TABLE table_name_57 (location VARCHAR, students VARCHAR, year_opened VARCHAR) |
SELECT AVG(laps) FROM table_name_67 WHERE time_retired = "+1:05.564" | What is the mean number of laps where time/retired was +1:05.564? | CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR) |
SELECT polling_institute FROM table_name_1 WHERE lead = "6%" | Which polling institute showed a lead of 6%? | CREATE TABLE table_name_1 (polling_institute VARCHAR, lead VARCHAR) |
SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = "14-04-1907" | What is the total number of goals on the debut date of 14-04-1907? | CREATE TABLE table_11585313_1 (number_of_goals VARCHAR, date_of_debut VARCHAR) |
SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama" | Name the broadcast day and timings for tv saitama | CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR) |
SELECT AVG(game) FROM table_name_17 WHERE opponent = "@ florida panthers" AND record = "0-1-2" AND october > 8 | What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8? | CREATE TABLE table_name_17 (game INTEGER, october VARCHAR, opponent VARCHAR, record VARCHAR) |
SELECT route_of_administration FROM table_name_4 WHERE status = "several ongoing and complete" | What is the route of administration that has several ongoing and complete? | CREATE TABLE table_name_4 (route_of_administration VARCHAR, status VARCHAR) |
SELECT district FROM table_2668387_18 WHERE candidates = "John Randolph (DR)" | Name the district for john randolph (dr) | CREATE TABLE table_2668387_18 (district VARCHAR, candidates VARCHAR) |
SELECT english_title FROM table_name_21 WHERE director = "jayme monjardim" | What is the English title of the film Directed by Jayme Monjardim? | CREATE TABLE table_name_21 (english_title VARCHAR, director VARCHAR) |
SELECT opponent FROM table_name_89 WHERE record = "61-57" | Who was the opponent when the record was 61-57? | CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR) |
SELECT cfl_team FROM table_10812938_4 WHERE position = "OL" | Which CFL Teams drafted an OL in 2006? | CREATE TABLE table_10812938_4 (cfl_team VARCHAR, position VARCHAR) |
SELECT accession_number FROM table_27155678_2 WHERE sequence_similarity = 54 | Name the accession number for sequence similarity being 54 | CREATE TABLE table_27155678_2 (accession_number VARCHAR, sequence_similarity VARCHAR) |
SELECT * FROM swimmer | Find all details for each swimmer. | CREATE TABLE swimmer (Id VARCHAR) |
SELECT athlete FROM table_name_67 WHERE run_2 = 50.67 | Who had a run 2 of 50.67? | CREATE TABLE table_name_67 (athlete VARCHAR, run_2 VARCHAR) |
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | Which authors belong to the institution "Google"? Show the first names and last names. | CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR) |
SELECT catalog FROM table_name_72 WHERE date > 2004 | Tell me the catalog for date larger than 2004 | CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER) |
SELECT timeslot FROM table_name_21 WHERE calls = "wrko" | Tell me the timeslot of calls of wrko | CREATE TABLE table_name_21 (timeslot VARCHAR, calls VARCHAR) |
SELECT Title FROM ALBUM ORDER BY Title | Please list all album titles in alphabetical order. | CREATE TABLE ALBUM (Title VARCHAR) |
SELECT date FROM table_name_98 WHERE venue = "mcg" | What date was the match at mcg played? | CREATE TABLE table_name_98 (date VARCHAR, venue VARCHAR) |
SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date | Find the total number of tours for each ranking date. | CREATE TABLE rankings (ranking_date VARCHAR, tours INTEGER) |
SELECT away_team FROM table_name_27 WHERE tie_no = "7" | Which away team that had a tie of 7? | CREATE TABLE table_name_27 (away_team VARCHAR, tie_no VARCHAR) |
SELECT members_added FROM table_27671835_3 WHERE conference = "NCHC (men only)" | How many members were added at the nchc (men only) conference? | CREATE TABLE table_27671835_3 (members_added VARCHAR, conference VARCHAR) |
SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk" | Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk? | CREATE TABLE table_name_35 (rank VARCHAR, goals VARCHAR, scorer VARCHAR) |
SELECT entrant FROM table_name_92 WHERE constructor = "brm" | What team used the BRM built car? | CREATE TABLE table_name_92 (entrant VARCHAR, constructor VARCHAR) |
SELECT driver FROM table_name_74 WHERE entries = 162 | Which driver has 162 entries? | CREATE TABLE table_name_74 (driver VARCHAR, entries VARCHAR) |
SELECT nation FROM table_name_72 WHERE bronze < 10 AND silver = 5 | What Nation has a Bronze that is smaller than 10 with a Silver of 5? | CREATE TABLE table_name_72 (nation VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT losing_hand FROM table_12454156_1 WHERE winning_hand = "7h 7s" | What was the losing hand where the winning hand was 7h 7s? | CREATE TABLE table_12454156_1 (losing_hand VARCHAR, winning_hand VARCHAR) |
SELECT reference FROM table_30011_2 WHERE type_and_usage = "Germanium small-signal RF transistor" | What is every reference for type and usage of Germanium small-signal RF transistor? | CREATE TABLE table_30011_2 (reference VARCHAR, type_and_usage VARCHAR) |
SELECT team FROM table_name_73 WHERE game = 3 | Which team had game 3? | CREATE TABLE table_name_73 (team VARCHAR, game VARCHAR) |
SELECT date FROM table_name_59 WHERE location = "fleetcenter" AND game < 9 AND score = "104-94" | On what date did Fleetcenter have a game lower than 9 with a score of 104-94? | CREATE TABLE table_name_59 (date VARCHAR, score VARCHAR, location VARCHAR, game VARCHAR) |
SELECT written_by FROM table_20967430_2 WHERE prod_code = "4G07" | Name the written by for production code 4g07 | CREATE TABLE table_20967430_2 (written_by VARCHAR, prod_code VARCHAR) |
SELECT city FROM table_name_57 WHERE status = "active" AND us_state_district = "california" AND greek_designation = "established colony" | What California city has an active status and a greek designation of established colony? | CREATE TABLE table_name_57 (city VARCHAR, greek_designation VARCHAR, status VARCHAR, us_state_district VARCHAR) |
SELECT COUNT(last_win) FROM table_name_42 WHERE club = "mansfield town" AND wins < 1 | How many Last wins have a Club of mansfield town, and Wins smaller than 1? | CREATE TABLE table_name_42 (last_win VARCHAR, club VARCHAR, wins VARCHAR) |
SELECT COUNT(matches) FROM table_name_71 WHERE team = "atlético ciudad" AND average > 0.61 | How many matches did Atlético Ciudad have with an average higher than 0.61? | CREATE TABLE table_name_71 (matches VARCHAR, team VARCHAR, average VARCHAR) |
SELECT home_team FROM table_name_68 WHERE away_team = "st kilda" | What home team played against St Kilda? | CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR) |
SELECT authority FROM table_name_32 WHERE name = "whakamaru school" | What is the Whakamaru school's authority? | CREATE TABLE table_name_32 (authority VARCHAR, name VARCHAR) |
SELECT MAX(silver) FROM table_name_34 WHERE nation = "malaysia" AND total < 23 | What is the largest silver from Malaysia with a Total smaller than 23? | CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, total VARCHAR) |
SELECT MAX(draw) FROM table_name_25 WHERE televoting < 2 | Televoting smaller than 2 had what highest draw? | CREATE TABLE table_name_25 (draw INTEGER, televoting INTEGER) |
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65 | What Kerry number does Taylor county have with more than 65 others#? | CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR) |
SELECT year_s__won FROM table_name_42 WHERE total = 289 | During which years did the golfer with the total of 289 win? | CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR) |
SELECT indole FROM table_16083989_1 WHERE species = "Proteus mirabilis" | What is the result of proteus mirabilis tested with indole? | CREATE TABLE table_16083989_1 (indole VARCHAR, species VARCHAR) |
SELECT school_club_team FROM table_10015132_9 WHERE player = "Trey Johnson" | What school/club team is Trey Johnson on? | CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR) |
SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012" | What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012? | CREATE TABLE table_name_50 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR) |
SELECT Name FROM climber WHERE Country <> "Switzerland" | List the names of climbers whose country is not Switzerland. | CREATE TABLE climber (Name VARCHAR, Country VARCHAR) |
SELECT format FROM table_name_34 WHERE conductor = "erich leinsdorf" | What format was conductor Erich Leinsdorf's album released on? | CREATE TABLE table_name_34 (format VARCHAR, conductor VARCHAR) |
SELECT frequency FROM table_name_36 WHERE call_sign = "kfnw" | What is the frequency of KFNW? | CREATE TABLE table_name_36 (frequency VARCHAR, call_sign VARCHAR) |
SELECT second FROM table_name_80 WHERE third = "kelly wood (e) anna sloan (jr)" | Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)? | CREATE TABLE table_name_80 (second VARCHAR, third VARCHAR) |
SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo" | What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo? | CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR) |
SELECT RANK(_number) FROM table_11251109_3 WHERE air_date = "October 26, 2007" | What is the rank number that aired october 26, 2007? | CREATE TABLE table_11251109_3 (_number VARCHAR, air_date VARCHAR) |
SELECT club FROM table_name_1 WHERE round = "group stage round 1 and 5" | Which club had round of group stage round 1 and 5? | CREATE TABLE table_name_1 (club VARCHAR, round VARCHAR) |
SELECT date FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtx/gto" | Which date was held at Laguna Seca Raceway, in class GTX/GTO? | CREATE TABLE table_name_94 (date VARCHAR, circuit VARCHAR, class VARCHAR) |
SELECT school FROM table_name_2 WHERE college = "michigan" AND hometown = "wheaton, illinois" | What is the school of the player who went to the college of michigan and originally comes from Wheaton, Illinois? | CREATE TABLE table_name_2 (school VARCHAR, college VARCHAR, hometown VARCHAR) |
SELECT year_s__won FROM table_name_62 WHERE country = "united states" AND total > 152 | Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152? | CREATE TABLE table_name_62 (year_s__won VARCHAR, country VARCHAR, total VARCHAR) |
SELECT name FROM table_name_6 WHERE transfer_window = "winter" AND moving_to = "anorthosis famagusta" | What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter? | CREATE TABLE table_name_6 (name VARCHAR, transfer_window VARCHAR, moving_to VARCHAR) |
SELECT SUM(gold) FROM table_name_95 WHERE rank = "14" | What is the sum of gold medals for a rank of 14? | CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR) |
SELECT represents FROM table_26301697_2 WHERE height__cm_ = "1.76" | Name the represents for 1.76 cm | CREATE TABLE table_26301697_2 (represents VARCHAR, height__cm_ VARCHAR) |
SELECT opponent FROM table_name_50 WHERE year > 1996 AND outcome = "winner" | who is the opponent when the year is after 1996 and the outcome is winner? | CREATE TABLE table_name_50 (opponent VARCHAR, year VARCHAR, outcome VARCHAR) |
SELECT MIN(enrollment) FROM table_261913_1 WHERE institution = "Augsburg College" | What is the enrollment for Augsburg college? | CREATE TABLE table_261913_1 (enrollment INTEGER, institution VARCHAR) |
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = "Lost renomination Republican gain" | How many incumbents resulted in a lost renomination republican gain? | CREATE TABLE table_1341690_18 (incumbent VARCHAR, result VARCHAR) |
SELECT archive FROM table_2114238_1 WHERE run_time = "23:48" | Which archive has a run time of 23:48? | CREATE TABLE table_2114238_1 (archive VARCHAR, run_time VARCHAR) |
SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = "Sargodha district" | What is the area of the city in the Sargodha district? | CREATE TABLE table_18425346_2 (city_area_km_2__ VARCHAR, district VARCHAR) |
SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀" | What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀? | CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.