instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What province has the largest city of Birjand? | CREATE TABLE table_48114 (
"Province" text,
"Largest city" text,
"2nd Largest" text,
"3rd Largest" text,
"4th largest" text
) | SELECT "Province" FROM table_48114 WHERE "Largest city" = 'birjand' |
What is Hasan Shah's hometown? | CREATE TABLE table_14757 (
"Series" text,
"Name" text,
"Hometown" text,
"Occupation" text,
"Status" text
) | SELECT "Hometown" FROM table_14757 WHERE "Name" = 'hasan shah' |
Which player is in the position of Guard/Forward? | CREATE TABLE table_name_67 (
name VARCHAR,
position VARCHAR
) | SELECT name FROM table_name_67 WHERE position = "guard/forward" |
What Australian sound is equivalent to e / /? | CREATE TABLE table_59742 (
"Short vowels" text,
"17th-c." text,
"American" text,
"British" text,
"Australian" text
) | SELECT "Australian" FROM table_59742 WHERE "Short vowels" = 'e /ɛ/' |
Return a scatter chart about the correlation between People_ID and Total . | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
) | SELECT People_ID, Total FROM body_builder |
at which world indoor championships did peter widen achieve a higher position : 1989 or 1991 ? | CREATE TABLE table_204_445 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "year" FROM table_204_445 WHERE "year" IN (1989, 1991) ORDER BY "position" LIMIT 1 |
Which Year has an Album of airwaves, and a US Hot 100 of ? | CREATE TABLE table_name_64 (
year INTEGER,
album VARCHAR,
us_hot_100 VARCHAR
) | SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–" |
How many counties have people before profit as the party, and a borough greater than 0? | CREATE TABLE table_name_16 (
county INTEGER,
party VARCHAR,
borough VARCHAR
) | SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0 |
Find those themes and years for all exhibitions with ticket prices lower than 15, show me a stacked bar chart that groups by themes, counts year, and the x-axis is Year. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Theme |
What team did the Heat play against at the TD Waterhouse Centre? | CREATE TABLE table_35593 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_35593 WHERE "Location Attendance" = 'td waterhouse centre' |
Which player had a total of 116 (22)? | CREATE TABLE table_name_3 (
name VARCHAR,
total VARCHAR
) | SELECT name FROM table_name_3 WHERE total = "116 (22)" |
How many average plays have points greater than 14, with an against greater than 17? | CREATE TABLE table_42627 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Played") FROM table_42627 WHERE "Points" > '14' AND "Against" > '17' |
name the only athlete from sri lanka . | CREATE TABLE table_204_937 (
id number,
"rank" number,
"lane" number,
"athlete" text,
"time" number
) | SELECT "athlete" FROM table_204_937 WHERE "athlete" = 'sri' |
what is the swimsuit score when the semifinal average score is 8.367 (10)? | CREATE TABLE table_7808 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
) | SELECT "Swimsuit" FROM table_7808 WHERE "Semifinal Average" = '8.367 (10)' |
What year was stage 8 reached? | CREATE TABLE table_name_54 (
year VARCHAR,
stages VARCHAR
) | SELECT year FROM table_name_54 WHERE stages = "8" |
What is the total number of deaths and damage for all storms with a max speed greater than the average? | CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
) | SELECT SUM(number_deaths), SUM(damage_millions_usd) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm) |
When were the odds of winner 16.66? | CREATE TABLE table_24543 (
"Year" real,
"Horse" text,
"Driver" text,
"Trainer" text,
"Country of owner" text,
"Odds of winner" text,
"Winning time (km rate)" text
) | SELECT "Year" FROM table_24543 WHERE "Odds of winner" = '16.66' |
Which December 4, 1976 week has an attendance less than 57,366? | CREATE TABLE table_name_46 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
) | SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366 |
Name the regions for usf45 | CREATE TABLE table_21530474_1 (
region_s_ VARCHAR,
chassis_code VARCHAR
) | SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45" |
what is the location where there are over 200 cattle businesses | CREATE TABLE table_29012710_1 (
province VARCHAR,
number_of_dairy_farms VARCHAR
) | SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200 |
What is the years coached by the person with a win percentage of 0.667 and 380 losses? | CREATE TABLE table_34993 (
"Name" text,
"Years" text,
"Seasons" real,
"Lost" real,
"Pct." real
) | SELECT "Years" FROM table_34993 WHERE "Pct." = '0.667' AND "Lost" = '380' |
What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1? | CREATE TABLE table_name_81 (
wins VARCHAR,
top_25 VARCHAR,
top_10 VARCHAR
) | SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1 |
Who are the directors of the episode in series # 54? | CREATE TABLE table_26866233_1 (
director VARCHAR,
series__number VARCHAR
) | SELECT director FROM table_26866233_1 WHERE series__number = 54 |
With 37 tries against, what is the try bonus? | CREATE TABLE table_name_82 (
try_bonus VARCHAR,
tries_against VARCHAR
) | SELECT try_bonus FROM table_name_82 WHERE tries_against = "37" |
Name the incorporated for principal activites of travel agency | CREATE TABLE table_67422 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding (10 March 2010)" text
) | SELECT "Incorporated in" FROM table_67422 WHERE "Principal activities" = 'travel agency' |
What is Case Suffix (Case), when Postposition is '-mde (drops d)'? | CREATE TABLE table_76304 (
"noun root (meaning)" text,
"case suffix (case)" text,
"postposition" text,
"full word" text,
"English meaning" text
) | SELECT "case suffix (case)" FROM table_76304 WHERE "postposition" = '-mde (drops d)' |
Return a bar chart on what is the total revenue of each manufacturer?, could you list Y-axis in descending order? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY SUM(Revenue) DESC |
Find the names of all the product characteristics. | CREATE TABLE CHARACTERISTICS (
characteristic_name VARCHAR
) | SELECT DISTINCT characteristic_name FROM CHARACTERISTICS |
How many times was team 1 the wykeham wonderers? | CREATE TABLE table_18733480_1 (
players_left_after_round_1 VARCHAR,
team_1 VARCHAR
) | SELECT COUNT(players_left_after_round_1) FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers" |
how many games did the hoyas score 50 or more points ? | CREATE TABLE table_204_36 (
id number,
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" number,
"record" text
) | SELECT COUNT(*) FROM table_204_36 WHERE "result" >= 50 |
List the record of 0-1 from the table? | CREATE TABLE table_14656147_2 (
week VARCHAR,
record VARCHAR
) | SELECT week FROM table_14656147_2 WHERE record = "0-1" |
What's the lowest total when there's less than 16 bronze and more than 6 silver? | CREATE TABLE table_name_13 (
total INTEGER,
bronze VARCHAR,
silver VARCHAR
) | SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6 |
Name the most points for champion, won in the final against am lie mauresmo | CREATE TABLE table_1973321_5 (
points INTEGER,
status VARCHAR
) | SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo" |
When is Part 6, when Part 4 is on March 2, 2008? | CREATE TABLE table_68691 (
"Episode #" real,
"Title" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Part 5" text,
"Part 6" text
) | SELECT "Part 6" FROM table_68691 WHERE "Part 4" = 'march 2, 2008' |
does air florida have more or less than four aircrafts scheduled ? | CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
) | SELECT (SELECT "aircraft scheduled" FROM table_204_215 WHERE "airline" = 'air florida') > 4 |
Which City of license has a Call sign of k241an? | CREATE TABLE table_name_68 (
city_of_license VARCHAR,
call_sign VARCHAR
) | SELECT city_of_license FROM table_name_68 WHERE call_sign = "k241an" |
What is the Long when the ryds is 18? | CREATE TABLE table_name_14 (
long VARCHAR,
ryds VARCHAR
) | SELECT long FROM table_name_14 WHERE ryds = "18" |
What venue was on 27 May 2000? | CREATE TABLE table_80369 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
) | SELECT "Venue" FROM table_80369 WHERE "Date" = '27 may 2000' |
does the united states have more nation of citzenship then united kingdom ? | CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
) | SELECT (SELECT COUNT(*) FROM table_203_364 WHERE "nation of citizenship" = 'united states') > (SELECT COUNT(*) FROM table_203_364 WHERE "nation of citizenship" = 'united kingdom') |
Name the number of reason for change on may 11, 1939 | CREATE TABLE table_2160008_4 (
reason_for_change VARCHAR,
date_successor_seated VARCHAR
) | SELECT COUNT(reason_for_change) FROM table_2160008_4 WHERE date_successor_seated = "May 11, 1939" |
How many actors have appeared in each musical Plot them as bar chart, and order x axis in asc order please. | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY T2.Name |
How many players did the most high points in the game with 39-22 record? | CREATE TABLE table_23286223_8 (
high_points VARCHAR,
record VARCHAR
) | SELECT COUNT(high_points) FROM table_23286223_8 WHERE record = "39-22" |
How many ranks by average for the couple Tana and Stuart? | CREATE TABLE table_26375386_28 (
rank_by_average VARCHAR,
couple VARCHAR
) | SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart" |
What are the Baronies when the area (in acres) is 276? | CREATE TABLE table_30121082_1 (
barony VARCHAR,
area__acres__ VARCHAR
) | SELECT barony FROM table_30121082_1 WHERE area__acres__ = 276 |
For what class is the laps 66? | CREATE TABLE table_65441 (
"Position" text,
"Drivers" text,
"Entrant" text,
"Class" text,
"Laps" real
) | SELECT "Class" FROM table_65441 WHERE "Laps" = '66' |
what is the number of total bronze medals that germany has won ? | CREATE TABLE table_203_554 (
id number,
"year" number,
"place" text,
"gold" text,
"silver" text,
"bronze" text
) | SELECT COUNT(*) FROM table_203_554 WHERE "bronze" = 'germany' |
What is the name of the parish where the area is 508.30? | CREATE TABLE table_1594 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT COUNT("Official Name") FROM table_1594 WHERE "Area km 2" = '508.30' |
how many total cars did chevrolet manufacture ? | CREATE TABLE table_204_604 (
id number,
"year" number,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"race distance\nlaps" number,
"race distance\nmiles (km)" text,
"race time" text,
"average speed\n(mph)" number,
"report" text
) | SELECT COUNT(*) FROM table_204_604 WHERE "manufacturer" = 'chevrolet' |
What was the date of vacancy when Viorel Moldovan replaced a manager? | CREATE TABLE table_1606 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Date of vacancy" FROM table_1606 WHERE "Replaced by" = 'Viorel Moldovan' |
Name the highest Dist (f) with Odds of 11/4 and a Placing larger than 1? | CREATE TABLE table_name_74 (
dist__f_ INTEGER,
odds VARCHAR,
placing VARCHAR
) | SELECT MAX(dist__f_) FROM table_name_74 WHERE odds = "11/4" AND placing > 1 |
How many projects are there? | CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE projects (
project_id number,
project_details text
) | SELECT COUNT(*) FROM projects |
what is the different between the number of people who attended august 30th and the number of people who attended november 1st | CREATE TABLE table_204_858 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT ABS((SELECT "attendance" FROM table_204_858 WHERE "date" = 'august 30') - (SELECT "attendance" FROM table_204_858 WHERE "date" = 'november 1')) |
How many silver medals were won with a total medal of 3 and a rank above 9? | CREATE TABLE table_33403 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_33403 WHERE "Total" < '3' AND "Rank" > '9' |
In what year is the status of won? | CREATE TABLE table_name_72 (
year VARCHAR,
status VARCHAR
) | SELECT year FROM table_name_72 WHERE status = "won" |
What was the Venue on November 26? | CREATE TABLE table_name_4 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_4 WHERE date = "november 26" |
How much did the girl, nicknamed Chidi, weigh at birth? | CREATE TABLE table_name_2 (
weight_at_birth VARCHAR,
gender VARCHAR,
nickname VARCHAR
) | SELECT weight_at_birth FROM table_name_2 WHERE gender = "girl" AND nickname = "chidi" |
Name the segment 1 for episode # 2/225 | CREATE TABLE table_26635 (
"Episode #" text,
"Segment 1" text,
"Segment 2" text,
"Original airdate" text,
"Lessons taught" text
) | SELECT "Segment 1" FROM table_26635 WHERE "Episode #" = '2/225' |
What score has detroit as the home, and December 9 as the date? | CREATE TABLE table_name_78 (
score VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_78 WHERE home = "detroit" AND date = "december 9" |
Who is the pick with the height of 6'9' and weighs (lbs) 215? | CREATE TABLE table_70625 (
"Position" text,
"Name" text,
"Height" text,
"Weight (lbs.)" real,
"Hometown" text,
"Draft Year" real,
"Pick" text,
"All-Stars" text,
"NBA Championships" text,
"NBA Team" text
) | SELECT "Pick" FROM table_70625 WHERE "Height" = '6''9' AND "Weight (lbs.)" = '215' |
which is the only year they went 1-1 at home ? | CREATE TABLE table_203_741 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
) | SELECT "season" FROM table_203_741 WHERE "home" = '1-1' |
Find the number of scientists involved for each project name. | CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
) | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name |
What was the venue that had a friendly match competition? | CREATE TABLE table_name_49 (
venue VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_49 WHERE competition = "friendly match" |
david dallas won in 2010 . what was the name of the album that won the next year ? | CREATE TABLE table_204_655 (
id number,
"year" number,
"winner" text,
"album" text,
"other finalists" text
) | SELECT "album" FROM table_204_655 WHERE "year" > 2010 ORDER BY "year" LIMIT 1 |
Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst? | CREATE TABLE table_name_19 (
studio_host VARCHAR,
play_by_play VARCHAR,
studio_analysts VARCHAR
) | SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley" |
which has a larger population , dehradun or nainital ? | CREATE TABLE table_204_579 (
id number,
"code" text,
"district" text,
"headquarters" text,
"population (as of 2011)" number,
"area (km2)" number,
"density (/km2)" number
) | SELECT "district" FROM table_204_579 WHERE "district" IN ('dehradun', 'nainital') ORDER BY "population (as of 2011)" DESC LIMIT 1 |
What team's overal record is 22-11? | CREATE TABLE table_23183195_2 (
team VARCHAR,
overall_record VARCHAR
) | SELECT team FROM table_23183195_2 WHERE overall_record = "22-11" |
Which site has the CERCLIS ID fld004092532? | CREATE TABLE table_11971 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Partially deleted" text,
"Deleted" text
) | SELECT "Name" FROM table_11971 WHERE "CERCLIS ID" = 'fld004092532' |
Name the listed owners for brevak racing | CREATE TABLE table_2187178_1 (
listed_owner_s_ VARCHAR,
team VARCHAR
) | SELECT listed_owner_s_ FROM table_2187178_1 WHERE team = "Brevak Racing" |
What was the score of the game that put the team at 27-32? | CREATE TABLE table_name_51 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_51 WHERE record = "27-32" |
what's the pole position with location being hockenheimring | CREATE TABLE table_1140074_2 (
pole_position VARCHAR,
location VARCHAR
) | SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring" |
What is the time with FB notes for Canada? | CREATE TABLE table_name_43 (
time VARCHAR,
notes VARCHAR,
country VARCHAR
) | SELECT time FROM table_name_43 WHERE notes = "fb" AND country = "canada" |
What is the start source of the irl country, which ended on 13 April? | CREATE TABLE table_46537 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text
) | SELECT "Start Source" FROM table_46537 WHERE "Country" = 'irl' AND "Ended" = '13 april' |
What is the most number of families in regions where average family size is 2.7? | CREATE TABLE table_20508 (
"Region of USSR" text,
"Number of families" real,
"Number of people" real,
"Average family size" text,
"% of total deportees" text
) | SELECT MAX("Number of families") FROM table_20508 WHERE "Average family size" = '2.7' |
what is the award for the 2009 songwriter of the year? | CREATE TABLE table_68025 (
"Year" real,
"Result" text,
"Award" text,
"Category" text,
"Nominated work" text
) | SELECT "Award" FROM table_68025 WHERE "Year" = '2009' AND "Category" = 'songwriter of the year' |
What is Catalog, when the Region is UK, and when Label is Razor Records? | CREATE TABLE table_name_16 (
catalog VARCHAR,
region VARCHAR,
label VARCHAR
) | SELECT catalog FROM table_name_16 WHERE region = "uk" AND label = "razor records" |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of revenue , and group by attribute headquarter, list in asc by the x-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter |
Which Total has a Bronze larger than 1, and a Gold larger than 0? | CREATE TABLE table_name_57 (
total INTEGER,
bronze VARCHAR,
gold VARCHAR
) | SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0 |
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865 | CREATE TABLE table_name_99 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
) | SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 |
Which pens has 1 tries and matt alexander as a player with conv of 4? | CREATE TABLE table_52574 (
"Player" text,
"Tries" text,
"Conv" text,
"Pens" text,
"Drop" text,
"Venue" text,
"Date" text
) | SELECT "Pens" FROM table_52574 WHERE "Tries" = '1' AND "Player" = 'matt alexander' AND "Conv" = '4' |
was the attendance more or less in the saturday , april 13th game compared to the saturday , may 11th | CREATE TABLE table_204_123 (
id number,
"week" number,
"date" text,
"kickoff" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"game site" text,
"attendance" number
) | SELECT (SELECT "attendance" FROM table_204_123 WHERE "date" = 'saturday, april 13') > (SELECT "attendance" FROM table_204_123 WHERE "date" = 'saturday, may 11') |
What school does John Crotty play for? | CREATE TABLE table_53254 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_53254 WHERE "Player" = 'john crotty' |
What team has Pony as the kit manufacturer and Gary Mabbutt as the captain? | CREATE TABLE table_name_9 (
team VARCHAR,
kit_manufacturer VARCHAR,
captain VARCHAR
) | SELECT team FROM table_name_9 WHERE kit_manufacturer = "pony" AND captain = "gary mabbutt" |
Which rounds did the team Walther participate in? | CREATE TABLE table_33761 (
"Team" text,
"Chassis" text,
"Engine" text,
"Driver(s)" text,
"Sponsor(s)" text,
"Rounds" text
) | SELECT "Rounds" FROM table_33761 WHERE "Team" = 'walther' |
Who is the rower from Canada? | CREATE TABLE table_name_80 (
rowers VARCHAR,
country VARCHAR
) | SELECT rowers FROM table_name_80 WHERE country = "canada" |
who is the first loser listed on this chart ? | CREATE TABLE table_204_373 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
) | SELECT "loser" FROM table_204_373 WHERE id = 1 |
What percentage of users were using mobile browsers during the period in which 9.00% were using Chrome? | CREATE TABLE table_66073 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text,
"Mobile" text
) | SELECT "Mobile" FROM table_66073 WHERE "Chrome" = '9.00%' |
Which player went to Wake Forest and was selected with a pick after 145? | CREATE TABLE table_44157 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
) | SELECT "Player" FROM table_44157 WHERE "Pick" > '145' AND "College" = 'wake forest' |
What is the number of starts for the player who lost fewer than 22 and has more than 4 tries? | CREATE TABLE table_33122 (
"Player" text,
"Span" text,
"Start" real,
"Tries" real,
"Conv" real,
"Pens" real,
"Drop" real,
"Lost" real,
"Draw" real
) | SELECT AVG("Start") FROM table_33122 WHERE "Lost" < '22' AND "Tries" > '4' |
When 7th bw attached to 43rd sw is the unit what is the b-52 model? | CREATE TABLE table_73073 (
"Date" text,
"B-52 Model" text,
"Serial #" text,
"Unit" text,
"Bomb Capacity" text,
"Mission/Target" text,
"Cause of Loss" text
) | SELECT "B-52 Model" FROM table_73073 WHERE "Unit" = '7th BW attached to 43rd SW' |
What is the points when the lost was 11? | CREATE TABLE table_name_29 (
points_for VARCHAR,
lost VARCHAR
) | SELECT points_for FROM table_name_29 WHERE lost = "11" |
What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97? | CREATE TABLE table_name_66 (
population INTEGER,
place VARCHAR,
code VARCHAR,
area__km_2__ VARCHAR
) | SELECT MIN(population) FROM table_name_66 WHERE code < 70409 AND area__km_2__ < 5.97 AND place = "tshepiso" |
Who is the captain of Middlesbrough? | CREATE TABLE table_79810 (
"Club" text,
"Manager" text,
"Captain" text,
"Manufacturer" text,
"Sponsor" text
) | SELECT "Captain" FROM table_79810 WHERE "Club" = 'middlesbrough' |
who is the constructor when the laps is more than 72 and the driver is eddie irvine? | CREATE TABLE table_name_33 (
constructor VARCHAR,
laps VARCHAR,
driver VARCHAR
) | SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" |
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989 | CREATE TABLE table_19864214_3 (
pitcher VARCHAR,
seasons VARCHAR
) | SELECT pitcher FROM table_19864214_3 WHERE seasons = "1982, 1984, 1985, 1987, 1988, 1989" |
in what year the position was the 9th | CREATE TABLE table_31291 (
"Season" text,
"Level" text,
"Division" text,
"Section" text,
"Position" text,
"Movements" text
) | SELECT "Season" FROM table_31291 WHERE "Position" = '9th' |
What is the highest Losses, when Wins is '1', and when Matches is less than 2? | CREATE TABLE table_12691 (
"Matches" real,
"Wins" real,
"Draw" real,
"Losses" real,
"Against" real
) | SELECT MAX("Losses") FROM table_12691 WHERE "Wins" = '1' AND "Matches" < '2' |
How many runs conceded for chaminda vaas? | CREATE TABLE table_20280 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
) | SELECT "Runs Conceded" FROM table_20280 WHERE "Name" = 'Chaminda Vaas' |
What is the lowest crowd when essendon is the away team? | CREATE TABLE table_11786 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_11786 WHERE "Away team" = 'essendon' |
When was the lock with 10 caps born? | CREATE TABLE table_name_20 (
date_of_birth__age_ VARCHAR,
position VARCHAR,
caps VARCHAR
) | SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10 |
In which venue did the competition on 11 October 2008 take place? | CREATE TABLE table_14524 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_14524 WHERE "Date" = '11 october 2008' |
Subsets and Splits