question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the name of the national final main host when the semi final/heat host shows internal selection in 2011? | CREATE TABLE table_name_83 (national_final_main_host VARCHAR, semi_final_heat_host VARCHAR, year_s_ VARCHAR) | SELECT national_final_main_host FROM table_name_83 WHERE semi_final_heat_host = "internal selection" AND year_s_ = "2011" |
Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93? | CREATE TABLE table_name_98 (jersey__number VARCHAR, weight__kg_ VARCHAR, height__cm_ VARCHAR, name VARCHAR) | SELECT COUNT(jersey__number) FROM table_name_98 WHERE height__cm_ = 183 AND name = "paul stastny" AND weight__kg_ < 93 |
Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32? | CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR) | SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = "truncated icosahedron" AND vertices > 32 |
Who directed the film with the original title of три летња дана? | CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR) | SELECT director FROM table_22265716_1 WHERE original_title = "Три летња дана" |
What position was pick # 54? | CREATE TABLE table_26996293_7 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_26996293_7 WHERE pick__number = 54 |
Which college has the men's nickname of the blazers? | CREATE TABLE table_10577579_3 (institution VARCHAR, men’s_nickname VARCHAR) | SELECT institution FROM table_10577579_3 WHERE men’s_nickname = "Blazers" |
What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21? | CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR) | SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21 |
Who wears the jersey number 20 and has the position of SG? | CREATE TABLE table_name_5 (player VARCHAR, position VARCHAR, jersey_number_s_ VARCHAR) | SELECT player FROM table_name_5 WHERE position = "sg" AND jersey_number_s_ = "20" |
What was the result on October 29, 1989? | CREATE TABLE table_name_41 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_41 WHERE date = "october 29, 1989" |
Which Date has a Distance of 3,000 m? | CREATE TABLE table_name_63 (date VARCHAR, distance VARCHAR) | SELECT date FROM table_name_63 WHERE distance = "3,000 m" |
Who was the guest on 24.11.07 when the result was 0:1 at 16:00? | CREATE TABLE table_name_25 (guest VARCHAR, time VARCHAR, date VARCHAR, result VARCHAR) | SELECT guest FROM table_name_25 WHERE date = "24.11.07" AND result = "0:1" AND time = "16:00" |
Name the incumbent for kentucky 9 | CREATE TABLE table_1342393_16 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342393_16 WHERE district = "Kentucky 9" |
Find the average weight for each pet type. | CREATE TABLE pets (pettype VARCHAR, weight INTEGER) | SELECT AVG(weight), pettype FROM pets GROUP BY pettype |
List the date of perpetrators in descending order of the number of people killed. | CREATE TABLE perpetrator (Date VARCHAR, Killed VARCHAR) | SELECT Date FROM perpetrator ORDER BY Killed DESC |
Which region had a life expectancy at birth of 77.9 from 2001-2002? | CREATE TABLE table_25042332_33 (region VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR) | SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "77.9" |
Score of 2–3 ot on what date? | CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_76 WHERE score = "2–3 ot" |
How many floors have 207 w. hastings st. as the address? | CREATE TABLE table_name_1 (floors VARCHAR, street_address VARCHAR) | SELECT COUNT(floors) FROM table_name_1 WHERE street_address = "207 w. hastings st." |
What release date is when kids-270 is a reference? | CREATE TABLE table_10979230_5 (release_date VARCHAR, reference VARCHAR) | SELECT release_date FROM table_10979230_5 WHERE reference = "KIDS-270" |
What is the original air date for the writer tanaka shinichi? | CREATE TABLE table_26591434_1 (original_airdate VARCHAR, writer VARCHAR) | SELECT original_airdate FROM table_26591434_1 WHERE writer = "Tanaka Shinichi" |
What is the lowest grid that Paul Tracy had when he had over 4 points? | CREATE TABLE table_name_67 (grid INTEGER, name VARCHAR, points VARCHAR) | SELECT MIN(grid) FROM table_name_67 WHERE name = "paul tracy" AND points > 4 |
In which year did the least people enter hall of fame? | CREATE TABLE hall_of_fame (yearid VARCHAR) | SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY COUNT(*) LIMIT 1 |
What is the total when the score points show Olympic bronze medalist? | CREATE TABLE table_name_50 (total VARCHAR, score_points VARCHAR) | SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist" |
What Japanese title had average ratings of 9.2% on the NHK station? | CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR) | SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk" |
Which Decile has Years of –, and a Gender of coed? | CREATE TABLE table_name_69 (decile VARCHAR, years VARCHAR, gender VARCHAR) | SELECT decile FROM table_name_69 WHERE years = "–" AND gender = "coed" |
What is the area of xin county? | CREATE TABLE table_2847477_2 (area VARCHAR, english_name VARCHAR) | SELECT area FROM table_2847477_2 WHERE english_name = "Xin County" |
What Status has a Date performed of august 13, and a Position of safe? | CREATE TABLE table_name_42 (status VARCHAR, date_performed VARCHAR, position VARCHAR) | SELECT status FROM table_name_42 WHERE date_performed = "august 13" AND position = "safe" |
Who is the opponent with a 0-1 record? | CREATE TABLE table_name_81 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_81 WHERE record = "0-1" |
What was the winning score on 7 jun 1976? | CREATE TABLE table_name_4 (winning_score VARCHAR, date VARCHAR) | SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976" |
Let's say position was linebacker with a pick number less than 5, what was the highest round? | CREATE TABLE table_name_61 (round INTEGER, position VARCHAR, pick__number VARCHAR) | SELECT MAX(round) FROM table_name_61 WHERE position = "linebacker" AND pick__number > 5 |
What was the attendance for the final quarter (1)? | CREATE TABLE table_name_97 (attendance VARCHAR, final VARCHAR) | SELECT attendance FROM table_name_97 WHERE final = "quarter (1)" |
What was the most recent year? | CREATE TABLE table_26669939_1 (year INTEGER) | SELECT MAX(year) FROM table_26669939_1 |
Who was the director for the episode airing on September 24, 1993? | CREATE TABLE table_2409041_6 (directed_by VARCHAR, original_air_date VARCHAR) | SELECT directed_by FROM table_2409041_6 WHERE original_air_date = "September 24, 1993" |
What engine was in the Theodore n183? | CREATE TABLE table_name_9 (engine VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_9 WHERE chassis = "theodore n183" |
What is the innovation when the economic incentive grime is 7.14? | CREATE TABLE table_23050383_1 (innovation VARCHAR, economic_incentive_regime VARCHAR) | SELECT innovation FROM table_23050383_1 WHERE economic_incentive_regime = "7.14" |
How many different total number of transit passengers are there in London Luton? | CREATE TABLE table_13836704_7 (transit_passengers VARCHAR, airport VARCHAR) | SELECT COUNT(transit_passengers) FROM table_13836704_7 WHERE airport = "London Luton" |
What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77? | CREATE TABLE table_name_20 (taijijian INTEGER, taijiquan VARCHAR, total VARCHAR) | SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77 |
display the average salary of employees for each department who gets a commission percentage. | CREATE TABLE employees (department_id VARCHAR, salary INTEGER, commission_pct VARCHAR) | SELECT department_id, AVG(salary) FROM employees WHERE commission_pct <> "null" GROUP BY department_id |
How many colleges have the NFL Team Buffalo Bills? | CREATE TABLE table_2508633_11 (college VARCHAR, nfl_team VARCHAR) | SELECT COUNT(college) FROM table_2508633_11 WHERE nfl_team = "Buffalo Bills" |
What is the record when the time is 1:11? | CREATE TABLE table_name_91 (record VARCHAR, time VARCHAR) | SELECT record FROM table_name_91 WHERE time = "1:11" |
When the home team was geelong, what did the away team score? | CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_6 WHERE home_team = "geelong" |
For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name. | CREATE TABLE table_27050336_7 (delegate VARCHAR, counties_represented VARCHAR, committee VARCHAR, party VARCHAR) | SELECT delegate FROM table_27050336_7 WHERE committee = "Judiciary" AND party = "Democratic" AND counties_represented = "Montgomery" |
For Model e64 what is the zAAPs/zIIPs? | CREATE TABLE table_name_36 (zaaps___ziips VARCHAR, model VARCHAR) | SELECT zaaps___ziips FROM table_name_36 WHERE model = "e64" |
What are the Notes of the Mill Built in the 19th Century? | CREATE TABLE table_name_27 (notes VARCHAR, built VARCHAR) | SELECT notes FROM table_name_27 WHERE built = "19th century" |
What was the minimum attendance against the New Orleans Saints? | CREATE TABLE table_16028499_2 (attendance INTEGER, opponent VARCHAR) | SELECT MIN(attendance) FROM table_16028499_2 WHERE opponent = "New Orleans Saints" |
Which manufacturer has 23 laps and a time of +45.195? | CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195" |
Which part one is class 7d? | CREATE TABLE table_name_36 (part_1 VARCHAR, class VARCHAR) | SELECT part_1 FROM table_name_36 WHERE class = "7d" |
If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality? | CREATE TABLE table_19998428_3 (san_julián_municipality___percentage_ VARCHAR, san_antonio_de_lomerío_municipality___percentage_ VARCHAR) | SELECT COUNT(san_julián_municipality___percentage_) FROM table_19998428_3 WHERE san_antonio_de_lomerío_municipality___percentage_ = "5.480" |
Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790? | CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR) | SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790 |
What is the transfer fee for the country that has the name McCartney listed? | CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney" |
Who is the player from United States who play in year 2003-06 in Toronto? | CREATE TABLE table_name_8 (player VARCHAR, nationality VARCHAR, years_in_toronto VARCHAR) | SELECT player FROM table_name_8 WHERE nationality = "united states" AND years_in_toronto = "2003-06" |
Tell me the result for week less than 4 and september 7, 1986 | CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR, date VARCHAR) | SELECT result FROM table_name_46 WHERE week < 4 AND date = "september 7, 1986" |
what's the software executable space protection with dbeingtribution being gentoo | CREATE TABLE table_1357052_6 (software_executable_space_protection VARCHAR, distribution VARCHAR) | SELECT software_executable_space_protection FROM table_1357052_6 WHERE distribution = "Gentoo" |
What year did player payne stewart win? | CREATE TABLE table_name_84 (year_s__won VARCHAR, player VARCHAR) | SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart" |
Name the finish for a 39-31 record | CREATE TABLE table_name_64 (finish VARCHAR, record VARCHAR) | SELECT finish FROM table_name_64 WHERE record = "39-31" |
What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit. | CREATE TABLE table_191323_2 (alt_name VARCHAR, notes VARCHAR) | SELECT alt_name FROM table_191323_2 WHERE notes = "Mission failed. Guidance system failed. No orbit." |
What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A? | CREATE TABLE table_name_1 (Id VARCHAR) | SELECT 2008 FROM table_name_1 WHERE 2012 = "1r" AND 2010 = "a" AND 2005 = "a" |
Which Theme has a Order # of 9? | CREATE TABLE table_name_5 (theme VARCHAR, order__number VARCHAR) | SELECT theme FROM table_name_5 WHERE order__number = "9" |
What is the report of the united states grand prix west? | CREATE TABLE table_1140078_2 (report VARCHAR, race VARCHAR) | SELECT report FROM table_1140078_2 WHERE race = "United States Grand Prix West" |
Which Neville has a Novick of 23%? | CREATE TABLE table_name_62 (neville VARCHAR, novick VARCHAR) | SELECT neville FROM table_name_62 WHERE novick = "23%" |
What number episode in the series had a production code of 110? | CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) | SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "110" |
At what location was the score W 82-76? | CREATE TABLE table_name_68 (location VARCHAR, score VARCHAR) | SELECT location FROM table_name_68 WHERE score = "w 82-76" |
How many goals did a player active since 2006 have? | CREATE TABLE table_name_4 (goals VARCHAR, years_active VARCHAR) | SELECT goals FROM table_name_4 WHERE years_active = "2006" |
Which drivers have the position of 27? | CREATE TABLE table_name_33 (drivers VARCHAR, position VARCHAR) | SELECT drivers FROM table_name_33 WHERE position = 27 |
How many years had scores of 10–12, 6–1, 6–3? | CREATE TABLE table_2127933_3 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_2127933_3 WHERE score = "10–12, 6–1, 6–3" |
What is the name for the forward in the 2009-2010 season? | CREATE TABLE table_name_63 (name VARCHAR, position VARCHAR, season VARCHAR) | SELECT name FROM table_name_63 WHERE position = "forward" AND season = "2009-2010" |
What is the 2nd leg of the 4-9 agg.? | CREATE TABLE table_name_68 (agg VARCHAR) | SELECT 2 AS nd_leg FROM table_name_68 WHERE agg = "4-9" |
what is the part number(s) when the turbo is 9/11 and the frequency is 1.5 ghz? | CREATE TABLE table_name_52 (part_number_s_ VARCHAR, turbo VARCHAR, frequency VARCHAR) | SELECT part_number_s_ FROM table_name_52 WHERE turbo = "9/11" AND frequency = "1.5 ghz" |
What week has a Date of October 4, 1992? | CREATE TABLE table_name_78 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_78 WHERE date = "october 4, 1992" |
What was the crowd size of the match featuring Hawthorn as the Away team? | CREATE TABLE table_name_84 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_84 WHERE away_team = "hawthorn" |
Which method did pride bushido 10 have ? | CREATE TABLE table_name_56 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_56 WHERE event = "pride bushido 10" |
Name the language for fox business network | CREATE TABLE table_15887683_8 (language VARCHAR, television_service VARCHAR) | SELECT language FROM table_15887683_8 WHERE television_service = "Fox Business Network" |
Which series were played on April 18? | CREATE TABLE table_23286112_12 (series VARCHAR, date VARCHAR) | SELECT series FROM table_23286112_12 WHERE date = "April 18" |
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 DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841) |
What are the coupon amount of the coupons owned by both good and bad customers? | CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR) | SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' |
What is the home team score at glenferrie oval? | CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_65 WHERE venue = "glenferrie oval" |
What was the highest total when Norrkoping scored 12? | CREATE TABLE table_name_21 (total INTEGER, norrköping VARCHAR) | SELECT MAX(total) FROM table_name_21 WHERE norrköping = "12" |
What was the 2nd leg when Team 1 was Chicago Croatian? | CREATE TABLE table_name_57 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian" |
What is the Date, when the Opponent is Gisela Dulko? | CREATE TABLE table_name_74 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_74 WHERE opponent = "gisela dulko" |
What was the attendance during week 7? | CREATE TABLE table_name_88 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_88 WHERE week = 7 |
What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427? | CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR) | SELECT date FROM table_name_67 WHERE republican = "john mccain" AND poll_source = "quinnipiac" AND democrat = "barack obama" AND sample_size > 1427 |
What was the method of resolution when Katsuhisa Fujii's record was 0-1? | CREATE TABLE table_name_31 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_31 WHERE record = "0-1" |
Name the Score on 17 december 1979? | CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_80 WHERE date = "17 december 1979" |
What is the date when the high points is michael beasley , martell webster (16)? | CREATE TABLE table_27756314_10 (date VARCHAR, high_points VARCHAR) | SELECT date FROM table_27756314_10 WHERE high_points = "Michael Beasley , Martell Webster (16)" |
Which game number was played against Georgia? | CREATE TABLE table_20928682_1 (game INTEGER, opponent VARCHAR) | SELECT MIN(game) FROM table_20928682_1 WHERE opponent = "Georgia" |
What is the team when the college is virginia tech? | CREATE TABLE table_name_30 (team VARCHAR, college VARCHAR) | SELECT team FROM table_name_30 WHERE college = "virginia tech" |
What is the first game that has a home team of Detroit? | CREATE TABLE table_name_93 (game__number INTEGER, home VARCHAR) | SELECT MIN(game__number) FROM table_name_93 WHERE home = "detroit" |
What is the Score for Set 2 of 24–26? | CREATE TABLE table_name_71 (score VARCHAR, set_2 VARCHAR) | SELECT score FROM table_name_71 WHERE set_2 = "24–26" |
When the league is 84 (4) what is the Canadian Championship? | CREATE TABLE table_name_87 (canadian_championship VARCHAR, league VARCHAR) | SELECT canadian_championship FROM table_name_87 WHERE league = "84 (4)" |
Who was the driver in round 8? | CREATE TABLE table_27913160_3 (driver VARCHAR, round VARCHAR) | SELECT driver FROM table_27913160_3 WHERE round = 8 |
Which Winner has a Last 16 of £400? | CREATE TABLE table_name_4 (winner VARCHAR, last_16 VARCHAR) | SELECT winner FROM table_name_4 WHERE last_16 = "£400" |
What day has a record of 25–30–13 and less than 63 points? | CREATE TABLE table_name_70 (march INTEGER, record VARCHAR, points VARCHAR) | SELECT AVG(march) FROM table_name_70 WHERE record = "25–30–13" AND points < 63 |
Which Score has an Opponent of seattle? | CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_62 WHERE opponent = "seattle" |
What are the birth places that are shared by at least two people? | CREATE TABLE people (Birth_Place VARCHAR) | SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2 |
In what round was a player from Michigan selected? | CREATE TABLE table_name_54 (round INTEGER, school_club_team VARCHAR) | SELECT MAX(round) FROM table_name_54 WHERE school_club_team = "michigan" |
Which country has -9 to par with a Score of 70-69-68=207? | CREATE TABLE table_name_55 (country VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT country FROM table_name_55 WHERE to_par = "-9" AND score = 70 - 69 - 68 = 207 |
Name the studio analysts for espn with erin andrews and tom rinaldi | CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR) | SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi" |
What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate? | CREATE TABLE table_name_83 (position VARCHAR, jersey__number VARCHAR, birthdate VARCHAR) | SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986" |
What is the Champion with a Year that is 2008? | CREATE TABLE table_name_65 (champion VARCHAR, year VARCHAR) | SELECT champion FROM table_name_65 WHERE year = 2008 |
What's the shank type of the buttonholer with red plastic box as storage case? | CREATE TABLE table_28652521_1 (for_shank_type VARCHAR, storage_case VARCHAR) | SELECT for_shank_type FROM table_28652521_1 WHERE storage_case = "red plastic box" |
What year was the school founded with an 898 enrollment? | CREATE TABLE table_2076522_2 (founded INTEGER, enrollment__fall_2010_ VARCHAR) | SELECT MAX(founded) FROM table_2076522_2 WHERE enrollment__fall_2010_ = 898 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.