question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is every year for joined with the Ravens nickname?
CREATE TABLE table_262514_1 (joined VARCHAR, nickname VARCHAR)
SELECT joined FROM table_262514_1 WHERE nickname = "Ravens"
What is the party when the constituency is 1. Chennai North?
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
SELECT party FROM table_22753245_1 WHERE constituency = "1. Chennai North"
What is the 1990–1991 Team when the Birthplace shows as new york?
CREATE TABLE table_name_23 (birthplace VARCHAR)
SELECT 1990 AS _1991_team FROM table_name_23 WHERE birthplace = "new york"
What is the judge's total for Roxanne and Daniel?
CREATE TABLE table_19744915_16 (judges VARCHAR, couple VARCHAR)
SELECT judges FROM table_19744915_16 WHERE couple = "Roxanne and Daniel"
How many lanes have 1:53.70 as the time?
CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR)
SELECT COUNT(lane) FROM table_name_62 WHERE time = "1:53.70"
Which players have a pick number of 27?
CREATE TABLE table_10975034_4 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_10975034_4 WHERE pick__number = 27
I want the average bronze for total of 19 and silver of 8 with rank of 31
CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31"
What's the f/laps count for the team with 8 podiums?
CREATE TABLE table_27571406_1 (f_laps VARCHAR, podiums VARCHAR)
SELECT f_laps FROM table_27571406_1 WHERE podiums = 8
Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488?
CREATE TABLE table_name_78 (laps VARCHAR, grid VARCHAR, bike VARCHAR, time VARCHAR)
SELECT COUNT(laps) FROM table_name_78 WHERE bike = "ducati 999 f06" AND time = "+53.488" AND grid > 11
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
CREATE TABLE branch (membership_amount INTEGER, open_year VARCHAR, city VARCHAR)
SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?
CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT result FROM table_name_47 WHERE competition = "friendly" AND score = "5-0" AND date = "october 27, 2005"
What location had a final score of W 30 – 5?
CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR)
SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5"
What's the record when the attendance was 41,573?
CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_25 WHERE attendance = "41,573"
How many people on average attend round f?
CREATE TABLE table_name_28 (attendance INTEGER, round VARCHAR)
SELECT AVG(attendance) FROM table_name_28 WHERE round = "f"
Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?
CREATE TABLE table_name_99 (wins INTEGER, season VARCHAR, losses VARCHAR)
SELECT MIN(wins) FROM table_name_99 WHERE season < 1920 AND losses < 14
What Rank in Respective Divisions has a capacity of 4100?
CREATE TABLE table_name_60 (Rank VARCHAR, capacity VARCHAR)
SELECT Rank IN Respective AS divisions FROM table_name_60 WHERE capacity = "4100"
What is To par, when Total is less than 297, and when Finish is "1"?
CREATE TABLE table_name_37 (to_par VARCHAR, total VARCHAR, finish VARCHAR)
SELECT to_par FROM table_name_37 WHERE total < 297 AND finish = "1"
what is the country for zhang xiuyun?
CREATE TABLE table_name_91 (country VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_91 WHERE athlete = "zhang xiuyun"
who is the coach where dudley tuckey medal is ben howlett
CREATE TABLE table_1165048_1 (coach VARCHAR, dudley_tuckey_medal VARCHAR)
SELECT coach FROM table_1165048_1 WHERE dudley_tuckey_medal = "Ben Howlett"
Who is the home team that tied no 2?
CREATE TABLE table_name_2 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_2 WHERE tie_no = "2"
Name the population in 1931 for lubelskie
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, voivodeship_or_city VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE voivodeship_or_city = "lubelskie"
Who is the rb player from team oakland?
CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, team VARCHAR)
SELECT player FROM table_name_69 WHERE position = "rb" AND team = "oakland"
When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?
CREATE TABLE table_17467147_1 (series__number VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT series__number FROM table_17467147_1 WHERE directed_by = "Patrick Norris" AND written_by = "Debra J. Fisher & Erica Messer"
How many years have a final score of 6–3, 6–2?
CREATE TABLE table_22834834_3 (year VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(year) FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"
What is the listed crowd at windy hill?
CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_4 WHERE venue = "windy hill"
Which Runner-up has a Winning score of −20 (70-69-64-65=268)?
CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)
SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268)
What is the Australian open in 2010?
CREATE TABLE table_name_71 (australian_open VARCHAR, year VARCHAR)
SELECT australian_open FROM table_name_71 WHERE year = 2010
what is the mascot for moores hill that joined later than 1952?
CREATE TABLE table_name_19 (mascot VARCHAR, year_joined VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_19 WHERE year_joined > 1952 AND school = "moores hill"
What score has may 9 as the date?
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_26 WHERE date = "may 9"
How many points did the club with a losing bonus of 2 and 300 points against have?
CREATE TABLE table_name_44 (points_for VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_44 WHERE losing_bonus = "2" AND points_against = "300"
What was the distance in the Manikato Stakes race?
CREATE TABLE table_2581397_4 (distance VARCHAR, race VARCHAR)
SELECT distance FROM table_2581397_4 WHERE race = "Manikato Stakes"
Episode of 9 in which performer 3 had?
CREATE TABLE table_name_82 (performer_3 VARCHAR, episode VARCHAR)
SELECT performer_3 FROM table_name_82 WHERE episode = 9
What is the highest value for points?
CREATE TABLE table_25352324_5 (points INTEGER)
SELECT MAX(points) FROM table_25352324_5
What's the lowest gold with a total over 15 and less than 16 silver?
CREATE TABLE table_name_98 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_98 WHERE total > 15 AND silver < 16
What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?
CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER)
SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'
Who was the Cover model in the issue in which the Interview subject was Joan Collins?
CREATE TABLE table_name_67 (cover_model VARCHAR, interview_subject VARCHAR)
SELECT cover_model FROM table_name_67 WHERE interview_subject = "joan collins"
What is the minimum number of f/laps?
CREATE TABLE table_26222468_1 (f_laps INTEGER)
SELECT MIN(f_laps) FROM table_26222468_1
What brakes for the 4-speed automatic gearbox?
CREATE TABLE table_250230_2 (brakes VARCHAR, gearbox VARCHAR)
SELECT brakes FROM table_250230_2 WHERE gearbox = "4-speed automatic"
What is Season, when Opponent is source: . last updated: 28 june 2007.?
CREATE TABLE table_name_76 (season VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_76 WHERE opponent = "source: . last updated: 28 june 2007."
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 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
Which year did the school with enrollment of 413 join?
CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR)
SELECT year_joined FROM table_name_46 WHERE enrollment = 413
Who won the 350cc at Sachsenring?
CREATE TABLE table_name_90 (track VARCHAR)
SELECT 350 AS _cc FROM table_name_90 WHERE track = "sachsenring"
Who was the home team on June 9?
CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_81 WHERE date = "june 9"
What is the lowest crowd when essendon is the away team?
CREATE TABLE table_name_78 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_78 WHERE away_team = "essendon"
How many languages have le roman de renart as the original title?
CREATE TABLE table_22073745_1 (languages VARCHAR, original_title VARCHAR)
SELECT COUNT(languages) FROM table_22073745_1 WHERE original_title = "Le Roman de Renart"
What is the to par of canada?
CREATE TABLE table_name_65 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_65 WHERE country = "canada"
Which bubble have a cancelable of yes and an attribute of onpointerdown?
CREATE TABLE table_name_58 (bubbles VARCHAR, cancelable VARCHAR, attribute VARCHAR)
SELECT bubbles FROM table_name_58 WHERE cancelable = "yes" AND attribute = "onpointerdown"
Return the names of all counties sorted by county name in descending alphabetical order.
CREATE TABLE county (County_name VARCHAR)
SELECT County_name FROM county ORDER BY County_name DESC
Which language is used by the optimum TV service that shows cricket and is based in the United States?
CREATE TABLE table_name_43 (language VARCHAR, genre VARCHAR, service VARCHAR, origin_of_programming VARCHAR)
SELECT language FROM table_name_43 WHERE service = "optimum tv" AND origin_of_programming = "united states" AND genre = "cricket"
Which Rank has a Years of 1998–present?
CREATE TABLE table_name_82 (rank INTEGER, years VARCHAR)
SELECT AVG(rank) FROM table_name_82 WHERE years = "1998–present"
Which opponent has 63 points?
CREATE TABLE table_name_98 (opponent VARCHAR, points VARCHAR)
SELECT opponent FROM table_name_98 WHERE points = 63
What year was Hartland College founded?
CREATE TABLE table_2076608_3 (founded VARCHAR, school VARCHAR)
SELECT founded FROM table_2076608_3 WHERE school = "Hartland College"
What cores has an L2 cache of low power?
CREATE TABLE table_name_16 (cores VARCHAR, l2_cache VARCHAR)
SELECT cores FROM table_name_16 WHERE l2_cache = "low power"
Which Country has a Year larger than 1978, and a Score of 295, and a Venue of lindrick golf club?
CREATE TABLE table_name_16 (country VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR)
SELECT country FROM table_name_16 WHERE year > 1978 AND score = "295" AND venue = "lindrick golf club"
Who was the away team when the attendance was 206?
CREATE TABLE table_name_69 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_69 WHERE attendance = "206"
What network has a Play-by-play by Jack Edwards in 2000?
CREATE TABLE table_name_3 (network VARCHAR, play_by_play VARCHAR, year VARCHAR)
SELECT network FROM table_name_3 WHERE play_by_play = "jack edwards" AND year = 2000
What was the latest year of release for the greatest hits title?
CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR)
SELECT MAX(year_of_release) FROM table_name_71 WHERE title = "greatest hits"
What is the percentage of registered voters in which the d-r spread is +14.3%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"
What is the week for Result of w 28-17?
CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_70 WHERE result = "w 28-17"
How many points did the opponents with a 6-2 record against the Spartans score?
CREATE TABLE table_22860990_3 (opp_points INTEGER, record VARCHAR)
SELECT MIN(opp_points) FROM table_22860990_3 WHERE record = "6-2"
What is the Dolphins Group?
CREATE TABLE table_name_42 (group VARCHAR, team VARCHAR)
SELECT group FROM table_name_42 WHERE team = "dolphins"
What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?
CREATE TABLE table_name_48 (result VARCHAR, couple VARCHAR, score VARCHAR)
SELECT result FROM table_name_48 WHERE couple = "kelly & alec" AND score = "22 (8, 7, 7)"
What was total size of the crowd at a home game for north melbourne?
CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_93 WHERE home_team = "north melbourne"
What is the average number of EVA for the Orion?
CREATE TABLE table_name_50 (number_of_s_eva INTEGER, lunar_lander VARCHAR)
SELECT AVG(number_of_s_eva) FROM table_name_50 WHERE lunar_lander = "orion"
What was the highest attendance for a game where Geelong was the home team?
CREATE TABLE table_name_25 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_25 WHERE home_team = "geelong"
Which Points have Wins of 0, and a Final Placing of 21st?
CREATE TABLE table_name_38 (points VARCHAR, wins VARCHAR, final_placing VARCHAR)
SELECT points FROM table_name_38 WHERE wins = "0" AND final_placing = "21st"
Which Run 2 has a Rank of 4?
CREATE TABLE table_name_9 (run_2 VARCHAR, rank VARCHAR)
SELECT run_2 FROM table_name_9 WHERE rank = "4"
Who won the bronze when the Asian Games were in Doha?
CREATE TABLE table_name_70 (bronze VARCHAR, location VARCHAR)
SELECT bronze FROM table_name_70 WHERE location = "doha"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR)
SELECT profession FROM table_name_90 WHERE city = "leskovac"
What is the U.S. rap ranking in 2000 of the U.S. 105 single?
CREATE TABLE table_name_44 (us VARCHAR, year VARCHAR)
SELECT us AS Rap FROM table_name_44 WHERE year = 2000 AND us = "105"
What was the series in season 2009?
CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR)
SELECT series FROM table_name_61 WHERE season = 2009
What date did the show air when Sean Lock was the headliner?
CREATE TABLE table_23122988_1 (airdate VARCHAR, headliner VARCHAR)
SELECT airdate FROM table_23122988_1 WHERE headliner = "Sean Lock"
What day is south melbourne away?
CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_19 WHERE away_team = "south melbourne"
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?
CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18
What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?
CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR)
SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
Who is the call sign that has a commenced operation before 1976?
CREATE TABLE table_name_3 (callsign VARCHAR, commenced_operations INTEGER)
SELECT callsign FROM table_name_3 WHERE commenced_operations < 1976
How many points did the Castres have?
CREATE TABLE table_name_59 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_59 WHERE club = "castres"
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'
When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?
CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23"
How many people attended Junction Oval?
CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval"
How many winning constructor catagories are there when Mark Webber had the fastest lap?
CREATE TABLE table_26258348_4 (winning_constructor VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = "Mark Webber"
WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?
CREATE TABLE table_name_93 (team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT team FROM table_name_93 WHERE position = "of" AND pick = 24
What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?
CREATE TABLE table_1610496_3 (gdp_adjusted__$_billions_ VARCHAR, gdp_nominal__$_billions_ VARCHAR)
SELECT gdp_adjusted__$_billions_ FROM table_1610496_3 WHERE gdp_nominal__$_billions_ = "8.43"
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
What type of Competition has a Goal of 3?
CREATE TABLE table_name_84 (competition VARCHAR, goal VARCHAR)
SELECT competition FROM table_name_84 WHERE goal = 3
What is the highest average for a contestant with an evening gown larger than 9.449 from Kansas?
CREATE TABLE table_name_56 (average INTEGER, evening_gown VARCHAR, state VARCHAR)
SELECT MAX(average) FROM table_name_56 WHERE evening_gown > 9.449 AND state = "kansas"
How many goals against did Clitheroe have when the loss was larger than 2?
CREATE TABLE table_name_44 (goals_against VARCHAR, team VARCHAR, lost VARCHAR)
SELECT COUNT(goals_against) FROM table_name_44 WHERE team = "clitheroe" AND lost > 2
Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?
CREATE TABLE table_name_53 (tournament VARCHAR)
SELECT 2007 FROM table_name_53 WHERE 2008 = "1r" AND tournament = "wimbledon"
Which score has a record of 58–15–8?
CREATE TABLE table_name_80 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_80 WHERE record = "58–15–8"
Tell me the track for june 9
CREATE TABLE table_name_44 (track VARCHAR, date VARCHAR)
SELECT track FROM table_name_44 WHERE date = "june 9"
What is the prize money amount after match 1, with 102 new entries to the round?
CREATE TABLE table_name_40 (prize_money VARCHAR, matches VARCHAR, new_entries_this_round VARCHAR)
SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102"
What is the high rank for players earning over $533,929?
CREATE TABLE table_name_13 (rank INTEGER, earnings___$__ INTEGER)
SELECT MAX(rank) FROM table_name_13 WHERE earnings___$__ > 533 OFFSET 929
Show all church names that have hosted least two weddings.
CREATE TABLE wedding (church_id VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING COUNT(*) >= 2
Which score has a Result of 11–0?
CREATE TABLE table_name_65 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_65 WHERE result = "11–0"
What AP increase has an AP duration of 0.75?
CREATE TABLE table_name_68 (ap_increase__mv_ VARCHAR, ap_duration__ms_ VARCHAR)
SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = "0.75"
What is the average total with a nation of thailand with a gold smaller than 17?
CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17
What is the nationality of the player in round 7?
CREATE TABLE table_name_33 (nationality VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_33 WHERE round = "7"
What Score has a Place of t8, and a Country of scotland?
CREATE TABLE table_name_86 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_86 WHERE place = "t8" AND country = "scotland"
How many manners of departure did peter voets have?
CREATE TABLE table_11713303_2 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_11713303_2 WHERE outgoing_manager = "Peter Voets"
What is Mike Harris' lowest overall?
CREATE TABLE table_name_61 (overall INTEGER, name VARCHAR)
SELECT MIN(overall) FROM table_name_61 WHERE name = "mike harris"