question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
Which Game has a Home Team of san francisco, and a Date of april 22? | CREATE TABLE table_name_22 (game VARCHAR, home_team VARCHAR, date VARCHAR) | SELECT game FROM table_name_22 WHERE home_team = "san francisco" AND date = "april 22" |
What year did Culver leave? | CREATE TABLE table_name_71 (year_left INTEGER, location VARCHAR) | SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver" |
Please show the nominee who has been nominated the greatest number of times. | CREATE TABLE musical (Nominee VARCHAR) | SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 |
What is the Total for Seve Ballesteros? | CREATE TABLE table_name_47 (total INTEGER, player VARCHAR) | SELECT SUM(total) FROM table_name_47 WHERE player = "seve ballesteros" |
How many points did Duncan Thompson score? | CREATE TABLE table_14342480_15 (points INTEGER, player VARCHAR) | SELECT MAX(points) FROM table_14342480_15 WHERE player = "Duncan Thompson" |
What is the position of the player on the Los Angeles Kings? | CREATE TABLE table_name_92 (position VARCHAR, nhl_team VARCHAR) | SELECT position FROM table_name_92 WHERE nhl_team = "los angeles kings" |
In what season did Pons Racing compete? | CREATE TABLE table_27571406_1 (season VARCHAR, team_name VARCHAR) | SELECT season FROM table_27571406_1 WHERE team_name = "Pons Racing" |
What is the sum of Gold, when Total is less than 1? | CREATE TABLE table_name_14 (gold INTEGER, total INTEGER) | SELECT SUM(gold) FROM table_name_14 WHERE total < 1 |
What European competitions have a tier of 2 and a position of 3? | CREATE TABLE table_name_48 (european_competitions VARCHAR, tier VARCHAR, pos VARCHAR) | SELECT european_competitions FROM table_name_48 WHERE tier = 2 AND pos = 3 |
If the Away team was south melbourne what Date did they play? | CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_57 WHERE away_team = "south melbourne" |
Who has a length of 71 ft? | CREATE TABLE table_name_21 (name VARCHAR, length__ft_ VARCHAR) | SELECT name FROM table_name_21 WHERE length__ft_ = 71 |
how many programs are broadcast in each time section of the day? | CREATE TABLE broadcast (time_of_day VARCHAR) | SELECT COUNT(*), time_of_day FROM broadcast GROUP BY time_of_day |
What is the area (in km2) for the village of Paquetville, with a population over 706? | CREATE TABLE table_name_89 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, official_name VARCHAR) | SELECT AVG(area_km_2) FROM table_name_89 WHERE status = "village" AND official_name = "paquetville" AND population > 706 |
In which Age Category is Marco Manenti? | CREATE TABLE table_name_44 (age_category VARCHAR, name VARCHAR) | SELECT age_category FROM table_name_44 WHERE name = "marco manenti" |
What is the most recent year founded that has a nickname of bruins? | CREATE TABLE table_name_7 (founded INTEGER, nickname VARCHAR) | SELECT MAX(founded) FROM table_name_7 WHERE nickname = "bruins" |
During what Years of Operation was the location prospect 33 prospect ave? | CREATE TABLE table_name_35 (years_of_operation VARCHAR, location VARCHAR) | SELECT years_of_operation FROM table_name_35 WHERE location = "prospect 33 prospect ave" |
Which Avg/G has a Gain of 1,839? | CREATE TABLE table_name_93 (avg_g INTEGER, gain VARCHAR) | SELECT SUM(avg_g) FROM table_name_93 WHERE gain = 1 OFFSET 839 |
What are the highest points that have a difference of 8, with a position less than 4? | CREATE TABLE table_name_36 (points INTEGER, difference VARCHAR, position VARCHAR) | SELECT MAX(points) FROM table_name_36 WHERE difference = "8" AND position < 4 |
Which event in the 2000 Sydney games was in the category gete wami category:articles with hcards? | CREATE TABLE table_name_73 (event VARCHAR, games VARCHAR, name VARCHAR) | SELECT event FROM table_name_73 WHERE games = "2000 sydney" AND name = "gete wami category:articles with hcards" |
What round was the game with a result of 5-1 at N venue? | CREATE TABLE table_name_44 (round VARCHAR, venue VARCHAR, result VARCHAR) | SELECT round FROM table_name_44 WHERE venue = "n" AND result = "5-1" |
What record has the score 111-89? | CREATE TABLE table_name_75 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_75 WHERE score = "111-89" |
What nation has a bronze of 2 with a total less than 5 and rank of 6? | CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT nation FROM table_name_84 WHERE bronze = 2 AND total < 5 AND rank = "6" |
List the name of ships that are not involved in any mission | CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR) | SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission) |
In what venues was the match with a final result of Eng by 4 wkts? | CREATE TABLE table_name_19 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_19 WHERE result = "eng by 4 wkts" |
What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49% | CREATE TABLE table_256286_41 (yes_votes VARCHAR, no_votes VARCHAR, _percentage_yes VARCHAR) | SELECT COUNT(yes_votes) FROM table_256286_41 WHERE no_votes < 299939.1619948521 AND _percentage_yes = "66.49%" |
what is the maximum number of hull nunbers where ship name is kri yos sudarso? | CREATE TABLE table_12232526_2 (hull_numbers INTEGER, ship_name VARCHAR) | SELECT MAX(hull_numbers) FROM table_12232526_2 WHERE ship_name = "KRI Yos Sudarso" |
What is the lowest population in 2011 for the settlement of čortanovci? | CREATE TABLE table_2562572_54 (population__2011_ INTEGER, settlement VARCHAR) | SELECT MIN(population__2011_) FROM table_2562572_54 WHERE settlement = "Čortanovci" |
How many weeks had a game on November 26, 1978, and an attendance higher than 26,248? | CREATE TABLE table_name_88 (week VARCHAR, date VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_88 WHERE date = "november 26, 1978" AND attendance > 26 OFFSET 248 |
On 21/07/07, what was the score? | CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_12 WHERE date = "21/07/07" |
What was the pick number for the kicker in round 8? | CREATE TABLE table_name_7 (pick VARCHAR, round VARCHAR, position VARCHAR) | SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker" |
What was the music video that was from the album High Society, with a length of 3:50? | CREATE TABLE table_name_91 (music_video VARCHAR, album VARCHAR, length VARCHAR) | SELECT music_video FROM table_name_91 WHERE album = "high society" AND length = "3:50" |
What is the Date of the game with a Record of 12–7–6? | CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_20 WHERE record = "12–7–6" |
What is the hometown for a college in Wisconsin? | CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_43 WHERE college = "wisconsin" |
What are the total scores of the body builders whose birthday contains the string "January" ? | CREATE TABLE people (people_id VARCHAR, Birth_Date VARCHAR); CREATE TABLE body_builder (total VARCHAR, people_id VARCHAR) | SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE "%January%" |
List the name of tracks belongs to genre Rock or media type is MPEG audio file. | CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR) | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file" |
What is the socked when the turbo is 8/8/10/11? | CREATE TABLE table_name_40 (socket VARCHAR, turbo VARCHAR) | SELECT socket FROM table_name_40 WHERE turbo = "8/8/10/11" |
Which Word wrap support has a Format of mobipocket? | CREATE TABLE table_name_65 (word_wrap_support VARCHAR, format VARCHAR) | SELECT word_wrap_support FROM table_name_65 WHERE format = "mobipocket" |
What engine does Steve Chassey drive with a march chassis? | CREATE TABLE table_name_49 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR) | SELECT engine FROM table_name_49 WHERE chassis = "march" AND drivers = "steve chassey" |
When 4 is the stage who is the general classification? | CREATE TABLE table_21573750_2 (general_classification VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_21573750_2 WHERE stage = 4 |
What's the projected population of IN-MI? | CREATE TABLE table_name_68 (projected_2025_population VARCHAR, state__province VARCHAR) | SELECT projected_2025_population FROM table_name_68 WHERE state__province = "in-mi" |
Total overall from penn state? | CREATE TABLE table_name_16 (overall INTEGER, college VARCHAR) | SELECT SUM(overall) FROM table_name_16 WHERE college = "penn state" |
WHich Score has a Record of 31–28–3? | CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_16 WHERE record = "31–28–3" |
Show the ids of all employees who have either destroyed a document or made an authorization to do this. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) | SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed |
what is the average year when the title is baka to test to shōkanjū? | CREATE TABLE table_name_89 (year INTEGER, title VARCHAR) | SELECT AVG(year) FROM table_name_89 WHERE title = "baka to test to shōkanjū" |
When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification? | CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR) | SELECT sprint_classification FROM table_25055040_22 WHERE mountains_classification = "Ryan Anderson" AND general_classification = "Michael Rogers" |
Name the name or route for slope length being 336 | CREATE TABLE table_17814458_1 (name_or_route VARCHAR, slope_length VARCHAR) | SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336 |
What was the tries for with tries against at 33? | CREATE TABLE table_12828723_5 (tries_for VARCHAR, tries_against VARCHAR) | SELECT tries_for FROM table_12828723_5 WHERE tries_against = "33" |
When the population rank is 34, what the is % change? | CREATE TABLE table_1425958_1 (_percentage_change VARCHAR, population_rank VARCHAR) | SELECT _percentage_change FROM table_1425958_1 WHERE population_rank = 34 |
Who scored the most points in game 4? | CREATE TABLE table_10812293_3 (high_points VARCHAR, game VARCHAR) | SELECT high_points FROM table_10812293_3 WHERE game = 4 |
What is the finish of Australia? | CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR) | SELECT finish FROM table_name_52 WHERE country = "australia" |
What are the average scores of contestants whose interview score is 8.011? | CREATE TABLE table_16390001_2 (average VARCHAR, interview VARCHAR) | SELECT average FROM table_16390001_2 WHERE interview = "8.011" |
What is the sum of core# with a TDP less than 85.3? | CREATE TABLE table_name_62 (core__number INTEGER, tdp__w_ INTEGER) | SELECT SUM(core__number) FROM table_name_62 WHERE tdp__w_ < 85.3 |
What date was the opponent Nottingham Forest, and the H/A was A? | CREATE TABLE table_name_7 (date VARCHAR, opponents VARCHAR, h___a VARCHAR) | SELECT date FROM table_name_7 WHERE opponents = "nottingham forest" AND h___a = "a" |
How many points for the simtek s951 chassis? | CREATE TABLE table_name_92 (points VARCHAR, chassis VARCHAR) | SELECT COUNT(points) FROM table_name_92 WHERE chassis = "simtek s951" |
Where the Vancouver Grizzlies is the awards, what is the conference? | CREATE TABLE table_name_29 (conference VARCHAR, awards VARCHAR) | SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies" |
What was the place in Germany with a score of 69-69=138? | CREATE TABLE table_name_24 (place VARCHAR, country VARCHAR, score VARCHAR) | SELECT place FROM table_name_24 WHERE score = 69 - 69 = 138 AND country = "germany" |
Who is the guard for Wisconsin? | CREATE TABLE table_name_44 (player VARCHAR, position VARCHAR, school VARCHAR) | SELECT player FROM table_name_44 WHERE position = "guard" AND school = "wisconsin" |
What Gershausen has a Willingshain of 243 and Reckerode of 224? | CREATE TABLE table_name_46 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR) | SELECT gershausen FROM table_name_46 WHERE willingshain = "243" AND reckerode_ * * * * = "224" |
what's the evening gown where preliminaries is 8.977 | CREATE TABLE table_12094609_1 (evening_gown VARCHAR, preliminaries VARCHAR) | SELECT evening_gown FROM table_12094609_1 WHERE preliminaries = "8.977" |
What is the opposition when the tally was 0-11? | CREATE TABLE table_name_25 (opposition VARCHAR, tally VARCHAR) | SELECT opposition FROM table_name_25 WHERE tally = "0-11" |
What county is Whiteland Community School in? | CREATE TABLE table_name_72 (county VARCHAR, school VARCHAR) | SELECT county FROM table_name_72 WHERE school = "whiteland community" |
Who was the opponent when the record recorded was 64-78? | CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_51 WHERE record = "64-78" |
Which programs were originally broadcast on CITV? | CREATE TABLE table_29566606_11 (programme VARCHAR, original_channel_s_ VARCHAR) | SELECT programme FROM table_29566606_11 WHERE original_channel_s_ = "CITV" |
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team? | CREATE TABLE table_name_7 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008" |
what's the ungegn for the ១០០ khmer? | CREATE TABLE table_name_23 (ungegn VARCHAR, khmer VARCHAR) | SELECT ungegn FROM table_name_23 WHERE khmer = "១០០" |
how many countiers had 2009 remittances of 6.02? | CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2009 VARCHAR) | SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = "6.02" |
What was the visiting team that had a record of 26-18? | CREATE TABLE table_name_82 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_82 WHERE record = "26-18" |
What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United? | CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) | SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United" |
When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap? | CREATE TABLE table_name_97 (fastest_lap VARCHAR, winning_team VARCHAR, pole_position VARCHAR) | SELECT fastest_lap FROM table_name_97 WHERE winning_team = "mathiasen motorsports" AND pole_position = "jonathan bomarito" |
When did the season finale ranked at 73 first air? | CREATE TABLE table_217785_2 (season VARCHAR, ranking VARCHAR) | SELECT season AS finale FROM table_217785_2 WHERE ranking = 73 |
In what Year did the German Open have Yoo Sang-Hee as Partner? | CREATE TABLE table_name_8 (year VARCHAR, partner VARCHAR, venue VARCHAR) | SELECT year FROM table_name_8 WHERE partner = "yoo sang-hee" AND venue = "german open" |
When 7.08 is the amount of viewers how many directors are there? | CREATE TABLE table_24781886_3 (director VARCHAR, viewers VARCHAR) | SELECT COUNT(director) FROM table_24781886_3 WHERE viewers = "7.08" |
Name the fleet numbers for diagram of 186 and lot number of 30798 | CREATE TABLE table_name_10 (fleet_numbers VARCHAR, diagram VARCHAR, lot_no VARCHAR) | SELECT fleet_numbers FROM table_name_10 WHERE diagram = 186 AND lot_no = 30798 |
What's the network in Pachuca, Hidalgo? | CREATE TABLE table_name_14 (network VARCHAR, city_of_license VARCHAR) | SELECT network FROM table_name_14 WHERE city_of_license = "pachuca, hidalgo" |
What is the name of the most recent movie? | CREATE TABLE Movie (title VARCHAR, YEAR INTEGER) | SELECT title FROM Movie WHERE YEAR = (SELECT MAX(YEAR) FROM Movie) |
who is the featuring when the doctor is the 6th and the series sorted is 6y/ak? | CREATE TABLE table_name_30 (featuring VARCHAR, doctor VARCHAR, series_sorted VARCHAR) | SELECT featuring FROM table_name_30 WHERE doctor = "6th" AND series_sorted = "6y/ak" |
What is Detective Donald William Schneider's Cause of death? | CREATE TABLE table_name_37 (cause_of_death VARCHAR, rank VARCHAR, name VARCHAR) | SELECT cause_of_death FROM table_name_37 WHERE rank = "detective" AND name = "donald william schneider" |
Which artist was 2003? | CREATE TABLE table_name_32 (artist VARCHAR, year VARCHAR) | SELECT artist FROM table_name_32 WHERE year = 2003 |
On what day(s) did the Gophers play against Michigan? | CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR) | SELECT date FROM table_name_88 WHERE opponent_number = "michigan" |
What are the active dates for the Montana State University chapter? | CREATE TABLE table_name_85 (charter_range VARCHAR, school VARCHAR) | SELECT charter_range FROM table_name_85 WHERE school = "montana state university" |
What Band has a Frequency of 0 99.7 in the Area of Newcastle? | CREATE TABLE table_name_34 (band VARCHAR, frequency VARCHAR, area_served VARCHAR) | SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle" |
Which items in segment A have a segment D of marble sculptures? | CREATE TABLE table_name_34 (segment_a VARCHAR, segment_d VARCHAR) | SELECT segment_a FROM table_name_34 WHERE segment_d = "marble sculptures" |
Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electric guitar? | CREATE TABLE table_name_88 (mcintosh VARCHAR, paul_mccartney VARCHAR, whitten VARCHAR, stuart VARCHAR) | SELECT mcintosh FROM table_name_88 WHERE whitten = "drums" AND stuart = "bass" AND paul_mccartney = "electric guitar" |
which Event that has an Opponent of kendall grove? | CREATE TABLE table_name_2 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_2 WHERE opponent = "kendall grove" |
What's the lowest against on 27/03/1971? | CREATE TABLE table_name_45 (against INTEGER, date VARCHAR) | SELECT MIN(against) FROM table_name_45 WHERE date = "27/03/1971" |
What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia? | CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) | SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" |
What is the total work number of Gowrie after 1875? | CREATE TABLE table_name_45 (works_number INTEGER, date VARCHAR, name VARCHAR) | SELECT SUM(works_number) FROM table_name_45 WHERE date > 1875 AND name = "gowrie" |
What is the North American release date of the remake with a European release date on 2013-03-20? | CREATE TABLE table_name_25 (north_american_release_date VARCHAR, european_release_date VARCHAR) | SELECT north_american_release_date FROM table_name_25 WHERE european_release_date = "2013-03-20" |
What was the 2006 population count of the local government area where Coober Pedy is located? | CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR) | SELECT pop_2006 FROM table_23685890_2 WHERE major_town = "Coober Pedy" |
Show the number of document types. | CREATE TABLE Ref_document_types (Id VARCHAR) | SELECT COUNT(*) FROM Ref_document_types |
what was the drawn when the tries for was 46? | CREATE TABLE table_12792876_3 (drawn VARCHAR, tries_for VARCHAR) | SELECT drawn FROM table_12792876_3 WHERE tries_for = "46" |
In which district is the first elected 2000? | CREATE TABLE table_1805191_10 (district VARCHAR, first_elected VARCHAR) | SELECT district FROM table_1805191_10 WHERE first_elected = 2000 |
What is Country, when Place is "T9", and when Player is "Jay Hebert"? | CREATE TABLE table_name_93 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_93 WHERE place = "t9" AND player = "jay hebert" |
When the apparent magnitude is 10.5, what is the right ascension? | CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5 |
What is the maximum points for higher when the points for foundation is less than 0? | CREATE TABLE table_name_66 (points_for_higher INTEGER, points_for_foundation INTEGER) | SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 0 |
Which mean number of losses had a played number that was bigger than 34? | CREATE TABLE table_name_58 (losses INTEGER, played INTEGER) | SELECT AVG(losses) FROM table_name_58 WHERE played > 34 |
What is the number for De Vries? | CREATE TABLE table_12608427_8 (no INTEGER, name VARCHAR) | SELECT MIN(no) FROM table_12608427_8 WHERE name = "de Vries" |
How many victors where there in the War of 1730–1736 , first stage? | CREATE TABLE table_24706337_1 (victor VARCHAR, name_of_the_war VARCHAR) | SELECT COUNT(victor) FROM table_24706337_1 WHERE name_of_the_war = "War of 1730–1736 , first stage" |
for the name of jamar jackson what is the last update? | CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR) | SELECT last_update FROM table_name_81 WHERE name = "jamar jackson" |
Which Attendance has a Score of 4–3, and Points smaller than 5? | CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR) | SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" AND points < 5 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.