answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT patient_portrayer FROM table_26561509_1 WHERE production_code = "3T5004" | Who is the patient portrayer of the episode with the production code 3T5004? | CREATE TABLE table_26561509_1 (patient_portrayer VARCHAR, production_code VARCHAR) |
SELECT margin_of_victory FROM table_name_75 WHERE date = "5 jun 1988" | What is the margin of victory of the tournament on 5 Jun 1988? | CREATE TABLE table_name_75 (margin_of_victory VARCHAR, date VARCHAR) |
SELECT college FROM table_name_19 WHERE pick__number = 155 | Which college has a pick number of 155? | CREATE TABLE table_name_19 (college VARCHAR, pick__number VARCHAR) |
SELECT location FROM table_255188_3 WHERE institution = "University of North Carolina at Greensboro" | Where is the University of North Carolina at Greensboro located? | CREATE TABLE table_255188_3 (location VARCHAR, institution VARCHAR) |
SELECT user FROM table_25479607_3 WHERE max_demand_charge___rs__kva_ = "1,100" AND unit__kwh__time_range = "H-2: Off-peak (22:30-05:30)" | What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)? | CREATE TABLE table_25479607_3 (user VARCHAR, max_demand_charge___rs__kva_ VARCHAR, unit__kwh__time_range VARCHAR) |
SELECT 2013 FROM table_name_22 WHERE 2010 = "1r" | Name the 2013 for 2010 of 1r | CREATE TABLE table_name_22 (Id VARCHAR) |
SELECT COUNT(time) FROM table_26842217_18 WHERE visiting_team = "UAB" | Name the number of time for uab | CREATE TABLE table_26842217_18 (time VARCHAR, visiting_team VARCHAR) |
SELECT provider FROM table_name_90 WHERE free_or_pay = "pay" AND years = "2006–" AND transmission = "iptv and digital terrestrial" | Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial? | CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR) |
SELECT COUNT(television_station) FROM table_1601792_4 WHERE frequency = "35 UHF" | How many stations have a 35 uhf frequency? | CREATE TABLE table_1601792_4 (television_station VARCHAR, frequency VARCHAR) |
SELECT date FROM table_name_24 WHERE circuit = "tigullio" | What date was the Tigullio Circuit? | CREATE TABLE table_name_24 (date VARCHAR, circuit VARCHAR) |
SELECT date FROM table_name_63 WHERE school = "marshfield high school" | What is the Date of the Player from Marshfield High School? | CREATE TABLE table_name_63 (date VARCHAR, school VARCHAR) |
SELECT name AS origin FROM table_16799784_9 WHERE name = "Morrigan Linea" | What is the name origin of Morrigan Linea? | CREATE TABLE table_16799784_9 (name VARCHAR) |
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37" | With 37 tries against, what is the try bonus? | CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR) |
SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory" | Name the total number of stage for lloyd mondory | CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR) |
SELECT AVG(room_count) FROM Apartments WHERE apt_type_code = "Studio" | What is the average number of rooms of apartments with type code "Studio"? | CREATE TABLE Apartments (room_count INTEGER, apt_type_code VARCHAR) |
SELECT decile FROM table_name_62 WHERE area = "welcome bay" AND authority = "state" | Which decile has an Area of welcome bay, and an Authority of state? | CREATE TABLE table_name_62 (decile VARCHAR, area VARCHAR, authority VARCHAR) |
SELECT opponent FROM table_name_80 WHERE score = "4–6, 6–4, 6–2" | Who did thomaz bellucci play against when the score was 4–6, 6–4, 6–2? | CREATE TABLE table_name_80 (opponent VARCHAR, score VARCHAR) |
SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce" | What member is in the liberal party and has an electorate of bruce? | CREATE TABLE table_name_73 (member VARCHAR, party VARCHAR, electorate VARCHAR) |
SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = "oh seok-jae" | Which Rank has Goals larger than 4, and a Scorer of oh seok-jae? | CREATE TABLE table_name_14 (rank VARCHAR, goals VARCHAR, scorer VARCHAR) |
SELECT party FROM table_name_73 WHERE district = "maryland 6" | What is the party of the maryland 6 district? | CREATE TABLE table_name_73 (party VARCHAR, district VARCHAR) |
SELECT original_air_date FROM table_name_84 WHERE title = "julie gets validated" | When did Julie gets Validated originally air? | CREATE TABLE table_name_84 (original_air_date VARCHAR, title VARCHAR) |
SELECT college_junior_club_team FROM table_2781227_4 WHERE nhl_team = "San Jose Sharks" | For nhl team is san jose sharks mention all the college/junior/club team | CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR) |
SELECT winner_and_score FROM table_name_54 WHERE week = "april 22" | Who is the winner and score during the week of April 22? | CREATE TABLE table_name_54 (winner_and_score VARCHAR, week VARCHAR) |
SELECT attendance FROM table_name_73 WHERE score = "7-6" | in game that had a score of 7-6 what was the attendance? | CREATE TABLE table_name_73 (attendance VARCHAR, score VARCHAR) |
SELECT score FROM table_name_19 WHERE attendance = "39,592" | What is the score of the game with 39,592 attendance? | CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR) |
SELECT venue FROM table_name_32 WHERE opponents = "queens park rangers" | What venue held that game against the Queens Park Rangers? | CREATE TABLE table_name_32 (venue VARCHAR, opponents VARCHAR) |
SELECT SUM(games) FROM table_name_77 WHERE points > 266 AND name = "juan carlos navarro" | What is the total number of games that has Juan Carlos Navarro and more than 266 points? | CREATE TABLE table_name_77 (games INTEGER, points VARCHAR, name VARCHAR) |
SELECT MIN(squad_no) FROM table_name_81 WHERE goals < 0 | What was the lowest squad with 0 goals? | CREATE TABLE table_name_81 (squad_no INTEGER, goals INTEGER) |
SELECT date FROM table_name_72 WHERE results¹ = "5:1" | On what Date were the Results¹ 5:1? | CREATE TABLE table_name_72 (date VARCHAR, results¹ VARCHAR) |
SELECT institution FROM table_12434380_1 WHERE mascot = "Blue Devils" | What is the name of the institution with the mascot of blue devils? | CREATE TABLE table_12434380_1 (institution VARCHAR, mascot VARCHAR) |
SELECT SUM(goals) FROM table_name_16 WHERE date = "2007-06-16" | What is the sum of the goals on 2007-06-16? | CREATE TABLE table_name_16 (goals INTEGER, date VARCHAR) |
SELECT report FROM table_name_10 WHERE ages = "2-17" | What is the Report for the School for Ages of 2-17? | CREATE TABLE table_name_10 (report VARCHAR, ages VARCHAR) |
SELECT opponent FROM table_name_38 WHERE location_attendance = "richmond academy" | What opponent is at Richmond Academy? | CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR) |
SELECT name FROM table_name_96 WHERE spread = 69 | What name has a spread of 69? | CREATE TABLE table_name_96 (name VARCHAR, spread VARCHAR) |
SELECT MAX(date) FROM table_name_49 WHERE game > 69 AND opponent = "st. louis blues" | What is the latest date for a game over 69 with a St. Louis Blues opponent? | CREATE TABLE table_name_49 (date INTEGER, game VARCHAR, opponent VARCHAR) |
SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | Which vocal type is the most frequently appearring type? | CREATE TABLE vocals (TYPE VARCHAR) |
SELECT MIN(tries) FROM table_name_22 WHERE conversions > 0 | What is the smallest number of tries with conversions more than 0? | CREATE TABLE table_name_22 (tries INTEGER, conversions INTEGER) |
SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls" | What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls? | CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR) |
SELECT date FROM table_name_42 WHERE total = "75–45" | What date was the total 75–45? | CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR) |
SELECT COUNT(1 AS st_leg) FROM table_17282875_3 WHERE team__number2 = "Universidad de Chile" | When they played Universidad de Chile, what was the score of the first leg? | CREATE TABLE table_17282875_3 (team__number2 VARCHAR) |
SELECT date FROM table_name_16 WHERE record = "5-7" | On what date was a game played, which left the team with a record of 5-7? | CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR) |
SELECT AVG(grid) FROM table_name_23 WHERE rider = "mike di meglio" AND laps > 23 | Which Grid that has a Rider of mike di meglio, and Laps larger than 23? | CREATE TABLE table_name_23 (grid INTEGER, rider VARCHAR, laps VARCHAR) |
SELECT winner FROM table_name_34 WHERE fis_nordic_world_ski_championships = "1980" | Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980? | CREATE TABLE table_name_34 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR) |
SELECT league FROM table_name_63 WHERE home = "1-1" | WHAT IS THE LEAGUE WITH HOME 1-1? | CREATE TABLE table_name_63 (league VARCHAR, home VARCHAR) |
SELECT MAX(sample_size) FROM table_name_72 WHERE date = "nov 9-11, 2007" AND margin_of_error < 4.3 | What was the sample size for the poll from Nov 9-11, 2007 with a margin of error less than 4.3? | CREATE TABLE table_name_72 (sample_size INTEGER, date VARCHAR, margin_of_error VARCHAR) |
SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta" | What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta? | CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR) |
SELECT live_births_2006 FROM table_12251936_1 WHERE county = "South Yorkshire (Met county)" | How many live births were there in 2006 in South Yorkshire (met county)? | CREATE TABLE table_12251936_1 (live_births_2006 VARCHAR, county VARCHAR) |
SELECT runner_s__up FROM table_name_86 WHERE margin_of_victory = "2 strokes" AND tournament = "mazda senior tournament players championship" | Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes? | CREATE TABLE table_name_86 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) |
SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = "17" | What is the highest championship that has 1 as the league cup, and 17 as the total? | CREATE TABLE table_name_85 (championship INTEGER, league_cup VARCHAR, total VARCHAR) |
SELECT length FROM table_13050822_2 WHERE stage = "SS22" | Name the length for stage ss22 | CREATE TABLE table_13050822_2 (length VARCHAR, stage VARCHAR) |
SELECT COUNT(crowd) FROM table_name_48 WHERE home_team = "essendon" | How many fans were at Essendon? | CREATE TABLE table_name_48 (crowd VARCHAR, home_team VARCHAR) |
SELECT MAX(LEVEL) FROM manager WHERE Country <> "Australia " | What is the maximum level of managers in countries that are not "Australia"? | CREATE TABLE manager (LEVEL INTEGER, Country VARCHAR) |
SELECT score FROM table_name_3 WHERE country = "new zealand" | What's the score of New Zealand? | CREATE TABLE table_name_3 (score VARCHAR, country VARCHAR) |
SELECT mixed_doubles FROM table_name_2 WHERE year > 2011 | Which mixed doubles happened later than 2011? | CREATE TABLE table_name_2 (mixed_doubles VARCHAR, year INTEGER) |
SELECT MIN(games) FROM table_name_84 WHERE team = "fenerbahçe" | What's the smallest number of games for the fenerbahçe team? | CREATE TABLE table_name_84 (games INTEGER, team VARCHAR) |
SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188 | If the population is 2188, what was the median household income? | CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR) |
SELECT player FROM table_16912000_13 WHERE kr_avg = "24.8" | Who's average is 24.8? | CREATE TABLE table_16912000_13 (player VARCHAR, kr_avg VARCHAR) |
SELECT SUM(total) FROM table_name_14 WHERE silver > 1 AND rank = 9 AND bronze > 0 | What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0? | CREATE TABLE table_name_14 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) |
SELECT COUNT(points) FROM table_name_31 WHERE year < 1955 AND rank = "5th" AND wins < 0 | Name the total number of points with year less than 1955 and rank of 5th with wins less than 0 | CREATE TABLE table_name_31 (points VARCHAR, wins VARCHAR, year VARCHAR, rank VARCHAR) |
SELECT date FROM table_name_18 WHERE week < 9 AND opponent = "dallas cowboys" | What is the date for a week before 9, and a opponent of dallas cowboys? | CREATE TABLE table_name_18 (date VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT syndicate FROM table_name_8 WHERE yacht = "stars & stripes" | Which syndicate is associated with the stars & stripes yacht? | CREATE TABLE table_name_8 (syndicate VARCHAR, yacht VARCHAR) |
SELECT AVG(lane) FROM table_name_40 WHERE nationality = "great britain" AND heat < 3 | What's Great Britain's lane with a heat less than 3? | CREATE TABLE table_name_40 (lane INTEGER, nationality VARCHAR, heat VARCHAR) |
SELECT tournament FROM table_name_28 WHERE result = "46-18" | In what tournament is there a result of 46-18? | CREATE TABLE table_name_28 (tournament VARCHAR, result VARCHAR) |
SELECT position FROM table_name_9 WHERE round = 3 | what is the position in round 3? | CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR) |
SELECT SUM(lane) FROM table_name_15 WHERE react = 0.185 AND time < 20.9 | Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in? | CREATE TABLE table_name_15 (lane INTEGER, react VARCHAR, time VARCHAR) |
SELECT result FROM table_name_26 WHERE week > 10 AND opponent = "philadelphia eagles" | What is the Result of the game after Week 10 against Philadelphia Eagles? | CREATE TABLE table_name_26 (result VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT MAX(game) FROM table_11964154_9 WHERE high_points = "Mickaël Gelabale (21)" | what is the maximum game where high points is mickaël gelabale (21) | CREATE TABLE table_11964154_9 (game INTEGER, high_points VARCHAR) |
SELECT ended FROM table_name_37 WHERE country = "ghana" | when was the loan ended when the country is ghana? | CREATE TABLE table_name_37 (ended VARCHAR, country VARCHAR) |
SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47" | When Saginaw's fare is $470.47, what was the fare to Grand Rapids? | CREATE TABLE table_1637981_7 (grand_rapids__grr_ VARCHAR, saginaw__mbs_ VARCHAR) |
SELECT venue FROM table_name_71 WHERE club = "spartak st. petersburg" | What Venue has Spartak St. Petersburg Club? | CREATE TABLE table_name_71 (venue VARCHAR, club VARCHAR) |
SELECT competition FROM table_name_77 WHERE event = "4x100 m relay" AND time = "38.89" | What Competition has an Event of 4x100 m relay and has the Time of 38.89? | CREATE TABLE table_name_77 (competition VARCHAR, event VARCHAR, time VARCHAR) |
SELECT written_by FROM table_26464364_1 WHERE directed_by = "Justin Hartley" | Who are the writers of the episodes directed by Justin Hartley? | CREATE TABLE table_26464364_1 (written_by VARCHAR, directed_by VARCHAR) |
SELECT 2006 FROM table_name_59 WHERE 2013 = "4–4" | 2013 of 4–4 is involved in what 2006? | CREATE TABLE table_name_59 (Id VARCHAR) |
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" | What is the total amount of money spent by Lucas Mancini? | CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR) |
SELECT COUNT(location) FROM table_1399994_5 WHERE opponents = "Claudia Kohde-Kilsch Eva Pfaff" | How many locations hosted Claudia Kohde-Kilsch Eva Pfaff? | CREATE TABLE table_1399994_5 (location VARCHAR, opponents VARCHAR) |
SELECT points_per_game FROM table_2387461_1 WHERE tournament = "2005 EuroBasket" | How many points per game have the tournament 2005 eurobasket? | CREATE TABLE table_2387461_1 (points_per_game VARCHAR, tournament VARCHAR) |
SELECT leading_scorer FROM table_name_24 WHERE goals < 23 AND league = "football league division 3" AND year = "1997–98" | Leading Scorer that has a Goal smaller than 23, and a League of football league division 3, and a Year of 1997–98 is who? | CREATE TABLE table_name_24 (leading_scorer VARCHAR, year VARCHAR, goals VARCHAR, league VARCHAR) |
SELECT callsign FROM table_name_42 WHERE analog = "19" | what is the callsign for analog 19? | CREATE TABLE table_name_42 (callsign VARCHAR, analog VARCHAR) |
SELECT COUNT(lane) FROM table_name_72 WHERE time = "2:08.11" AND rank > 3 | How many Lanes have a rank higher than 3 with a time of 2:08.11? | CREATE TABLE table_name_72 (lane VARCHAR, time VARCHAR, rank VARCHAR) |
SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841) | Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841. | CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) |
SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition) | Show names for artists without any exhibition. | CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (name VARCHAR, artist_id VARCHAR) |
SELECT acquisition_via FROM table_name_50 WHERE season = "2006-2012" | What is Acquisition via, when Season is 2006-2012? | CREATE TABLE table_name_50 (acquisition_via VARCHAR, season VARCHAR) |
SELECT MAX(year) FROM table_name_37 WHERE venue = "barcelona, spain" | What was the most recent year the venue was Barcelona, Spain? | CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR) |
SELECT artist FROM table_name_87 WHERE mintage = "40,000" AND issue_price = "45.95" | Who was the artist with a mintage of 40,000 and an issue price of $45.95? | CREATE TABLE table_name_87 (artist VARCHAR, mintage VARCHAR, issue_price VARCHAR) |
SELECT name FROM table_name_15 WHERE type = "hydro" AND capacity___mw__ < 478 AND rank > 85 AND province = "quebec" | what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec? | CREATE TABLE table_name_15 (name VARCHAR, province VARCHAR, rank VARCHAR, type VARCHAR, capacity___mw__ VARCHAR) |
SELECT SUM(rank) FROM table_name_87 WHERE lane < 2 | What is the total rank for the lane before 2? | CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER) |
SELECT year FROM table_name_43 WHERE laps > 200 | Which year did Tony Bettenhausen complete more than 200 laps? | CREATE TABLE table_name_43 (year VARCHAR, laps INTEGER) |
SELECT team_1 FROM table_name_32 WHERE team_2 = "tp englebert" | What is team one that has tp englebert for team 2? | CREATE TABLE table_name_32 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT series FROM table_name_12 WHERE release_date = "1935-07-13" | What series has 1935-07-13 as the release date? | CREATE TABLE table_name_12 (series VARCHAR, release_date VARCHAR) |
SELECT writer FROM table_name_63 WHERE date = "january 1975" | What is the Writer with a Date that is january 1975? | CREATE TABLE table_name_63 (writer VARCHAR, date VARCHAR) |
SELECT american FROM table_name_62 WHERE british = "ə" | What is the American version of the British ə? | CREATE TABLE table_name_62 (american VARCHAR, british VARCHAR) |
SELECT Date FROM perpetrator ORDER BY Killed DESC | List the date of perpetrators in descending order of the number of people killed. | CREATE TABLE perpetrator (Date VARCHAR, Killed VARCHAR) |
SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport" | In what country is Hokkaidō and New Chitose airport located? | CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) |
SELECT content FROM table_15887683_1 WHERE television_service = "LA7" | What is the content of la7 television service? | CREATE TABLE table_15887683_1 (content VARCHAR, television_service VARCHAR) |
SELECT model_number FROM table_name_98 WHERE gpu_frequency = "320 mhz" | What is the model number for the GPU and 320 mhz? | CREATE TABLE table_name_98 (model_number VARCHAR, gpu_frequency VARCHAR) |
SELECT tie_no FROM table_name_98 WHERE score = "5–1" | Which Tie has a Score of 5–1? | CREATE TABLE table_name_98 (tie_no VARCHAR, score VARCHAR) |
SELECT new_entries FROM table_name_71 WHERE fixtures = 2 | What is the value for New entries, when the value for Fixtures is 2? | CREATE TABLE table_name_71 (new_entries VARCHAR, fixtures VARCHAR) |
SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = "92.68" | In what year was the average speed 92.68? | CREATE TABLE table_2268216_1 (year VARCHAR, average_speed__mph_ VARCHAR) |
SELECT place FROM table_name_53 WHERE country = "canada" | What place has Canada as the country? | CREATE TABLE table_name_53 (place VARCHAR, country VARCHAR) |
SELECT date FROM table_name_70 WHERE score_in_final = "6–3, 6–3" | On what Date was the Score in Final 6–3, 6–3? | CREATE TABLE table_name_70 (date VARCHAR, score_in_final VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.