question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
Where did South Melbourne play as the home team? | CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_72 WHERE home_team = "south melbourne" |
What is the average Points For when there are Points Against more than 780, and Points smaller than 0? | CREATE TABLE table_name_72 (points_for INTEGER, points_against VARCHAR, points VARCHAR) | SELECT AVG(points_for) FROM table_name_72 WHERE points_against > 780 AND points < 0 |
what is the country for the city of cardiff? | CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_34 WHERE city = "cardiff" |
What is the score of the game on January 18? | CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_85 WHERE date = "january 18" |
What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type? | CREATE TABLE table_name_16 (class VARCHAR, quantity_made VARCHAR, type VARCHAR) | SELECT class FROM table_name_16 WHERE quantity_made = "1" AND type = "0-6-0t" |
How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points? | CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR) | SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40 |
What is the highest track for the song Rip it Up? | CREATE TABLE table_name_87 (track INTEGER, song_title VARCHAR) | SELECT MAX(track) FROM table_name_87 WHERE song_title = "rip it up" |
When did the 1966 Cleveland Browns play the Green Bay Packers? | CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_98 WHERE opponent = "green bay packers" |
WHose Name has a Region of kansai on 2012-04-01 ( core city )? | CREATE TABLE table_name_63 (name VARCHAR, region VARCHAR, date_of_reclassification VARCHAR) | SELECT name FROM table_name_63 WHERE region = "kansai" AND date_of_reclassification = "2012-04-01 ( core city )" |
Which Method has a Record of 16–7? | CREATE TABLE table_name_99 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_99 WHERE record = "16–7" |
Find the average age of the students who have allergies with food and animal types. | CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR) | SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal") |
How many people are shown for mens doubles when guo yue played womens singles? | CREATE TABLE table_28138035_20 (mens_doubles VARCHAR, womens_singles VARCHAR) | SELECT COUNT(mens_doubles) FROM table_28138035_20 WHERE womens_singles = "Guo Yue" |
What is the to par for japan | CREATE TABLE table_name_49 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_49 WHERE country = "japan" |
What is the lowest pick number for players from king's (ny)? | CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR) | SELECT MIN(pick) FROM table_name_13 WHERE college = "king's (ny)" |
What is the minimum possible for the NJCAA championships? | CREATE TABLE table_22319599_1 (njcaa_championships INTEGER) | SELECT MIN(njcaa_championships) FROM table_22319599_1 |
What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake? | CREATE TABLE table_name_69 (title VARCHAR, lyricist_s_ VARCHAR, composer_s_ VARCHAR) | SELECT title FROM table_name_69 WHERE lyricist_s_ = "yarosake" AND composer_s_ = "yarosake" |
In what Year was Rhode Island the National Champion? | CREATE TABLE table_name_77 (year VARCHAR, national_champion VARCHAR) | SELECT year FROM table_name_77 WHERE national_champion = "rhode island" |
Which nation has the America 3 Foundation syndicate and the jayhawk yacht? | CREATE TABLE table_name_81 (nation VARCHAR, syndicate VARCHAR, yacht VARCHAR) | SELECT nation FROM table_name_81 WHERE syndicate = "america 3 foundation" AND yacht = "jayhawk" |
Name the height for number 7 | CREATE TABLE table_23670057_1 (height__m_ VARCHAR, no VARCHAR) | SELECT height__m_ FROM table_23670057_1 WHERE no = 7 |
What was the box score during a game that had a score of 86-96? | CREATE TABLE table_name_20 (Box VARCHAR, score VARCHAR) | SELECT Box AS score FROM table_name_20 WHERE score = "86-96" |
What is the fewest laps for a team with a position of DNF and a number smaller than 25 before 2001? | CREATE TABLE table_name_82 (laps INTEGER, year VARCHAR, position VARCHAR, number VARCHAR) | SELECT MIN(laps) FROM table_name_82 WHERE position = "dnf" AND number < 25 AND year < 2001 |
What is Episode, when XII Season is 4 118 160 (26 september 2010)? | CREATE TABLE table_name_23 (episode VARCHAR, xii_season VARCHAR) | SELECT episode FROM table_name_23 WHERE xii_season = "4 118 160 (26 september 2010)" |
How much Quantity has a Type of 1′c1′ h2t? | CREATE TABLE table_name_11 (quantity VARCHAR, type VARCHAR) | SELECT COUNT(quantity) FROM table_name_11 WHERE type = "1′c1′ h2t" |
How many targets are there with an approval date of 1997? | CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR) | SELECT COUNT(target) FROM table_1661124_1 WHERE approval_date = 1997 |
Which country has the player Ted Schulz? | CREATE TABLE table_name_41 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_41 WHERE player = "ted schulz" |
which chassis were in use prior to 1988? | CREATE TABLE table_name_31 (chassis VARCHAR, year INTEGER) | SELECT chassis FROM table_name_31 WHERE year < 1988 |
Which December has a Record of 21–6–5? | CREATE TABLE table_name_59 (december INTEGER, record VARCHAR) | SELECT AVG(december) FROM table_name_59 WHERE record = "21–6–5" |
How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%? | CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR) | SELECT COUNT(first_elected) FROM table_2668405_17 WHERE candidates = "Leven Powell (F) 63.8% Roger West (DR) 36.4%" |
What is the date of the game played after week 4 with 60,658 people in attendance? | CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_28 WHERE week > 4 AND attendance = "60,658" |
What is the lowest against value with less than 9 points and more than 6 lost? | CREATE TABLE table_name_29 (against INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(against) FROM table_name_29 WHERE points < 9 AND lost > 6 |
On which date was a game played at Junction Oval? | CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_40 WHERE venue = "junction oval" |
The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to? | CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) | SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to" |
What country has a 14 to par? | CREATE TABLE table_name_66 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_66 WHERE to_par = 14 |
What is the average number of laps when the grid number is 9? | CREATE TABLE table_name_48 (laps INTEGER, grid VARCHAR) | SELECT AVG(laps) FROM table_name_48 WHERE grid = 9 |
Show the name and the release year of the song by the youngest singer. | CREATE TABLE singer (song_name VARCHAR, song_release_year VARCHAR, age VARCHAR) | SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1 |
Which team has run 3 of 1:20.77? | CREATE TABLE table_name_18 (team VARCHAR, run_3 VARCHAR) | SELECT team FROM table_name_18 WHERE run_3 = "1:20.77" |
How many viewers were there for the premier with 34 | CREATE TABLE table_10942714_1 (hk_viewers VARCHAR, premiere VARCHAR) | SELECT hk_viewers FROM table_10942714_1 WHERE premiere = 34 |
What Country scored 72-65-73=210? | CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_2 WHERE score = 72 - 65 - 73 = 210 |
Which track translates to Flemish Women? | CREATE TABLE table_name_96 (track VARCHAR, translation VARCHAR) | SELECT track FROM table_name_96 WHERE translation = "flemish women" |
Which Drawn has Games smaller than 7? | CREATE TABLE table_name_41 (drawn INTEGER, games INTEGER) | SELECT SUM(drawn) FROM table_name_41 WHERE games < 7 |
What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic? | CREATE TABLE table_name_92 (podcast_date VARCHAR, run_time VARCHAR, episode_number VARCHAR, historical_references VARCHAR) | SELECT podcast_date FROM table_name_92 WHERE episode_number < 307 AND historical_references = "p.t. barnum" AND run_time = "5:48" |
What is the home team against the away team Norwich City? | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_39 WHERE away_team = "norwich city" |
what is the most games lost when there were 0 draws? | CREATE TABLE table_name_15 (lost INTEGER, drawn INTEGER) | SELECT MAX(lost) FROM table_name_15 WHERE drawn < 0 |
When 15 is the number overall what is the original air date? | CREATE TABLE table_18335117_3 (original_air_date VARCHAR, no_overall VARCHAR) | SELECT original_air_date FROM table_18335117_3 WHERE no_overall = 15 |
Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth? | CREATE TABLE table_name_97 (player VARCHAR, debut VARCHAR, born VARCHAR) | SELECT player FROM table_name_97 WHERE debut = "age 18 v plymouth , 14 august 2012" AND born = "portsmouth" |
What the least quantity having a T2A class? | CREATE TABLE table_name_50 (quantity_rebuilt INTEGER, class VARCHAR) | SELECT MIN(quantity_rebuilt) FROM table_name_50 WHERE class = "t2a" |
Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42? | CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MIN(gold) FROM table_name_47 WHERE bronze = 14 AND total > 42 |
What was the date of the game for the Wrexham away team? | CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_17 WHERE away_team = "wrexham" |
Name the mixed doubles when tour is hong kong super series | CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, tour VARCHAR) | SELECT mixed_doubles FROM table_14496232_2 WHERE tour = "Hong Kong Super Series" |
How many times has the playoff been 1 in the contest for the afc cup? | CREATE TABLE table_14460937_1 (afc_cup VARCHAR, play_off VARCHAR) | SELECT COUNT(afc_cup) FROM table_14460937_1 WHERE play_off = 1 |
What is the Singapore League Cup when rank is more than 4, and the S-League is 2 (12)? | CREATE TABLE table_name_50 (singapore_league_cup VARCHAR, rank VARCHAR, s_league VARCHAR) | SELECT singapore_league_cup FROM table_name_50 WHERE rank > 4 AND s_league = "2 (12)" |
What is the undecided percentage of the poll from Suffolk University with Murray at 11%? | CREATE TABLE table_name_80 (undecided VARCHAR, source VARCHAR, murray VARCHAR) | SELECT undecided FROM table_name_80 WHERE source = "suffolk university" AND murray = "11%" |
What was the total for the golfer who had a year won of 1987? | CREATE TABLE table_name_20 (total VARCHAR, year_s__won VARCHAR) | SELECT total FROM table_name_20 WHERE year_s__won = "1987" |
What is the document type code with most number of documents? | CREATE TABLE Documents (document_type_code VARCHAR) | SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1 |
What is the lowest ranking for Paul Mctiernan? | CREATE TABLE table_name_67 (ranking INTEGER, name VARCHAR) | SELECT MIN(ranking) FROM table_name_67 WHERE name = "paul mctiernan" |
What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played? | CREATE TABLE table_name_42 (drawn INTEGER, first_game VARCHAR, played VARCHAR) | SELECT SUM(drawn) FROM table_name_42 WHERE first_game < 2006 AND played < 2 |
Rank of 5, and a Silver larger than 0 had what sum of total? | CREATE TABLE table_name_8 (total INTEGER, rank VARCHAR, silver VARCHAR) | SELECT SUM(total) FROM table_name_8 WHERE rank = "5" AND silver > 0 |
What is the highest Podiums with 0 as wins, and a season later than 1985? | CREATE TABLE table_name_31 (podiums INTEGER, wins VARCHAR, season VARCHAR) | SELECT MAX(podiums) FROM table_name_31 WHERE wins = 0 AND season > 1985 |
In how many different years did the race happen on February 27? | CREATE TABLE table_2241101_1 (year VARCHAR, date VARCHAR) | SELECT COUNT(year) FROM table_2241101_1 WHERE date = "February 27" |
When did the show directed by Michael Dimartino first air? | CREATE TABLE table_14724369_1 (original_air_date VARCHAR, directed_by VARCHAR) | SELECT original_air_date FROM table_14724369_1 WHERE directed_by = "Michael DiMartino" |
Name the loss for 48-37 | CREATE TABLE table_name_54 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_54 WHERE record = "48-37" |
Return the maximum and minimum population among all counties. | CREATE TABLE county (Population INTEGER) | SELECT MAX(Population), MIN(Population) FROM county |
What was the attendance for the game with alfreton town as the home team? | CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town" |
On which date was the record 1-4? | CREATE TABLE table_17118657_7 (date VARCHAR, record VARCHAR) | SELECT date FROM table_17118657_7 WHERE record = "1-4" |
Which Year has a Category of best performance by a leading actress in a musical? | CREATE TABLE table_name_72 (year INTEGER, category VARCHAR) | SELECT MAX(year) FROM table_name_72 WHERE category = "best performance by a leading actress in a musical" |
What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses? | CREATE TABLE table_name_75 (points_1 VARCHAR, lost VARCHAR, position VARCHAR, goals_for VARCHAR) | SELECT points_1 FROM table_name_75 WHERE position > 4 AND goals_for = 54 AND lost > 11 |
What was the score where the total points was 50? | CREATE TABLE table_name_34 (score VARCHAR, total_points VARCHAR) | SELECT score FROM table_name_34 WHERE total_points = 50 |
What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"? | CREATE TABLE table_name_16 (left_office VARCHAR, party VARCHAR, took_office VARCHAR) | SELECT left_office FROM table_name_16 WHERE party = "udc" AND took_office = "11 june 2001" |
in a game against st kilda, what was the away team's score? | CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_33 WHERE home_team = "st kilda" |
Name the manufacturer for cale yarborough for 1984 | CREATE TABLE table_2266230_1 (manufacturer VARCHAR, driver VARCHAR, year VARCHAR) | SELECT manufacturer FROM table_2266230_1 WHERE driver = "Cale Yarborough" AND year = "1984" |
Find all the policy types that are used by more than 2 customers. | CREATE TABLE policies (policy_type_code VARCHAR) | SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING COUNT(*) > 2 |
What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471? | CREATE TABLE table_name_31 (fall_05 VARCHAR, fall_09 VARCHAR, states VARCHAR, fall_08 VARCHAR, fall_06 VARCHAR) | SELECT COUNT(fall_05) FROM table_name_31 WHERE fall_08 > 5 AND fall_06 > 7 AND states = "maryland" AND fall_09 > 471 |
What is the sum of the pick numbers where the player was picked in round 5 and overall pick number was greater than 159? | CREATE TABLE table_name_77 (pick__number INTEGER, round VARCHAR, overall VARCHAR) | SELECT SUM(pick__number) FROM table_name_77 WHERE round = 5 AND overall > 159 |
What is the minimum MotoGP/500cc ranking? | CREATE TABLE table_2889810_1 (motogp_500cc INTEGER) | SELECT MIN(motogp_500cc) FROM table_2889810_1 |
What is the value for Slalom in seasons later than 1994 and overall value greater than 22? | CREATE TABLE table_name_90 (slalom VARCHAR, season VARCHAR, overall VARCHAR) | SELECT slalom FROM table_name_90 WHERE season > 1994 AND overall > 22 |
Who is second on the team with Euan Byers at lead? | CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR) | SELECT second FROM table_name_38 WHERE lead = "euan byers" |
What Division III has Bishop Brady in Division V and Hanover in Division IV? | CREATE TABLE table_name_97 (division_iII VARCHAR, division_v VARCHAR, division_iV VARCHAR, hanover VARCHAR) | SELECT division_iII FROM table_name_97 WHERE division_v = "bishop brady" AND division_iV = hanover |
What is the division record of Sussex Central? | CREATE TABLE table_name_41 (division_record VARCHAR, school VARCHAR) | SELECT division_record FROM table_name_41 WHERE school = "sussex central" |
What is the number of averages having a balls faced over 297 and more than 7 innings? | CREATE TABLE table_name_34 (average VARCHAR, balls_faced VARCHAR, innings VARCHAR) | SELECT COUNT(average) FROM table_name_34 WHERE balls_faced > 297 AND innings > 7 |
What 20-29 was in season 2008? | CREATE TABLE table_name_69 (season VARCHAR) | SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008" |
Lost larger than 4 is what highest drawn? | CREATE TABLE table_name_75 (drawn INTEGER, lost INTEGER) | SELECT MAX(drawn) FROM table_name_75 WHERE lost > 4 |
What is the Time of the Athlete in Lane 4? | CREATE TABLE table_name_34 (time VARCHAR, lane VARCHAR) | SELECT COUNT(time) FROM table_name_34 WHERE lane = 4 |
Name the rdiers for jir team scot motogp | CREATE TABLE table_15327489_1 (riders VARCHAR, team_name VARCHAR) | SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP" |
In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4? | CREATE TABLE table_name_74 (tournament VARCHAR) | SELECT tournament FROM table_name_74 WHERE 2000 = "2-4" |
When the Home team of carlton played, what was their score? | CREATE TABLE table_name_93 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_93 WHERE home_team = "carlton" |
What is the total enrollment for a private/catholic affiliation and founded after 1842? | CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR) | SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842 |
How many goals were scored with a pos larger than 4 and active in 2001-? | CREATE TABLE table_name_50 (goals_scored VARCHAR, pos VARCHAR, years_active VARCHAR) | SELECT goals_scored FROM table_name_50 WHERE pos > 4 AND years_active = "2001-" |
What tournament was at the 2011 Cincinnati Masters? | CREATE TABLE table_name_5 (tournament VARCHAR) | SELECT 2011 FROM table_name_5 WHERE tournament = "cincinnati masters" |
What is the # of seats one for the election in 1974? | CREATE TABLE table_123462_2 (_number_of_seats_won VARCHAR, election VARCHAR) | SELECT _number_of_seats_won FROM table_123462_2 WHERE election = 1974 |
How many customers have an account? | CREATE TABLE Accounts (customer_id VARCHAR) | SELECT COUNT(DISTINCT customer_id) FROM Accounts |
What is the college club that plays before round 3? | CREATE TABLE table_name_85 (college_junior_club_team VARCHAR, round INTEGER) | SELECT college_junior_club_team FROM table_name_85 WHERE round < 3 |
Find the number of records of each policy type and its type code. | CREATE TABLE policies (policy_type_code VARCHAR) | SELECT policy_type_code, COUNT(*) FROM policies GROUP BY policy_type_code |
Name the segment b for 167 | CREATE TABLE table_15187735_13 (segment_b VARCHAR, episode VARCHAR) | SELECT segment_b FROM table_15187735_13 WHERE episode = 167 |
Name the highest Draw which has a Rank of 14, and a Televotes larger than 908? | CREATE TABLE table_name_77 (draw INTEGER, rank VARCHAR, televotes VARCHAR) | SELECT MAX(draw) FROM table_name_77 WHERE rank = 14 AND televotes > 908 |
which team#2 played against poseidon neoi porroi | CREATE TABLE table_21434618_1 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_21434618_1 WHERE team__number1 = "Poseidon Neoi Porroi" |
Select the project names which are not assigned yet. | CREATE TABLE Projects (Name VARCHAR, Code VARCHAR, Project VARCHAR); CREATE TABLE AssignedTo (Name VARCHAR, Code VARCHAR, Project VARCHAR) | SELECT Name FROM Projects WHERE NOT Code IN (SELECT Project FROM AssignedTo) |
What is the marowijne with an 18.8% saramacca? | CREATE TABLE table_name_2 (marowijne VARCHAR, saramacca VARCHAR) | SELECT marowijne FROM table_name_2 WHERE saramacca = "18.8%" |
How many ranks have a Code (IATA/ICAO) of ord/kord? | CREATE TABLE table_name_29 (rank VARCHAR, code__iata_icao_ VARCHAR) | SELECT COUNT(rank) FROM table_name_29 WHERE code__iata_icao_ = "ord/kord" |
What time was the race for the country of france? | CREATE TABLE table_name_37 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_37 WHERE country = "france" |
What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37? | CREATE TABLE table_name_97 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = "2" AND silver < 37 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.