answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(year) FROM table_2268216_1 WHERE team = "Joe Gibbs Racing" AND manufacturer = "Pontiac" | How many years was Pontiac the manufacturer for Joe Gibbs Racing? | CREATE TABLE table_2268216_1 (year VARCHAR, team VARCHAR, manufacturer VARCHAR) |
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+3.370 secs" | Which Laps is the highest one that has a Time/Retired of +3.370 secs? | CREATE TABLE table_name_52 (laps INTEGER, time_retired VARCHAR) |
SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/idːa/" | Name the realization for phoneme of /i/ and example of /idːa/ | CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR) |
SELECT manager FROM table_name_16 WHERE club = "stenhousemuir" | Who is the manager of the Stenhousemuir club? | CREATE TABLE table_name_16 (manager VARCHAR, club VARCHAR) |
SELECT COUNT(candidates) FROM table_1341453_20 WHERE first_elected = 1980 | How many candidates were elected first in 1980? | CREATE TABLE table_1341453_20 (candidates VARCHAR, first_elected VARCHAR) |
SELECT surface FROM table_name_94 WHERE tournament = "eckental" AND score = "w/o" | What is the surface of eckental tournament with a w/o score? | CREATE TABLE table_name_94 (surface VARCHAR, tournament VARCHAR, score VARCHAR) |
SELECT AVG(age), job FROM Person WHERE gender = 'male' GROUP BY job | What is average age of male for different job title? | CREATE TABLE Person (job VARCHAR, age INTEGER, gender VARCHAR) |
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | Name the votes given for michael russo, genevy dimitrion , manny ortega | CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR) |
SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = "geelong amateur" AND byes < 0 | What is the sum of losses for Geelong Amateur, with 0 byes? | CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR) |
SELECT score FROM table_name_26 WHERE home_team = "altrincham" | What was the score when Altrincham was home? | CREATE TABLE table_name_26 (score VARCHAR, home_team VARCHAR) |
SELECT time FROM table_name_94 WHERE rider = "alan oversby" | What is the time for Alan Oversby? | CREATE TABLE table_name_94 (time VARCHAR, rider VARCHAR) |
SELECT home_captain FROM table_name_81 WHERE venue = "waca ground" | What is the Home Captain which has Waca Ground as a Venue | CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR) |
SELECT COUNT(rank) FROM table_name_39 WHERE nation = "switzerland" AND total > 2 | How many ranks are for Switzerland with more than 2 total medals? | CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR) |
SELECT player FROM table_26847237_2 WHERE weight = "76kg" | Which player weighs 76kg? | CREATE TABLE table_26847237_2 (player VARCHAR, weight VARCHAR) |
SELECT cyrillic_name_other_names FROM table_2562572_20 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND settlement = "Bačko Dobro Polje" | Name the cyrillic name for orthodox christianity village and bačko dobro polje | CREATE TABLE table_2562572_20 (cyrillic_name_other_names VARCHAR, settlement VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR) |
SELECT country FROM table_name_96 WHERE label = "hydra head records" AND date = "february 2005" | Which country has Hydra Head Records on February 2005? | CREATE TABLE table_name_96 (country VARCHAR, label VARCHAR, date VARCHAR) |
SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183" | Which year had a toleman tg183 chassis? | CREATE TABLE table_name_36 (year VARCHAR, chassis VARCHAR) |
SELECT year FROM table_name_44 WHERE venue = "nikos goumas stadium" AND score = "2–2 4–4 a.e.t. 6–5 pso" | when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso? | CREATE TABLE table_name_44 (year VARCHAR, venue VARCHAR, score VARCHAR) |
SELECT surface FROM table_name_76 WHERE partner = "remi tezuka" | What surface was used when she played with Remi Tezuka? | CREATE TABLE table_name_76 (surface VARCHAR, partner VARCHAR) |
SELECT length FROM table_name_41 WHERE stage = "ss6" | Name the length for stage of ss6 | CREATE TABLE table_name_41 (length VARCHAR, stage VARCHAR) |
SELECT years FROM table_name_51 WHERE goals = "36" | What years had players who scored 36 goals? | CREATE TABLE table_name_51 (years VARCHAR, goals VARCHAR) |
SELECT district FROM table_1341586_39 WHERE candidates = "Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%" | what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7% | CREATE TABLE table_1341586_39 (district VARCHAR, candidates VARCHAR) |
SELECT COUNT(*) FROM users WHERE user_login = 1 | How many users are logged in? | CREATE TABLE users (user_login VARCHAR) |
SELECT MAX(year_built) FROM table_178408_1 WHERE church_name = "Davik Kyrkje" | Name the most year built for davik kyrkje | CREATE TABLE table_178408_1 (year_built INTEGER, church_name VARCHAR) |
SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = "16" | Name the total number of trofeo fast team of stage 16 | CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR) |
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings) | Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance. | CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) |
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas" | In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas? | CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR) |
SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = "ado" AND mass_kg_ = "4" AND diameter_m_ = "3" | What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter? | CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, diameter_m_ VARCHAR, usage VARCHAR, mass_kg_ VARCHAR) |
SELECT home FROM table_name_87 WHERE visitor = "chicago black hawks" AND score = "2–3" | Which home team had a visitor of Chicago Black Hawks with a score of 2–3? | CREATE TABLE table_name_87 (home VARCHAR, visitor VARCHAR, score VARCHAR) |
SELECT segment_a FROM table_15187735_1 WHERE segment_b = "Snowboards" | What was segment A when segment B was snowboards? | CREATE TABLE table_15187735_1 (segment_a VARCHAR, segment_b VARCHAR) |
SELECT record FROM table_name_38 WHERE opponent = "denver broncos" | Who won when the Patriots played the Denver Broncos? | CREATE TABLE table_name_38 (record VARCHAR, opponent VARCHAR) |
SELECT COUNT(entered) FROM table_name_53 WHERE eliminated = "3" | What is the total number of Entered when the eliminated number is 3? | CREATE TABLE table_name_53 (entered VARCHAR, eliminated VARCHAR) |
SELECT conference FROM table_name_69 WHERE division = "south" AND home_stadium = "georgia dome" | What is the name of the Conference which Division is south, and the Home Stadium is georgia dome? | CREATE TABLE table_name_69 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR) |
SELECT SUM(week) FROM table_name_48 WHERE attendance = "41,384" | How many weeks were there games with 41,384 fans in attendance? | CREATE TABLE table_name_48 (week INTEGER, attendance VARCHAR) |
SELECT MAX(heat) FROM table_name_22 WHERE nationality = "poland" AND lane < 6 | What is the highest heat when the nationality is poland, and the lane is smaller than 6? | CREATE TABLE table_name_22 (heat INTEGER, nationality VARCHAR, lane VARCHAR) |
SELECT enrollment FROM table_2076463_2 WHERE location_s_ = "St. Louis" | What enrollement would you expect if you were attending the university in St. Louis? | CREATE TABLE table_2076463_2 (enrollment VARCHAR, location_s_ VARCHAR) |
SELECT COUNT(high_assists) FROM table_23248940_9 WHERE date = "February 24" | How many different high assists results are there for the game played on February 24? | CREATE TABLE table_23248940_9 (high_assists VARCHAR, date VARCHAR) |
SELECT notes FROM table_name_82 WHERE call_sign = "cbue-fm" | What is the Notes of the Frequency with a call sign of CBUE-FM? | CREATE TABLE table_name_82 (notes VARCHAR, call_sign VARCHAR) |
SELECT country FROM table_name_52 WHERE base = "mecklenburg" AND play = "the libation bearers" | What Country has the Play The Libation Bearers a Base of Mecklenburg? | CREATE TABLE table_name_52 (country VARCHAR, base VARCHAR, play VARCHAR) |
SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = "chris cusiter" | Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them? | CREATE TABLE table_name_88 (club_province VARCHAR, caps VARCHAR, player VARCHAR) |
SELECT competition FROM table_name_58 WHERE result = "2-2" | What is the competition that had a 2-2 result? | CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR) |
SELECT date FROM table_13258806_2 WHERE record = "0-1" | When was the record of 0-1 set? | CREATE TABLE table_13258806_2 (date VARCHAR, record VARCHAR) |
SELECT player FROM table_name_53 WHERE score = 71 - 73 - 68 - 75 = 287 | Which player had a score of 71-73-68-75=287? | CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR) |
SELECT commissioned FROM table_291768_1 WHERE launched = "September 20, 1968" | what project was initially started before september 20, 1968 | CREATE TABLE table_291768_1 (commissioned VARCHAR, launched VARCHAR) |
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266 | Name the most abama number for mccain being 29266 | CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR) |
SELECT luma_samples_s FROM table_237036_2 WHERE level = "1.3" | What are the luma samples at level 1.3? | CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR) |
SELECT home FROM table_name_24 WHERE score = "116–105" | Who was the home team at the Nuggets game that had a score of 116–105? | CREATE TABLE table_name_24 (home VARCHAR, score VARCHAR) |
SELECT AVG(week) FROM table_name_14 WHERE opponent = "philadelphia eagles" AND attendance < 31 OFFSET 066 | What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance? | CREATE TABLE table_name_14 (week INTEGER, opponent VARCHAR, attendance VARCHAR) |
SELECT team FROM table_name_42 WHERE circuit = "symmons plains raceway" | Which team won at the symmons plains raceway? | CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR) |
SELECT MIN(projected_opening) FROM table_22771048_3 | Name the least projected opening | CREATE TABLE table_22771048_3 (projected_opening INTEGER) |
SELECT round FROM table_name_4 WHERE circuit = "portland international raceway" | What round was the circuit portland international raceway? | CREATE TABLE table_name_4 (round VARCHAR, circuit VARCHAR) |
SELECT COUNT(localities) FROM table_26007767_1 WHERE population_density__per_km²_ = "2.5" | How many time is the population density (per km²) is 2.5? | CREATE TABLE table_26007767_1 (localities VARCHAR, population_density__per_km²_ VARCHAR) |
SELECT competition FROM table_name_76 WHERE score = "1-2" | What Competition's Score was 1-2? | CREATE TABLE table_name_76 (competition VARCHAR, score VARCHAR) |
SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse" | Which report has a Winning driver of peter collins, and a Circuit of syracuse? | CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR) |
SELECT race FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND date = "27 April" | what is the race where the pole position is niki lauda and the date is 27 april? | CREATE TABLE table_1140085_2 (race VARCHAR, pole_position VARCHAR, date VARCHAR) |
SELECT MAX(wins) FROM table_name_65 WHERE losses < 2 | What is the highest win for losses less than 2? | CREATE TABLE table_name_65 (wins INTEGER, losses INTEGER) |
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005 | Which venue resulted in 2nd before 2005? | CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR) |
SELECT marine_organism_α FROM table_name_96 WHERE disease_area = "cancer" AND clinical_trials_β = "4/4" | What is the organism that has a disease area of cancer and has 4/4 clinical trial b? | CREATE TABLE table_name_96 (marine_organism_α VARCHAR, disease_area VARCHAR, clinical_trials_β VARCHAR) |
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking' | Find the ids of the students who participate in Canoeing and Kayaking. | CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR) |
SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1 | What is the carrier of the most expensive phone? | CREATE TABLE phone (Carrier VARCHAR, Price VARCHAR) |
SELECT COUNT(floors) FROM table_name_1 WHERE street_address = "207 w. hastings st." | How many floors have 207 w. hastings st. as the address? | CREATE TABLE table_name_1 (floors VARCHAR, street_address VARCHAR) |
SELECT principal FROM table_1984697_53 WHERE school = "Edgewood High school" | Who's the principal of Edgewood High School?/ | CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR) |
SELECT MAX(Price), MAX(Score) FROM WINE WHERE Appelation = "St. Helena" | What are the maximum price and score of wines produced by St. Helena appelation? | CREATE TABLE WINE (Price INTEGER, Score INTEGER, Appelation VARCHAR) |
SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = "Anastasia Chervyakova Romina Gabdullina" | Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina? | CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR) |
SELECT lead FROM table_name_56 WHERE third = "jeanne ellegaard" | Which Lead has a Third of jeanne ellegaard? | CREATE TABLE table_name_56 (lead VARCHAR, third VARCHAR) |
SELECT transit_connections FROM table_22771048_2 WHERE city_neighborhood = "Columbia City, Seattle" | What's the transit connection in Columbia City, Seattle? | CREATE TABLE table_22771048_2 (transit_connections VARCHAR, city_neighborhood VARCHAR) |
SELECT time FROM table_name_90 WHERE opponent = "martin kampmann" | Tell me the time for martin kampmann | CREATE TABLE table_name_90 (time VARCHAR, opponent VARCHAR) |
SELECT record FROM table_name_46 WHERE date = "february 24" | What was their record on February 24? | CREATE TABLE table_name_46 (record VARCHAR, date VARCHAR) |
SELECT MIN(ranking) FROM table_name_51 WHERE total = 23 | What is the lowest ranking associated with a total of 23? | CREATE TABLE table_name_51 (ranking INTEGER, total VARCHAR) |
SELECT team__b_ FROM table_name_10 WHERE s_no > 17 | What is Team (B), when S No is greater than 17? | CREATE TABLE table_name_10 (team__b_ VARCHAR, s_no INTEGER) |
SELECT MAX(overall) FROM table_name_35 WHERE name = "george nicula" AND pick < 9 | What is the highest overall pick number for george nicula who had a pick smaller than 9? | CREATE TABLE table_name_35 (overall INTEGER, name VARCHAR, pick VARCHAR) |
SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274 | What country scored 71-66-66-71=274? | CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR) |
SELECT AVG(games) FROM table_name_89 WHERE years_at_club = "1974–1975" AND goals = 4 | Which Games have Years at club of 1974–1975, and Goals of 4? | CREATE TABLE table_name_89 (games INTEGER, years_at_club VARCHAR, goals VARCHAR) |
SELECT location FROM table_25143284_1 WHERE score_qualifying = "58.425" | Where was the competition with a qualifying score of 58.425? | CREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR) |
SELECT party FROM table_name_28 WHERE mayor = "achille variati" | What party was achille variati afilliated with? | CREATE TABLE table_name_28 (party VARCHAR, mayor VARCHAR) |
SELECT windows_phone FROM table_14260687_3 WHERE total = "216.2" | How many million of windows phones were shipped during the quarter that shipped 216.2 million total? | CREATE TABLE table_14260687_3 (windows_phone VARCHAR, total VARCHAR) |
SELECT home_team FROM table_name_86 WHERE tie_no = "2" | What home team had 2 ties? | CREATE TABLE table_name_86 (home_team VARCHAR, tie_no VARCHAR) |
SELECT song FROM table_name_86 WHERE release_info = "heavenly (hvn152)" | Which song released on heavenly (hvn152)? | CREATE TABLE table_name_86 (song VARCHAR, release_info VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = "jeff staples" | Jeff Staples player for which College, Junior or Club league? | CREATE TABLE table_name_28 (college_junior_club_team__league_ VARCHAR, player VARCHAR) |
SELECT COUNT(game) FROM table_name_65 WHERE opponent = "buffalo sabres" | What is the total number of games played against the Buffalo Sabres? | CREATE TABLE table_name_65 (game VARCHAR, opponent VARCHAR) |
SELECT Name FROM teacher WHERE Age = 32 OR Age = 33 | Show the name of teachers aged either 32 or 33? | CREATE TABLE teacher (Name VARCHAR, Age VARCHAR) |
SELECT date FROM table_name_46 WHERE surface = "hard" AND tournament = "wrexham , great britain" | When has a Surface of hard, a Tournament of wrexham , great britain? | CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR) |
SELECT game FROM table_name_53 WHERE date = "march 19" | What was the number of game that was played on March 19? | CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR) |
SELECT flno FROM Flight WHERE origin = "Los Angeles" | Show all flight number from Los Angeles. | CREATE TABLE Flight (flno VARCHAR, origin VARCHAR) |
SELECT score FROM table_name_21 WHERE opponents = "valencia" AND year = "2011–12" | Which Score has Opponents of valencia, and a Year of 2011–12? | CREATE TABLE table_name_21 (score VARCHAR, opponents VARCHAR, year VARCHAR) |
SELECT date FROM table_name_93 WHERE venue = "jeonju" AND goals < 28 AND competition = "k-league cup" | What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue? | CREATE TABLE table_name_93 (date VARCHAR, competition VARCHAR, venue VARCHAR, goals VARCHAR) |
SELECT date FROM table_name_70 WHERE record = "26-19" | On what date was their record 26-19? | CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) |
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0 | What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins? | CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR) |
SELECT COUNT(attendance) FROM table_name_84 WHERE date = "july 18" | What was the attendance for july 18? | CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR) |
SELECT outcome FROM table_name_53 WHERE date = "august 20, 1978" | What was the outcome of the match on August 20, 1978? | CREATE TABLE table_name_53 (outcome VARCHAR, date VARCHAR) |
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 | What is the money rank of the poker player with the highest earnings? | CREATE TABLE poker_player (Money_Rank VARCHAR, Earnings VARCHAR) |
SELECT place FROM table_name_88 WHERE event = "half marathon" | What is the Place of the half marathon Event? | CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR) |
SELECT tie_no FROM table_name_3 WHERE home_team = "minehead" | minehead has what tie number? | CREATE TABLE table_name_3 (tie_no VARCHAR, home_team VARCHAR) |
SELECT official_rating_16_39 FROM table_29804176_23 WHERE share_16_39 = "22,77%" | what is the official rating 16-39 for the episode with a 16-39 share of 22,77%? | CREATE TABLE table_29804176_23 (official_rating_16_39 VARCHAR, share_16_39 VARCHAR) |
SELECT object_type FROM table_name_58 WHERE constellation = "cancer" | Which Object type has a Constellation of cancer? | CREATE TABLE table_name_58 (object_type VARCHAR, constellation VARCHAR) |
SELECT 2007 FROM table_name_84 WHERE 2011 = "1r" AND 2010 = "1r" | What is the 2007 value with 1r in 2011 and 1r in 2010? | CREATE TABLE table_name_84 (Id VARCHAR) |
SELECT record FROM table_name_11 WHERE date = "july 22" | What is the record as of July 22? | CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_56 WHERE date = "april 2" | Who was the opponent on April 2? | CREATE TABLE table_name_56 (opponent VARCHAR, date VARCHAR) |
SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id | Find each target user's name and average trust score. | CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR) |
SELECT loss FROM table_name_3 WHERE record = "36-20" | Who did the Blue Jays lose to when their record was 36-20? | CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.